Skip to content

chore(descriptors): regenerate against current live-chain runtime#252

Merged
Imod7 merged 4 commits into
mainfrom
domi-descriptors-drift-242
Jul 19, 2026
Merged

chore(descriptors): regenerate against current live-chain runtime#252
Imod7 merged 4 commits into
mainfrom
domi-descriptors-drift-242

Conversation

@Imod7

@Imod7 Imod7 commented Jul 19, 2026

Copy link
Copy Markdown
Collaborator

Relates to #242

Description

Relates to #242

  • Regenerates the bundled PAPI descriptors for the 7 chains that had drifted, so each pinned codeHash and its metadata match the live runtime again. This is the 6 chains flagged in chore(descriptors): runtime drift detected #242 plus devnet-individuality, which chore(descriptors): runtime drift detected #242 reported as unreachable but was reachable (and also drifted) at regeneration time.
  • Also fixes the drift issue's "How to resolve" steps, which told people to run a command that does not actually refresh the metadata.

Changes

  • packages/descriptors/.papi/metadata/*.scale (7 files) - Refreshed runtime metadata pulled from each live chain RPC.
  • packages/descriptors/chains/*/.papi/polkadot-api.json (7 files) - Re-pinned each chain's codeHash to its live runtime. Genesis is unchanged.
  • packages/descriptors/chains/*/generated/package.json (4 files) - Auto version bump for the chains whose generated bindings changed.
  • pending-changesets/descriptors-runtime-refresh.md (new) - Changeset for a patch release of @parity/product-sdk-descriptors. Parked in pending-changesets/ so it does not publish until promoted to .changeset/.
  • .github/workflows/product-sdk-descriptors-drift.yml - Corrected the auto-generated issue's "How to resolve" steps: use npx papi update from inside each chain dir (fetches live metadata and re-pins codeHash) instead of pnpm generate (rebuilds bindings from cached metadata only), plus a biome format and a pnpm check step.

@github-actions

github-actions Bot commented Jul 19, 2026

Copy link
Copy Markdown

📦 Bundle size impact

Comparing 2026-07-19T18:04:59.777Z2026-07-19T18:05:00.983Z

Package Entry Bundled before Bundled after Δ Ship gzip Δ Shake ratio
🟢 @parity/product-sdk . 6.28 MB 6.32 MB +37.1 KB (+0.6%) 0 B 0% (was 0%)
🟢 @parity/product-sdk ./chain 6.04 MB 6.08 MB +37.1 KB (+0.6%) 0 B 0% (was 0%)
🟢 @parity/product-sdk ./cloud-storage 6.22 MB 6.25 MB +37.1 KB (+0.6%) 0 B 3% (was 3%)
🟢 @parity/product-sdk ./core 6.28 MB 6.32 MB +37.1 KB (+0.6%) 0 B 0% (was 0%)
🟢 @parity/product-sdk ./react 6.29 MB 6.33 MB +37.1 KB (+0.6%) 0 B 0% (was 0%)
🟢 @parity/product-sdk-chain-client . 6.04 MB 6.08 MB +37.1 KB (+0.6%) 0 B 0% (was 0%)
🟢 @parity/product-sdk-cloud-storage . 6.22 MB 6.25 MB +37.1 KB (+0.6%) 0 B 3% (was 3%)
🟢 @parity/product-sdk-descriptors ./kusama-asset-hub 1018.2 KB 1.01 MB +14.3 KB (+1.4%) -15 B 17% (was 17%)
🟢 @parity/product-sdk-descriptors ./paseo-asset-hub 1021.7 KB 1021.1 KB -646 B (-0.1%) -3 B 17% (was 17%)
🟢 @parity/product-sdk-descriptors ./paseo-individuality 652.5 KB 657.6 KB +5.1 KB (+0.8%) +1 B 19% (was 19%)
🟢 @parity/product-sdk-descriptors ./polkadot-asset-hub 963.3 KB 981.7 KB +18.4 KB (+1.9%) -20 B 17% (was 17%)

Thresholds — warn: ≥10% or ≥5.0 KB · fail: ≥20% or ≥15.0 KB (bundled). Percentage only applies once the baseline is ≥ 10 KB.

@Imod7
Imod7 merged commit 6c64452 into main Jul 19, 2026
12 checks passed
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