Skip to content

Create real-chain CI smoke system #213

@Andre-Diamond

Description

@Andre-Diamond

Why this exists

  • Protects v1 API routes from regressions on pull requests.
  • Verifies behavior against real blockchain conditions (preprod), not only mocked/unit paths.
  • Keeps wallet bootstrap stable while allowing route tests to grow incrementally.
  • Makes it easy to add new API route checks as composable scenario steps.

High-level flow

CI runs these stages in order:

  1. Bootstrap (create-wallets.ts)

    • Derives signer addresses from mnemonic secrets.
    • Provisions one bot key per signer address.
    • Creates test wallets (legacy, hierarchical, sdk).
    • Grants all signer bots cosigner access to created wallets.
    • Seeds baseline pending transactions.
    • Writes a versioned context JSON consumed by all later steps.
  2. Route chain (run-route-chain.ts)

    • Loads and validates bootstrap context.
    • Loads enabled scenarios from scenarios/manifest.ts.
    • Executes steps in deterministic order with critical/non-critical failure semantics.
    • Emits console summary and machine-readable JSON report.
  3. Artifacts

    • Route-chain JSON report is written to ci-artifacts/ci-route-chain-report.json.
    • Workflow uploads it as an artifact for triage.

Commit history

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions