Skip to content

chore(deps): update iroh-blobs to 0.104 and bao-tree to 0.17 - #2745

Merged
thiras merged 1 commit into
mainfrom
chore/iroh-blobs-0.104
Oct 29, 2026
Merged

thiras merged 1 commit into
mainfrom
chore/iroh-blobs-0.104

Conversation

@thiras

@thiras thiras commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

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 an export_bao stream after the leaf that completes the requested ranges and no longer sends Done. export_bao_range_stream treated a stream that ended without Done as truncated. On 0.104 the node therefore aborted every serve: 39 decdn-node pull tests failed and delivery_completes_while_receipt_writer_is_stalled hung. Now the end of the stream counts as a complete export. iroh-blobs itself reports an export the store stops sending early, as a terminal Error item.

A cut-short export does not quarantine. iroh-blobs gives that error the kind UnexpectedEof. quarantine_on_mismatch already reads UnexpectedEof as "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, so export_cut_short compares the message. The a_cut_short_export_is_not_a_short_file test pins that message against the real upstream stream: it shuts a MemStore down 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 from pre_order_nodes_iter(). For trees with more than one chunk group, it is the same node.

Reviewer notes

  • The fix and the classifier are in crates/cache/src/engine.rs (export_bao_range_stream, quarantine_on_mismatch, export_cut_short). Everything else is version text or test call sites.
  • The iroh hold stays. I tested iroh 1.4.1 with noq [patch]ed to git main at 70fdbfa2, 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 with INTERNAL_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 fails cargo deny, so the hold and check_iroh_hold.py stay 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_topup no 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 deny reports RUSTSEC-2026-0387 (crypto-bigint 0.5.5 through k256). That finding is already on main; this PR does not touch it.

Verification

  • Pre-commit hooks on the commit: all pass, including iroh-hold and crate-edges. pre-commit run --all-files was not run separately.
  • cargo clippy --workspace --all-targets --all-features -- -D warnings: clean
  • CARGO_BUILD_WARNINGS=deny cargo doc --workspace --no-deps --document-private-items: clean
  • cargo nextest run --workspace: 6147 passed
  • cargo nextest run -p decdn-e2e --features anvil-e2e --test-threads 2: 123 passed (run before the quarantine classifier, which touches no journey path)
  • Public API snapshots for decdn-client and decdn-protocol: unchanged
  • make -C adr check-refs: clean
  • uvx --with pyyaml pytest .github/scripts/tests/test_check_iroh_hold.py: 14 passed
  • PR title type is chore, lowercase subject
  • CHANGELOG.md entry under Changed

🤖 Generated with Claude Code

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]>
@thiras thiras added the dependencies Dependabot: a dependency update label Oct 29, 2026
Copilot AI balanced review requested due to automatic review settings October 29, 2026 01:43
@thiras thiras added the dependencies Dependabot: a dependency update label Oct 29, 2026
@thiras thiras self-assigned this Oct 29, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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

@github-code-quality

Copy link
Copy Markdown

Code coverage overview

Languages: Rust

Rust / code-coverage/cargo-llvm-cov

main 206fd97 chore/iroh-blobs-0.1... a99ae44 +/-
77% 77% 0%

ℹ️ Calculations represent line coverage. Results may change as calculations are updated.

@thiras
thiras merged commit 9d7df5a into main Oct 29, 2026
40 checks passed
@thiras
thiras deleted the chore/iroh-blobs-0.104 branch October 29, 2026 01:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Dependabot: a dependency update

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants