-
Notifications
You must be signed in to change notification settings - Fork 9
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 corrupted Linear Release entries #465
Open
lrazovic
wants to merge
1
commit into
03-03-fix_update_the_integration_tests
Choose a base branch
from
03-04-fix_corrupted_release_entries
base: 03-03-fix_update_the_integration_tests
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
🚑️ Fix corrupted Linear Release entries #465
lrazovic
wants to merge
1
commit into
03-03-fix_update_the_integration_tests
from
03-04-fix_corrupted_release_entries
+291
−17
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This was referenced Mar 4, 2025
Closed
Graphite Automations"Auto-assign PRs to author" took an action on this PR • (03/04/25)1 assignee was added to this PR based on Juan Ignacio Rios's automation. |
890cc94
to
7f21caa
Compare
87f35dc
to
6893689
Compare
7f21caa
to
484326d
Compare
dastansam
reviewed
Mar 4, 2025
6893689
to
e6202a1
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What?
During a previous runtime upgrade, we simplified the
RuntimeHoldReason
, but we forgot to migrate theLinearRelease:Vesting
keys to reflect this change.Reasoning
I tried to
translate
the current entries, but the types were conflicting. Then I started todrain
the entries and add the new ones, but since I was operating on the same storage I had few non deterministic results. Since we only have 15 entries, I decided to perform a simple migration that removes the current corrupted entries, and create new ones, with the right key.Testing
Tested via
chopsticks
and via thetry-runtime-cli
New Migration:
Vesting
inruntimes/polimec/src/custom_migrations/linear_release.rs
. (runtimes/polimec/src/custom_migrations/linear_release.rs
- runtimes/polimec/src/custom_migrations/linear_release.rsR1-R110)mod.rs
andlib.rs
files of thepolimec
runtime. (runtimes/polimec/src/custom_migrations/mod.rs
- [1]runtimes/polimec/src/lib.rs
- [2]Dependency Updates:
jwt-compact
andsubstrate-fixed
dependencies inCargo.toml
to use specific versions instead of git references. (Cargo.toml
- Cargo.tomlL76-R84)Integration Tests Configuration:
std
array inintegration-tests/Cargo.toml
. (integration-tests/Cargo.toml
- integration-tests/Cargo.tomlR152).gitignore
andpackage.json
files to theintegration-tests/chopsticks/.papi/descriptors
directory. (integration-tests/chopsticks/.papi/descriptors/.gitignore
- [1]integration-tests/chopsticks/.papi/descriptors/package.json
- [2]polkadot-api.json
configuration file for integration tests. (integration-tests/chopsticks/.papi/polkadot-api.json
- integration-tests/chopsticks/.papi/polkadot-api.jsonR1-R24)