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

Allow skip protocol upgrade #16694

Merged
merged 1 commit into from
Mar 16, 2024
Merged

Allow skip protocol upgrade #16694

merged 1 commit into from
Mar 16, 2024

Conversation

lxfind
Copy link
Contributor

@lxfind lxfind commented Mar 15, 2024

Description

The protocol config upgrade compatibility test doesn't allow skipping versions on main.
This makes it difficult to move forward when we want to plan ahead.
This PR fixes that by simply not injecting framework if a snapshot for a version is not found.

Test Plan

How did you test the new or updated feature?


If your changes are not user-facing and do not break anything, you can skip the following section. Otherwise, please briefly describe what has changed under the Release Notes section.

Type of Change (Check all that apply)

  • protocol change
  • user-visible impact
  • breaking change for a client SDKs
  • breaking change for FNs (FN binary must upgrade)
  • breaking change for validators or node operators (must upgrade binaries)
  • breaking change for on-chain data layout
  • necessitate either a data wipe or data migration

Release notes

@vercel vercel bot temporarily deployed to Preview – mysten-ui March 15, 2024 23:25 Inactive
Copy link

vercel bot commented Mar 15, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
explorer ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 15, 2024 11:39pm
multisig-toolkit ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 15, 2024 11:39pm
mysten-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 15, 2024 11:39pm
sui-core ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 15, 2024 11:39pm
sui-kiosk ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 15, 2024 11:39pm
sui-typescript-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 15, 2024 11:39pm

if version == max_ver {
let stake_subsidy_start_epoch = test_cluster
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This check is no longer needed.

Copy link
Contributor

@amnn amnn left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @lxfind !

@lxfind lxfind merged commit 37d6552 into main Mar 16, 2024
41 checks passed
@lxfind lxfind deleted the allow-skip-protocol-upgrade branch March 16, 2024 00:19
tx-tomcat pushed a commit to tx-tomcat/sui-network that referenced this pull request May 30, 2024
## Description 

The protocol config upgrade compatibility test doesn't allow skipping
versions on main.
This makes it difficult to move forward when we want to plan ahead.
This PR fixes that by simply not injecting framework if a snapshot for a
version is not found.

## Test Plan 

How did you test the new or updated feature?

---
If your changes are not user-facing and do not break anything, you can
skip the following section. Otherwise, please briefly describe what has
changed under the Release Notes section.

### Type of Change (Check all that apply)

- [ ] protocol change
- [ ] user-visible impact
- [ ] breaking change for a client SDKs
- [ ] breaking change for FNs (FN binary must upgrade)
- [ ] breaking change for validators or node operators (must upgrade
binaries)
- [ ] breaking change for on-chain data layout
- [ ] necessitate either a data wipe or data migration

### Release notes
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.

2 participants