Repository navigation
chore(deps): update iroh-blobs to 0.104 and bao-tree to 0.17 - #2745
Merged
Merged
Conversation
iroh-blobs 0.104 ends an export_bao stream after the leaf that completes the requested ranges and no longer sends Done (n0-computer/iroh-blobs#298). The serve path refused every such stream as truncated, so the node aborted every serve. The end of the stream is now a complete export; an export the store stops sending early arrives as an UnexpectedEof error from iroh-blobs, which fails the serve but does not quarantine the blob. bao-tree 0.17 deprecates BaoTree::root; three tests take the root from pre_order_nodes_iter instead. iroh and noq stay at 1.3.0: the gap-cap fix (n0-computer/noq#866) is merged but not released. The hold guard now links #866. Co-Authored-By: Claude Opus 5.5 <[email protected]>
5 tasks
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are recorded for the dependency upgrades and export-handling changes.
No open issues 🎉
What changed in this PR
Updates deCDN’s blob-storage and Bao codec dependencies, adapting the cache serve path to iroh-blobs’ new export completion behavior while retaining the iroh/QUIC version hold.
Changes:
- Upgrades iroh-blobs to 0.104, bao-tree to 0.17, and transitive iroh-util to 0.7.
- Accepts normal export stream completion and distinguishes interrupted exports from file corruption to avoid incorrect quarantine.
- Updates regression tests, deprecated test API calls, dependency documentation, and upstream hold references.
| File | Description |
|---|---|
crates/node/src/handlers/client/delivery/tests.rs |
Updates the interrupted-export error fixture and assertion. |
crates/cache/src/fill_session/tests.rs |
Replaces deprecated Bao root access with iterator access. |
crates/cache/src/engine/tests.rs |
Updates Bao root access and adds an interrupted-export classifier regression test. |
crates/cache/src/engine.rs |
Handles export completion and excludes interrupted exports from corruption quarantine. |
CHANGELOG.md |
Documents the upgrade and updates the upstream QUIC fix reference. |
Cargo.toml |
Updates blob-storage and Bao dependency requirements. |
Cargo.lock |
Locks the three upgraded dependencies. |
adr/000-language.md |
Records the new iroh-blobs baseline. |
.github/scripts/tests/test_check_iroh_hold.py |
Updates the expected upstream fix link. |
.github/scripts/check_iroh_hold.py |
Updates hold explanations and diagnostics without changing enforcement. |
Review effort: Balanced
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Moves iroh-blobs 0.103.1 → 0.104.0 and bao-tree 0.16.1 → 0.17.0 (iroh-util 0.6 → 0.7 comes with them). The lockfile changes only these three crates. iroh and its QUIC crates stay at 1.3.0.
The serve path relied on
Done. iroh-blobs 0.104 (n0-computer/iroh-blobs#298) ends anexport_baostream after the leaf that completes the requested ranges and no longer sendsDone.export_bao_range_streamtreated a stream that ended withoutDoneas truncated. On 0.104 the node therefore aborted every serve: 39decdn-nodepull tests failed anddelivery_completes_while_receipt_writer_is_stalledhung. Now the end of the stream counts as a complete export. iroh-blobs itself reports an export the store stops sending early, as a terminalErroritem.A cut-short export does not quarantine. iroh-blobs gives that error the kind
UnexpectedEof.quarantine_on_mismatchalready readsUnexpectedEofas "a data file is shorter than its recorded size" and quarantines a held blob. Without a check, a dead export task would therefore quarantine a good blob. On 0.103 the same event failed the serve without quarantining. Only the message tells the two errors apart, soexport_cut_shortcompares the message. Thea_cut_short_export_is_not_a_short_filetest pins that message against the real upstream stream: it shuts aMemStoredown mid-export, the way upstream's own test for #298 does. A mutation of the constant fails the test, and the test passed 50 of 50 runs.bao-tree 0.17 deprecates
BaoTree::root, which ignores the block size. Three cache tests now take the root frompre_order_nodes_iter(). For trees with more than one chunk group, it is the same node.Reviewer notes
crates/cache/src/engine.rs(export_bao_range_stream,quarantine_on_mismatch,export_cut_short). Everything else is version text or test call sites.[patch]ed to git main at70fdbfa2, which contains the gap-cap fix fix(proto): coalesce contiguous chunks during defragment n0-computer/noq#866. A direct repro failed 3 of 3 runs on noq 1.4.0 withINTERNAL_ERROR "too many gaps in stream buffer"; on noq main it passed 5 of 5 at 16 MiB and 2 of 2 at 60 MiB unread under the 64 MiB client window. In the repro, a server pushes 16 MiB on one stream and the client, with the production 64 MiB window, waits 3 s before it reads. The workspace tests and the 123 anvil journeys passed on that setup too. gateway: optional x402 HTTP payment edge for non-QUIC (browser/agent) clients #866 is not released yet (the latest noq on crates.io is 1.4.0), and a git source failscargo deny, so the hold andcheck_iroh_hold.pystay until noq 1.5 is published. The guard, its test and the CHANGELOG now link gateway: optional x402 HTTP payment edge for non-QUIC (browser/agent) clients #866 instead of the closed feat(common): validate-time relay URL parse check (#818) #828.cli_fetch_topupno longer catches the gap-cap bug locally: it passed 5 of 5 on noq 1.4.0. The lift PR should check the bug with a direct repro, not with the journeys.cargo denyreports RUSTSEC-2026-0387 (crypto-bigint0.5.5 throughk256). That finding is already onmain; this PR does not touch it.Verification
iroh-holdandcrate-edges.pre-commit run --all-fileswas not run separately.cargo clippy --workspace --all-targets --all-features -- -D warnings: cleanCARGO_BUILD_WARNINGS=deny cargo doc --workspace --no-deps --document-private-items: cleancargo nextest run --workspace: 6147 passedcargo nextest run -p decdn-e2e --features anvil-e2e --test-threads 2: 123 passed (run before the quarantine classifier, which touches no journey path)decdn-clientanddecdn-protocol: unchangedmake -C adr check-refs: cleanuvx --with pyyaml pytest .github/scripts/tests/test_check_iroh_hold.py: 14 passedchore, lowercase subjectCHANGELOG.mdentry under Changed🤖 Generated with Claude Code