-
Notifications
You must be signed in to change notification settings - Fork 113
feat(pallet-gear): Add compatibility check for code instrumentation #4864
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
base: master
Are you sure you want to change the base?
Conversation
Changed Files
|
breathx
left a comment
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.
Except questions from above, looks good
5cc3eb8 to
28192d0
Compare
|
@codex review |
|
Codex Review: Didn't find any major issues. Keep it up! ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting |
.github/workflows/build.yml
Outdated
| curl -sL https://github.com/paritytech/try-runtime-cli/releases/download/v0.8.0/try-runtime-x86_64-unknown-linux-musl -o try-runtime | ||
| chmod +x ./try-runtime | ||
| - name: "System: Report disk headroom (before cleanup)" |
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.
All of these steps can be removed after master branch merged
| needs: [dynamic-matrix, node] | ||
| runs-on: ubuntu-latest | ||
| env: | ||
| SNAPSHOT_FILE: vara_ci.snap |
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.
Can be inlined
| find target -mindepth 1 -maxdepth 1 -print -exec ionice -c3 nice -n 19 rm -rf {} + | ||
| sync |
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.
Why not cargo clean?
| --no-weight-warnings \ | ||
| snap -p "$SNAPSHOT_FILE" | ||
| - name: "System: Disable swap" |
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.
No need to disable it on GitHub runners
| EXTRA_ARGS=() | ||
| if [ "$DISABLE_SPEC_NAME_CHECK" = "true" ]; then | ||
| EXTRA_ARGS+=(--disable-spec-name-check) | ||
| fi |
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.
This is why I suggested args: --disable-spec-name-check --etc - to simplify step. What do you think?
Implement a
try_statefunction that verifies all stored program codes can be successfully instrumented with the current schedule before runtime upgrades.OriginalCodeStorageSuccessor to #4598
@gear-tech/dev