Repository navigation
test(e2e): cover default-open origin journey - #1278
Conversation
|
Caution The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased. |
ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Free Run ID: 📒 Files selected for processing (5)
WalkthroughThe E2E fixtures now support origin assignment governance, pull-through cache discovery, signed client bindings, and timelocked assignment activation. A new gated test validates cached content after migration from the default-open origin set to an assigned namespace. ChangesDefault-open origin migration
Estimated code review effort: 4 (Complex) | ~45 minutes Sequence Diagram(s)sequenceDiagram
participant GOriginTest
participant NodeFixture
participant ClientFixture
participant ChainFixture
participant FeeRouter
GOriginTest->>NodeFixture: launch default-open origin and pull-through cache
GOriginTest->>ClientFixture: fetch content and retain cached bytes
GOriginTest->>ChainFixture: claim content and activate namespace assignment
ChainFixture->>FeeRouter: read bytesPerEpoch baselines
GOriginTest->>ClientFixture: re-fetch cached content
GOriginTest->>FeeRouter: verify delivery counters remain unchanged
Note 🎁 Summarized by CodeRabbit FreeYour organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting https://app.coderabbit.ai/login. Comment |
Coverage reportTotal: 81.34% (was 81.49%, ▼ 0.16%) — 48623/59781 lines
History
|
Review — G-ORIGIN-04 default-open migration E2ETest-only PR (+383/−15, 5 files, no production code touched). Adds the OriginAssignment governance/publisher fixture surface and a gated journey proving a cached blob keeps serving locally after its hash migrates from the default-open origin set to an assigned namespace. LGTM — clean and well-reasoned; only minor nits below. What it does
Strengths
Minor suggestions (non-blocking)
RiskContained to test infrastructure; no runtime code changed. Anvil/E2E tests are inherently heavier and load-sensitive, but the 900s overall / 90s settlement budgets look adequately padded and the pinned-epoch + settlement-wait designs specifically target the two most likely flake sources. Generated by Claude Code |
Summary
Validation
cargo test -p decdn-e2e— 3 passed, 0 failedcargo test -p decdn-e2e --features anvil-e2e --test g_origin_04_default_open --no-run— passedcargo clippy -p decdn-e2e --features anvil-e2e --test g_origin_04_default_open -- -D warnings— passedcargo fmt --all -- --check— passedgit diff --check— passedNotes
TcpListener::bindwithOperation not permitted; the authoritative CI Anvil job passed.Closes #1043
Summary by CodeRabbit
New Features
Bug Fixes
Tests