You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
tests: no integration test for cdn/client/v1 node-to-node paid pull-through covering cache miss, upstream payment channel creation, and simultaneous client streaming #746
The cdn/client/v1 handler was implemented in PR #733 but there is no integration test that exercises the full node-to-node paid pull-through path: a client requesting a blob not in the local cache, the node opening a payment channel to an upstream node, and streaming the blob to the client simultaneously. This scenario is the critical revenue and correctness path for the multi-hop case.
Missing integration test for the cdn/client/v1 paid pull-through path: cache miss → upstream payment-channel open → simultaneous blob streaming to client. This is the critical revenue/correctness path for multi-hop, flagged poc-blocking. The handler was shipped in PR #733 but no end-to-end test exercises the full three-phase flow, leaving correctness of the payment + streaming interaction unverified.
📊 Assessment
Dimension
Value
Reasoning
Type
Task
Implementing a missing test suite; no bug or design decision needed
Scope is well-defined: spin up two in-process nodes, trigger a cache-miss request, assert payment channel is opened and blob arrives correctly; no architectural decisions required
💡 Notes and suggestions
Test structure sketch
Spin up two decdn-node instances in-process (or via tokio::test) — an upstream node with the blob already cached, and a downstream node with an empty cache.
Connect a mock client to the downstream node using the cdn/client/v1 ALPN.
Assert the downstream node opens a payment channel to the upstream node (incentive crate).
Assert the downstream node streams blob bytes to the client simultaneously (no full-fetch-then-forward).
Assert the downstream node records payment vouchers correctly.
In-scope test coverage closed by #827 (node-to-node pull-through sad-path cases); the happy-path two-hop test landed earlier in #813, and the runtime orchestration #827 noted as deferred has since landed in #834. Closing as resolved.
Activity
github-actions commentedon May 31, 2026
🎯 Triage report
Missing integration test for the
cdn/client/v1paid pull-through path: cache miss → upstream payment-channel open → simultaneous blob streaming to client. This is the critical revenue/correctness path for multi-hop, flaggedpoc-blocking. The handler was shipped in PR #733 but no end-to-end test exercises the full three-phase flow, leaving correctness of the payment + streaming interaction unverified.📊 Assessment
critical,technical,testing,poc-blocking)💡 Notes and suggestions
Test structure sketch
decdn-nodeinstances in-process (or viatokio::test) — an upstream node with the blob already cached, and a downstream node with an empty cache.cdn/client/v1ALPN.incentivecrate).Key files to look at
crates/node/—cdn/client/v1handler wiring (added in feat(node): cdn/client/v1 paid-delivery handler + node-to-node requester (#317) [3/3] #733)crates/cache/— pull-through engine and upstream fetch logiccrates/incentive/— payment-channel open/update logicEdge cases worth covering
Suggested sub-tasks
Add this agentic workflows to your repo
To install this agentic workflow, run
test(node): two-hop node-to-node paid pull-through integration test (#…
test(node): node-to-node pull-through sad-path coverage (#746) (#827)
thiras commentedon Jun 10, 2026
In-scope test coverage closed by #827 (node-to-node pull-through sad-path cases); the happy-path two-hop test landed earlier in #813, and the runtime orchestration #827 noted as deferred has since landed in #834. Closing as resolved.