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

feat(server/v2): Add upgradeblock #18931

Merged
merged 7 commits into from
Jan 6, 2024
Merged

feat(server/v2): Add upgradeblock #18931

merged 7 commits into from
Jan 6, 2024

Conversation

tac0turtle
Copy link
Member

@tac0turtle tac0turtle commented Jan 3, 2024

Description

This pr adds upgrade to server/v2, it replaces preblocks job. It adds it to stf since it will be a stateful call that could cause state updates

ref #18282


Author Checklist

All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.

I have...

  • included the correct type prefix in the PR title
  • confirmed ! in the type prefix if API or client breaking change
  • targeted the correct branch (see PR Targeting)
  • provided a link to the relevant issue or specification
  • reviewed "Files changed" and left comments if necessary
  • included the necessary unit and integration tests
  • added a changelog entry to CHANGELOG.md
  • updated the relevant documentation or specification, including comments for documenting Go code
  • confirmed all CI checks have passed

Reviewers Checklist

All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.

I have...

  • confirmed the correct type prefix in the PR title
  • confirmed all author checklist items have been addressed
  • reviewed state machine logic, API design and naming, documentation is accurate, tests and test coverage

This pr adds preblock to server/v2. It adds it to stf since it will be a stateful call that could cause state updates
@tac0turtle tac0turtle marked this pull request as ready for review January 3, 2024 06:38
@tac0turtle tac0turtle requested a review from a team as a code owner January 3, 2024 06:38
Copy link
Contributor

github-actions bot commented Jan 3, 2024

@tac0turtle your pull request is missing a changelog!

@testinginprod testinginprod self-requested a review January 3, 2024 14:08
Comment on lines +41 to +43
type UpgradeModule interface {
UpgradeBlocker() func(ctx context.Context) error
}
Copy link
Contributor

Choose a reason for hiding this comment

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

What is UpgradeBlocker? How does it relate to PreBlock?

Copy link
Member Author

Choose a reason for hiding this comment

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

meant to replace preblocker as preblocker was a generalised implementation any module could use while we only want to expose this for upgrade, for now. We will refactor how upgrades work in the future

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm sorry, I'm confused. So we have PreBlocker and UpgradeBlocker now.

Copy link
Member Author

Choose a reason for hiding this comment

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

preblocker was renamed to upgradeblocker

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok I see I was renamed/removed now, thanks! I think when I first reviewed this, they both existed, hence my confusion :)

@tac0turtle tac0turtle changed the title feat(server/v2): Add preblock feat(server/v2): Add upgradeblock Jan 4, 2024
Comment on lines +41 to +43
type UpgradeModule interface {
UpgradeBlocker() func(ctx context.Context) error
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Ok I see I was renamed/removed now, thanks! I think when I first reviewed this, they both existed, hence my confusion :)

@tac0turtle tac0turtle merged commit 8bf3093 into server_modular Jan 6, 2024
51 of 61 checks passed
@tac0turtle tac0turtle deleted the marko/preblock branch January 6, 2024 12:12
tac0turtle added a commit that referenced this pull request Jan 15, 2024
Co-authored-by: unknown unknown <unknown@unknown>
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.

None yet

4 participants