Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename RPC module to YARPC #325

Merged
merged 5 commits into from Mar 2, 2017
Merged

Rename RPC module to YARPC #325

merged 5 commits into from Mar 2, 2017

Conversation

ascandella
Copy link
Contributor

Fixes #267

@mention-bot
Copy link

@sectioneight, thanks for your PR! By analyzing the history of the files in this pull request, we identified @alsamylkin, @shawnburke and @glibsm to be potential reviewers.

@bufdev
Copy link
Contributor

bufdev commented Feb 23, 2017

image

@coveralls
Copy link

coveralls commented Feb 23, 2017

Coverage Status

Coverage remained the same at 92.029% when pulling 5bb83c4 on rename-rpc-to-yarpc into ef394bd on master.

Copy link
Contributor

@HelloGrayson HelloGrayson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @sectioneight - this will make it more obvious to users what it is they are actually configuring.

@ascandella
Copy link
Contributor Author

So, I think I'm going to hold off on merging this since @peter-edge and @akshayjshah both have some gigantic PRs in-flight that they'd like to land soon, and this would cause merge conflicts. Once those are merged, I'll fix the conflicts and merge this.

CHANGELOG.md Outdated
@@ -1,5 +1,9 @@
# Changelog

## v1.0.0-beta2 (unreleased)

* [Breaking] Rename `modules/rpc` to `modules/yarpc`
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should leave a note about the yaml change that needs to happen. I think that's the way YARPC has been writing changelog notes - with an action that needs to be taken, or more detailed information of what the rename actually entails.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What yaml change?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The key should be changed to yarpc. @sectioneight you need to just remove the default naming in the ThriftModule function (where it sets the name to "rpc"), see my comment on yarpc.go

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, the yaml key also changes from "rpc" to "yarpc". It is not immediately obvious from this changelog entry that service owners should update their config

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was hoping it was left on purpose..

mi service.ModuleCreateInfo,
reg registerServiceFunc,
options ...modules.Option,
) (*YARPCModule, error) {
) (*Module, error) {
name := "yarpc"
Copy link
Contributor

@bufdev bufdev Feb 23, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So on my "no default names" thing - note that for newModule, it's defaulting to yarpc, while in ThriftModule in thrift.go it's defaulting to rpc @madhuravi

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for catching that Peter. Ot should always be "yarpc"

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I looked up current code and don't see a separate name being set for thrift. Maybe I'm missing something? Which file are you looking at Peter?

@ascandella
Copy link
Contributor Author

ascandella commented Feb 23, 2017 via email

@bufdev
Copy link
Contributor

bufdev commented Feb 23, 2017 via email

@ascandella
Copy link
Contributor Author

ascandella commented Feb 23, 2017 via email

@akshayjshah
Copy link
Contributor

So, I think I'm going to hold off on merging this since @peter-edge and @akshayjshah both have some gigantic PRs in-flight that they'd like to land soon, and this would cause merge conflicts. Once those are merged, I'll fix the conflicts and merge this.

🙏 Your mercy is appreciated.

Copy link
Contributor

@anuptalwalkar anuptalwalkar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is going to fail make thriftsync :(

@ascandella
Copy link
Contributor Author

@anuptalwalkar yea, I have an internal diff open that I've been waiting to land until this change is merged.

moduleOptions := &moduleOptions{}
for _, option := range options {
if err := option(moduleOptions); err != nil {
return nil, err
}
}
module := &YARPCModule{
module := &Module{
host: host,
statsClient: newStatsClient(host.Metrics()),
log: ulog.Logger(context.Background()).With(zap.String("module", host.Name())),
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Something fishy is going on the line 274: We are using host.Name to get yarpc config..

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think host.Name() is now scoped post-peter's-refactor to the module name? @peter-edge to confirm

@coveralls
Copy link

coveralls commented Mar 2, 2017

Coverage Status

Coverage remained the same at 90.391% when pulling 6c5bf5d on rename-rpc-to-yarpc into a35fbb7 on master.

@ascandella
Copy link
Contributor Author

gimme tip appears to be broken, unrelated to this PR. Build passes on 1.7 and 1.8. Merging with the team's blessing.

@ascandella ascandella merged commit ef49c44 into master Mar 2, 2017
@ascandella ascandella deleted the rename-rpc-to-yarpc branch March 2, 2017 01:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

9 participants