Skip to content

#10036 Replace codename Merge with Bellatrix (2nd step)#10116

Merged
prylabs-bulldozer[bot] merged 15 commits into
OffchainLabs:developfrom
leolara:refactor/I10036/rename-merge-to-bellatrix-2
Jan 26, 2022
Merged

#10036 Replace codename Merge with Bellatrix (2nd step)#10116
prylabs-bulldozer[bot] merged 15 commits into
OffchainLabs:developfrom
leolara:refactor/I10036/rename-merge-to-bellatrix-2

Conversation

@leolara

@leolara leolara commented Jan 22, 2022

Copy link
Copy Markdown
Contributor

What type of PR is this?

Refactoring

What does this PR do? Why is it needed?

Replace codename Merge with Bellatrix, focusing on proto package

Which issues(s) does this PR fix?

Partially #10036

Other notes for review

I had to manually fix three files generated from protobuf, for some reason ./hack/update-go-pbs.sh adds a silly syntax error to these files

@leolara leolara requested a review from a team as a code owner January 22, 2022 01:49
@leolara leolara changed the title #10036 Replace codename Merge with Bellatrix (1st step) #10036 Replace codename Merge with Bellatrix (2nd step) Jan 22, 2022
@leolara leolara force-pushed the refactor/I10036/rename-merge-to-bellatrix-2 branch from 79b8885 to e94e66f Compare January 22, 2022 02:00
@leolara

leolara commented Jan 22, 2022

Copy link
Copy Markdown
Contributor Author

@terencechain after rebase there is a protobuf compilation error, but bazel hides the underlaying error

@leolara leolara force-pushed the refactor/I10036/rename-merge-to-bellatrix-2 branch 2 times, most recently from 01f9e54 to d7be947 Compare January 22, 2022 04:02
@leolara

leolara commented Jan 22, 2022

Copy link
Copy Markdown
Contributor Author

@terencechain please check

@leolara

leolara commented Jan 22, 2022

Copy link
Copy Markdown
Contributor Author

After this have been approved I think I can fix the rest in another PR

@leolara leolara force-pushed the refactor/I10036/rename-merge-to-bellatrix-2 branch from d7be947 to 505183a Compare January 22, 2022 08:45
@leolara leolara requested a review from nisdas as a code owner January 22, 2022 15:46
potuz
potuz previously approved these changes Jan 22, 2022

@potuz potuz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

For other reviewers (if others are deemed necessary) here are some sanity checks that I have passed through this PR:
1- git diff develop --name-only | xargs cat | grep Merge to catch for missed merge names in the changed files. Only few instances are found, only verbs.
2. Same with "merge".
3. Checked all instances of changes in the diff to see if they made sense. (without actually checking for code logic)

I left comments throughout the PR requesting to change "bellatrix" for "Bellatrix". These are optionals. I know there's a rule about error messages being lower case, but to my own taste proper names should be capitalized. The same applies to Altair which is not the scope of this PR, and others may disagree, so I'll approve right now and leave those comments there in case someone wants to change them.

Comment thread beacon-chain/p2p/pubsub_filter.go Outdated
Comment thread beacon-chain/core/blocks/payload.go Outdated
Comment thread beacon-chain/p2p/message_id.go Outdated
Comment thread beacon-chain/state/state-native/v3/getters_state.go Outdated
Comment thread config/params/config.go Outdated
Comment thread proto/prysm/v1alpha1/wrapper/beacon_block.go Outdated
Comment thread proto/prysm/v1alpha1/wrapper/beacon_block.go Outdated
Comment thread proto/prysm/v1alpha1/wrapper/beacon_block.go Outdated
Comment thread validator/client/propose.go Outdated
Comment thread validator/keymanager/remote-web3signer/keymanager.go Outdated
@leolara leolara force-pushed the refactor/I10036/rename-merge-to-bellatrix-2 branch from 113cc01 to 59eb089 Compare January 22, 2022 23:30
@leolara

leolara commented Jan 23, 2022

Copy link
Copy Markdown
Contributor Author

This seems ready to merge!! LGTM

Comment thread beacon-chain/core/execution/upgrade.go Outdated
// UpgradeToBellatrix updates inputs a generic state to return the version Bellatrix state.
// It inserts an empty `ExecutionPayloadHeader` into the state.
func UpgradeToBellatrix(ctx context.Context, state state.BeaconState) (state.BeaconState, error) {
func UpgradeToBellatrix(_ context.Context, state state.BeaconState) (state.BeaconState, error) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Are we sure about this change? It hides an error that is unrelated to this PR and may make it harder to debug later if the function is not properly implemented. The parameter should go, or just keep the error. Incidentally. Each time you push you make stale my previous approval. The PR does look good to me

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@potuz I don't have an opinion about this, I just did it so "Deepsource" wouldn't protest. If we can merge it with the "Deepsource" error, I can revert it, no problem.

Are you suggesting to remove the parameter all the way? Or merging ignoring "Deepsource"?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I would suggest to leave the error as is since this is not the scope of the PR, we can wait until Monday and let @terencechain chime in, since he'll write the PR implementing the upgrade, but either way, hiding the error i think shouldn't be the best option

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

+1

Let's leave the error as it is

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

ok

@leolara leolara force-pushed the refactor/I10036/rename-merge-to-bellatrix-2 branch from a2d0808 to 59eb089 Compare January 24, 2022 03:31
@leolara

leolara commented Jan 24, 2022

Copy link
Copy Markdown
Contributor Author

@terencechain removed the error correction. Let me know if we need anything else to merge this? :-)

rkapka
rkapka previously approved these changes Jan 24, 2022

@rkapka rkapka left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approving changes to state package.

@leolara leolara force-pushed the refactor/I10036/rename-merge-to-bellatrix-2 branch from 59eb089 to 8c44466 Compare January 24, 2022 12:48
@leolara

leolara commented Jan 24, 2022

Copy link
Copy Markdown
Contributor Author

I just rebased to make in sync with develop.

Are we merging this? @rkapka @terencechain @potuz

I think it does not let me even if approved because it does not pass the "deepsource: go" step

@potuz

potuz commented Jan 24, 2022

Copy link
Copy Markdown
Contributor

I just rebased to make in sync with develop.

Are we merging this? @rkapka @terencechain @potuz

I think it does not let me even if approved because it does not pass the "deepsource: go" step

It's fine the Deepsource error, we can merge with that. The problem is that each time you push changes, you make the previous approval stale. There's been like 10 pushes since I last approved this, will need to review them. I suppose the same applies to @rkapka's review

@leolara

leolara commented Jan 25, 2022

Copy link
Copy Markdown
Contributor Author

Sorry, I will not rebase anymore. I didn't know it would cause trouble.

I don't like to have many "merge develop" into the history, so I usually do that. But I will not do this here anymore

@terencechain

Copy link
Copy Markdown
Collaborator

I don't like to have many "merge develop" into the history, so I usually do that. But I will not do this here anymore

Everything gets squashed into 1 commit when we merge into develop so don't worry about the # of commits that you do

@rkapka

rkapka commented Jan 25, 2022

Copy link
Copy Markdown
Contributor

Let's wait for approval from @terencechain or @potuz before merging.

@potuz potuz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

As far as I can tell these changes are fine

@leolara

leolara commented Jan 26, 2022

Copy link
Copy Markdown
Contributor Author

@potuz it does not automerge because of the deepsource error. What should we do?

@nisdas

nisdas commented Jan 26, 2022

Copy link
Copy Markdown
Contributor

@leolara I just started the CI build for your PR, it should merge soon if there are any issues. Deepsource isn't a requirement for a successful merge of the PR.

@leolara

leolara commented Jan 26, 2022

Copy link
Copy Markdown
Contributor Author

Thanks @nisdas I am just starting to learn your process :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants