Skip to content

ci: add network upgrade feature checks - #1210

Draft
max-digi wants to merge 2 commits into
mainfrom
ci/upgrade-checks
Draft

max-digi wants to merge 2 commits into
mainfrom
ci/upgrade-checks

Conversation

@max-digi

Copy link
Copy Markdown
Contributor

Adds a repeatable feature check suite for network upgrades, starting with T14, that a workflow can run against testnet or mainnet right after activation.

What it adds

  • pnpm upgrade-checks --upgrade t14 --network testnet|mainnet [--mode post|pre] (scripts/upgrade-checks/run.ts). post expects the upgrade's behavior to work; pre expects it to be rejected before activation.
  • T14 cases in scripts/upgrade-checks/t14.ts, each { id, name, area, needsFunds, run(ctx) } returning pass, fail, or blocked with detail and transaction links:
    • Read-only: chain head past activation, account precompiles answer (getConfigCommitment), signature verifier accepts a 2-of-3 approval.
    • Funded: register a 2-of-3 configurable account, payment approved by two signers on separate devices, one approval below the threshold rejected, replace a signer at the same address (removed signer rejected), upgrade a single-key account in place (original key alone rejected), scoped access key spends within its limit, spend above the limit rejected, new admin access key rejected.
  • Writes upgrade-checks-result.json ({ upgrade, network, chainId, mode, rpc, block, startedAt, finishedAt, cases, summary }) and appends a Markdown table to $GITHUB_STEP_SUMMARY when set. Exits 1 when any case fails; blocked cases don't fail the run.
  • Funding: testnet cases use the faucet. On mainnet, funded cases run only with UPGRADE_CHECKS_PRIVATE_KEY and otherwise report blocked. UPGRADE_CHECKS_TOKEN overrides the stablecoin (AlphaUSD on testnet, pathUSD on mainnet by default).
  • TEMPO_RPC_API_KEY sends RPC through the Tempo API's keyed proxy. e2e/rpc.ts now exports tempoApiRpcUrl so both use one URL.
  • .github/workflows/upgrade-checks.yml: workflow_dispatch with upgrade, network, and mode inputs, pinned actions as in the other workflows, uploads the result as an artifact.
  • tsconfig.node.json type-checks scripts/upgrade-checks.

Local runs

  • Testnet, post: 11 passed, 0 failed, 0 blocked.
  • Mainnet, pre: the 3 read-only cases pass; funded cases report blocked without a key.
  • Mainnet, post (before activation): the 3 read-only cases fail and the run exits 1, as expected.

Notes from the testnet run:

  • A payment with 1 of 2 approvals is rejected by the RPC as invalid transaction signature, not the multisig signature weight below threshold message the Signing Thresholds page names.
  • An access key's network fee counts against its spending limit when it pays fees in the same stablecoin (0.05 limit, 0.02 payment left 0.027851).
  • authorizeAdminKey reverts with UnknownFunctionSelector.

Add pnpm upgrade-checks, which runs an upgrade's feature cases against
testnet or mainnet in pre or post mode and writes
upgrade-checks-result.json plus a step summary. T14 cases cover
configurable accounts, account upgrades, access keys and admin access
key removal. The Upgrade checks workflow runs it on demand and uploads
the result.

This branch has not been deployed

No deployments
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.

1 participant