Skip to content

e2e harness: cross-layer Rust↔contract test fixtures (crates/e2e) #1028

Closed

Description

@alpergundogdu

Build the cross-cutting e2e harness that almost every CUJ gap depends on. Today only anvil_settlement_e2e.rs crosses the Rust↔contract seam; journeys that span daemon behavior and on-chain state have no home.

Where: new workspace member crates/e2e (test-only, publish = false), depending on node, cli, incentive, cache, and the Foundry artifacts.

Fixtures to build (checklist):

  • Chain fixture — spin up anvil, deploy the full contract set via the existing DeployProtocol script, expose typed alloy handles (generalizes anvil_settlement_e2e.rs).
  • Node fixture — N in-process decdn-node daemons wired to the anvil deployment; per-node temp data dir, configurable backend (memory/fs/S3-mock), declared capacity, region.
  • Client fixture — drive decdn fetch / the client path against the mesh.
  • Time control — advance anvil time across dispute / compliance / timelock / unbond windows.
  • Assertions — on-chain state (bond, blacklist, channel) + daemon admin RPC (admin_v1_status/channels/regionStats/reputation) + delivered bytes.

Sequencing: chain + node fixtures first (unblocks the onboarding and blacklist gaps), then time-control helpers (unblocks dispute/compliance/window gaps).

This is the root enabler for cluster A/B gaps. Spec: internal/Product/gaps-and-e2e-test-specs.md §2.

Metadata

Metadata

Assignees

Labels

kind:testprio:high

Type

No type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions