Skip to content

test(e2e): seed {H}.obao4 so ranged origin fetches reach the range tier #1372

Closed

Description

@yigitdot

Follow-up from the review of #1366.

NodeFixture::seed_origin_blob writes only the data object ({root}/{hex[..2]}/{hex}, via write_fs_origin_blob at crates/e2e/src/node.rs). It does not write the sibling {H}.obao4 outboard.

FilesystemOrigin::fetch_range treats a missing outboard as Unsupported by design (crates/cache/src/origin/fs.rs:240-290; there is a dedicated unit test, fetch_range_without_outboard_is_unsupported at fs.rs:814). So for any blob seeded this way:

  • try_range_pull_through (dispatch.rs:256) declines,
  • the request falls through to try_local_populate (dispatch.rs:289) — a whole-blob fill,
  • and the tail is produced by a server-side export_range.

Consequence for G-NODE-08: its "ranged origin fetch" assertion passes, but via the whole-blob path. The origin range tier is never entered, and RANGE_OFFSET = 40_001's deliberate non-alignment therefore exercises none of bao-range's chunk-group handling. The comments in that test now say so explicitly rather than claiming otherwise, but the coverage gap is real.

Proposal: give seed_origin_blob an outboard-writing variant (mirroring seed_blob_with_outboard, crates/cache/src/origin/fs.rs:763) and use it for the ranged half. Then add a control that distinguishes the tiers — e.g. after a range-tier serve the blob should still be partially present rather than fully imported, which only holds on the true range path.

Activity

  1. added
    kind:test
    rust
    prio:medium
    on Jul 22, 2026
  2. self-assigned this
    on Jul 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind:testprio:mediumrust

Type

No type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions