Skip to content

Comments

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

Merged
prylabs-bulldozer[bot] merged 15 commits intoOffchainLabs: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 intoOffchainLabs:developfrom
leolara:refactor/I10036/rename-merge-to-bellatrix-2

Conversation

@leolara
Copy link
Contributor

@leolara leolara commented Jan 22, 2022

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
Copy link
Contributor Author

leolara commented Jan 22, 2022

@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
Copy link
Contributor Author

leolara commented Jan 22, 2022

@terencechain please check

@leolara
Copy link
Contributor Author

leolara commented Jan 22, 2022

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
Copy link
Contributor

@potuz potuz left a comment

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.

@leolara leolara force-pushed the refactor/I10036/rename-merge-to-bellatrix-2 branch from 113cc01 to 59eb089 Compare January 22, 2022 23:30
@leolara
Copy link
Contributor Author

leolara commented Jan 23, 2022

This seems ready to merge!! LGTM

// 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
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
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
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
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
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
Copy link
Contributor Author

leolara commented Jan 24, 2022

@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
Copy link
Contributor

@rkapka rkapka left a comment

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
Copy link
Contributor Author

leolara commented Jan 24, 2022

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
Copy link
Contributor

potuz commented Jan 24, 2022

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
Copy link
Contributor Author

leolara commented Jan 25, 2022

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
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
Copy link
Contributor

rkapka commented Jan 25, 2022

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

Copy link
Contributor

@potuz potuz left a comment

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
Copy link
Contributor Author

leolara commented Jan 26, 2022

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

@nisdas
Copy link
Contributor

nisdas commented Jan 26, 2022

@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
Copy link
Contributor Author

leolara commented Jan 26, 2022

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