Skip to content

Dev chain on runtime v52 and the RWS user-story tests - #97

Merged
Vourhey merged 3 commits into
mainfrom
story-test
Oct 28, 2026
Merged

Vourhey merged 3 commits into
mainfrom
story-test

Conversation

@Vourhey

@Vourhey Vourhey commented Oct 28, 2026

Copy link
Copy Markdown
Member

What

The development-chain tests move from the runtime v50 wasm to v52, the newest release that ships its wasm. The library is unchanged; no release is needed.

  • scripts/devchain.sh: runtime v52 (sha256 pinned), and --para-id 2000. The preset writes parachainInfo.parachainId = 2000 into the genesis; with the old 2048 the node's mock relay chain had no head for the parachain and v52 panicked on block 1 (included head not present in relay storage proof). airalab/robonomics/scripts/development-chain.sh uses 2000 too.
  • scripts/seed_auctions.py (new): v52 has no Sudo and start_auction is Root-only, so 8 Lifetime and 8 Daily auctions are written into the raw genesis, as if a referendum had started them. An auction nobody bids on stays in the queue; a won one is spent.
  • tests/integration/test_devchain.py: make_oracle, subscribe and every Sudo call are gone. test_user_story (both key types): a new account without XRT gets Payment, is funded by transfer, a bid at the minimum gets TooSmallBid, then it wins an auction, waits for the rotation, sets devices and writes datalog through the subscription; a stranger device gets NotLinkedDevice. The fresh Daily check (FreeWeightIsNotEnough) stays.
  • README, CHANGELOG (Unreleased) and the CI comment no longer say v50 / sudo.

Checked

Locally on macOS arm64: 14 integration tests pass, a second run on the same node passes too (8+8 seeded auctions serve four runs of the suite), ruff, mypy, 340 offline tests.

Not checked: CI. On Linux x86_64 devchain.sh runs uv run python scripts/seed_auctions.py; this PR's integration job is the first run of that.

🤖 Generated with Claude Code

Vourhey and others added 3 commits October 28, 2026 22:10
The production runtime has no Sudo and starting an auction is a Root call, so
scripts/seed_auctions.py writes 8 Lifetime and 8 Daily auctions into the raw spec.
The para id is now 2000, the one the preset writes into parachainInfo: with 2048 the
node's mock relay chain had no head for the parachain and v52 panicked on block 1.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
A new account with no XRT is funded by transfer, bids in a seeded auction, waits for
the rotation, sets devices and writes through the subscription; a stranger device,
a too-small bid and a fresh Daily subscription fail with the runtime's own errors.
make_oracle, subscribe and every Sudo call are gone: the runtime has no Sudo.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@Vourhey
Vourhey merged commit b99cf52 into main Oct 28, 2026
13 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.

1 participant