-
Notifications
You must be signed in to change notification settings - Fork 608
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
Fix epoch hook registration in protorev #8054
Fix epoch hook registration in protorev #8054
Conversation
WalkthroughThe recent changes involve the restructuring of epoch-related functionalities in a software project. The Changes
Recent Review DetailsConfiguration used: CodeRabbit UI Files selected for processing (1)
Files skipped from review as they are similar to previous changes (1)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, I have also spotted that we have two different hook registration recently.
Can we change it so that we have all hooks into hooks.go
instead of having both files exist?
Thanks for the PR, closing in favor of: #8106 Our e2e tests won't work on this branch atm, we're looking into a fix, sorry for cannibalising your PR 😓 |
What is the purpose of the change
Fixes the registration of epoch hooks in protorev.
EpochHooks are set for protorev by the
EpochHooks()
method. Those are created as anEpochHooks
item, and not directly as part of the keeper.In #7564 we added hooks directly to the keeper which were never registered with the epoch hooks. Instead of having these live in separate places I've just combined the newly added logic into the existing AfterEpoch hook.
All logic remains the same.
Testing and Verifying
Existing unit test coverage still applies to all changes--I've simply copy/pasted some of those to organize all epoch-specific logic into one place within protorev.
Not sure if you have e2e tests somewhere that I can update to test protorev distributions?
Documentation and Release Note
Unreleased
section ofCHANGELOG.md
?Where is the change documented?
x/{module}/README.md
)Summary by CodeRabbit
Hooks
toKeeper
to streamline operations.