gear icon indicating copy to clipboard operation
gear copied to clipboard

feat(pallet-gear): Add compatibility check for code instrumentation

Open ukint-vs opened this issue 6 months ago • 3 comments

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 https://github.com/gear-tech/gear/pull/4598

@gear-tech/dev

ukint-vs avatar Sep 26 '25 07:09 ukint-vs

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

semanticdiff-com[bot] avatar Sep 26 '25 07:09 semanticdiff-com[bot]

@codex review

ukint-vs avatar Oct 03 '25 13:10 ukint-vs

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

  • @codex fix this CI failure
  • @codex address that feedback