Skip to content

E2E setup#2447

Open
l0r1s wants to merge 99 commits intodevnet-readyfrom
e2e-setup
Open

E2E setup#2447
l0r1s wants to merge 99 commits intodevnet-readyfrom
e2e-setup

Conversation

@l0r1s
Copy link
Collaborator

@l0r1s l0r1s commented Feb 19, 2026

Summary

Introduces a full E2E testing infrastructure using polkadot-api (papi) and sets up the MEV Shield test suite as the first consumer.

E2E infrastructure (e2e/)

  • Set up a pnpm workspace under e2e/ with a shared utilities package and per-suite test packages.
  • e2e/shared provides helpers for spawning multi-node networks, generating/patching chain specs, managing dev signers via polkadot-api, and a custom vitest sequencer for ordered test execution.
  • Added setup_env.sh to check/install prerequisites (nvm, node, pnpm, jq, yq).
  • Added bootstrap_types.sh to build the node binary and generate papi type descriptors without requiring dependencies to be installed first.
  • Added bootstrap_package.sh to scaffold new E2E test packages using jq/yq.
  • All temp files stored under /tmp/subtensor-e2e/<suite>/ for easy bulk cleanup.

MEV Shield E2E suite (e2e/shield)

  • Migrated from dedot to polkadot-api.
  • Tests cover: key rotation, encrypted transaction happy path, failed inner transactions, malformed ciphertext rejection, wrong key hash, stale key rejection, network scaling (3 to 6 nodes), and edge cases.
  • Storage queries for rotating keys use { at: "best" } instead of the default "finalized" to avoid stale key issues caused by GRANDPA finalization lag.

shamil-gadelshin and others added 30 commits February 17, 2026 18:16
Copy link
Collaborator

@shamil-gadelshin shamil-gadelshin left a comment

Choose a reason for hiding this comment

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

@l0r1s l0r1s added the skip-cargo-audit This PR fails cargo audit but needs to be merged anyway label Feb 24, 2026
@l0r1s l0r1s force-pushed the mev-shield-rework branch from 2cf308a to 805de46 Compare February 25, 2026 19:10
@l0r1s l0r1s changed the base branch from mev-shield-rework to devnet-ready February 25, 2026 21:59
Copy link
Collaborator

@shamil-gadelshin shamil-gadelshin left a comment

Choose a reason for hiding this comment

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

Production build is much longer than release. I'll probably downgrade the fast build back to release later. Looks good!

@l0r1s
Copy link
Collaborator Author

l0r1s commented Feb 26, 2026

Production build is much longer than release. I'll probably downgrade the fast build back to release later. Looks good!

alright, just updated to release build

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

Labels

skip-cargo-audit This PR fails cargo audit but needs to be merged anyway

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants