Skip to content

Conversation

@ukint-vs
Copy link
Member

@ukint-vs ukint-vs commented Sep 26, 2025

Implement a try_state function that verifies all stored program codes can be successfully instrumented with the current schedule before runtime upgrades.

  • Iterates through all codes in OriginalCodeStorage
  • Re-instrument all codes ignoring known incompatibilities

Successor to #4598

@gear-tech/dev

@ukint-vs ukint-vs requested review from ark0f and breathx September 26, 2025 07:48
@ukint-vs ukint-vs self-assigned this Sep 26, 2025
@ukint-vs ukint-vs added A0-pleasereview PR is ready to be reviewed by the team C1-feature Feature request labels Sep 26, 2025
@semanticdiff-com
Copy link

semanticdiff-com bot commented Sep 26, 2025

Review changes with  SemanticDiff

Changed Files
File Status
  .github/workflows/build.yml  24% smaller
  core/src/code/errors.rs  0% smaller
  pallets/gear/Cargo.toml Unsupported file format
  pallets/gear/src/lib.rs  0% smaller

Copy link
Member

@breathx breathx left a 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

@ukint-vs ukint-vs force-pushed the vs/reinstrument-check-try-state branch from 5cc3eb8 to 28192d0 Compare September 29, 2025 06:16
@breathx breathx changed the title feat(pallet-gear): Add compatibility check for code intrumentation feat(pallet-gear): Add compatibility check for code instrumentation Sep 29, 2025
@ukint-vs
Copy link
Member Author

ukint-vs commented Oct 3, 2025

@codex review

@chatgpt-codex-connector
Copy link

Codex Review: Didn't find any major issues. Keep it up!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting

@ukint-vs ukint-vs added A2-mergeoncegreen PR is ready to merge after CI passes and removed A0-pleasereview PR is ready to be reviewed by the team labels Nov 12, 2025
@ukint-vs ukint-vs requested a review from ark0f November 13, 2025 20:04
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)"
Copy link
Member

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

@ukint-vs ukint-vs requested a review from ark0f November 19, 2025 15:42
needs: [dynamic-matrix, node]
runs-on: ubuntu-latest
env:
SNAPSHOT_FILE: vara_ci.snap
Copy link
Member

Choose a reason for hiding this comment

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

Can be inlined

Comment on lines +432 to +433
find target -mindepth 1 -maxdepth 1 -print -exec ionice -c3 nice -n 19 rm -rf {} +
sync
Copy link
Member

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"
Copy link
Member

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

Comment on lines +447 to +450
EXTRA_ARGS=()
if [ "$DISABLE_SPEC_NAME_CHECK" = "true" ]; then
EXTRA_ARGS+=(--disable-spec-name-check)
fi
Copy link
Member

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A2-mergeoncegreen PR is ready to merge after CI passes C1-feature Feature request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants