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 the range pull-through path (#985) verifying that a cdn/client/v1 byte-range request on a cache miss fetches only the requested range from origin and correctly assembles bao-verified output #990
PR #985 wires range_pull into origin adapters and the cache engine, but there is no end-to-end test that issues a byte-range request against a cold cache, confirms the origin received a range request, and verifies the delivered bytes match the slice of the full blob.
PR #985 wires range_pull into origin adapters and the cache engine but ships with no end-to-end coverage. This issue requests a targeted integration test that exercises the full cold-cache → range-request-to-origin → BAO-verified delivery path on cdn/client/v1. The success criteria are explicit and the scope is tightly bounded to one feature area.
📊 Assessment
Dimension
Value
Reasoning
Type
Task
Test authoring task with well-defined acceptance criteria; no design decisions required
Labels
medium added (existing: technical, testing)
Test coverage gap on recently-wired feature; not blocking but should close soon after #985 lands
Coding agent
Suitable
Requirements are precise: cold cache → byte-range request → assert origin got a ranged fetch → assert delivered bytes match expected slice → assert BAO verification passes. Scope is self-contained in the cache crate test harness
Cold-cache scenario — ensure the blob is absent from the local iroh-blobs store before the request.
Range request propagation — use a mock or instrumented origin adapter to assert that the upstream fetch used an HTTP Range: header matching the requested byte range.
Byte slice correctness — compare the delivered payload against the expected slice of the known full blob.
BAO verification — confirm the bao-verified decode step passes (i.e., the hash tree proof is consistent with the slice).
Suggested test structure (in crates/cache/):
#[tokio::test]asyncfnrange_pull_cold_cache_e2e(){// 1. Spin up a mock HTTP origin that records received Range headers// 2. Configure a CacheEngine with an HttpOrigin pointing at the mock// 3. Ensure cache is empty (fresh iroh-blobs store)// 4. Issue a cdn/client/v1 byte-range request for [offset, offset+len)// 5. Assert mock received exactly one request with matching Range header// 6. Assert returned bytes == blob[offset..offset+len]// 7. Assert BAO verification did not error}
crates/protocol/ — cdn/client/v1 message types for byte-range framing
Existing cache tests for setup patterns (mock origin, iroh-blobs store initialization)
Open question for reviewers: If #985 is still open/unmerged, this test can be developed in the same PR. If #985 already merged, a follow-up PR is appropriate.
Closed by #1007 (merged as 2dba333). The end-to-end coverage lives in crates/node/tests/origin_range_pull.rs: cold_range_request_pulls_only_the_range_from_origin issues a cdn/client/v1 byte-range request against a cold cache and asserts the origin received exactly one ranged GET (zero whole-blob GETs), the delivered bytes equal the requested slice, and the blob stays partial — plus resume-to-end, out-of-bounds-reject, no-outboard fallback, and unauthorized-request coverage.
Activity
github-actions commentedon Jun 24, 2026
🎯 Triage report
PR #985 wires
range_pullinto origin adapters and the cache engine but ships with no end-to-end coverage. This issue requests a targeted integration test that exercises the full cold-cache → range-request-to-origin → BAO-verified delivery path oncdn/client/v1. The success criteria are explicit and the scope is tightly bounded to one feature area.📊 Assessment
mediumadded (existing:technical,testing)cachecrate test harness🔗 Similar issues
💡 Notes and suggestions
What the test must cover (from the issue body):
Range:header matching the requested byte range.Suggested test structure (in
crates/cache/):Useful reference points in the codebase:
crates/cache/—CacheEngine, origin adapters,range_pullhelper (wired in feat(cache): wire range_pull helper into origin adapters and engine (#962) #985)crates/protocol/—cdn/client/v1message types for byte-range framingOpen question for reviewers: If #985 is still open/unmerged, this test can be developed in the same PR. If #985 already merged, a follow-up PR is appropriate.
Add this agentic workflows to your repo
To install this agentic workflow, run
feat(node): origin-tier range pull-through on cdn/client/v1 (#823, #990…
thiras commentedon Jun 27, 2026
Closed by #1007 (merged as 2dba333). The end-to-end coverage lives in
crates/node/tests/origin_range_pull.rs:cold_range_request_pulls_only_the_range_from_originissues acdn/client/v1byte-range request against a cold cache and asserts the origin received exactly one ranged GET (zero whole-blob GETs), the delivered bytes equal the requested slice, and the blob stays partial — plus resume-to-end, out-of-bounds-reject, no-outboard fallback, and unauthorized-request coverage.