Skip to content

chore(deps): bump iroh-blobs to 0.105 - #2946

Merged
alpergundogdu merged 1 commit into
mainfrom
iroh-blobs-0.105
Nov 23, 2026
Merged

alpergundogdu merged 1 commit into
mainfrom
iroh-blobs-0.105

Conversation

@alpergundogdu

Copy link
Copy Markdown
Contributor

Step 2 of moving the client store onto iroh-blobs (#2881).

Why

0.105 adds OS-crash recovery to the fs store's default CrashConsistency::ProcessCrash mode (#353 upstream). The store records a boot id; after an OS crash each entry re-checks its files when next loaded and may report less data, never more. The client store's resume will rely on the store alone, so it needs this.

What changes

  • iroh-blobs 0.104 → 0.105. The lock also moves irpc/irpc-derive 0.17 → 1.0 and n0-error 1.0.1 → 1.0.3. iroh stays at 1.3; bao-tree stays at 0.17.
  • ADR 000 records the new baseline.
  • 0.105 answers the empty hash in the client (ADR cleanup: residual v3-iteration framing in ADRs 004, 021, 023, 030 #341 upstream), so status now reports the empty blob as Complete { size: 0 }. Size-proof tags hold the empty blob, so it shows up in list(). iter_hashes and the size walk (snapshot_blob_sizes) now skip it: the empty blob is never a cache entry. Without this, five iter_hashes tests fail, and eviction would see a zero-byte entry.

Crash repros on 0.105.0

A standalone repro (raw iroh-blobs, one import_bao_bytes per MiB) re-ran the 0.104.1 kill/exit matrix. Every recovered byte read back equal to the source.

Case 0.105.0
SIGKILL in a new blob's first ~500 ms lost
same, sync_db() after the first import kept
SIGKILL at 48 of 128 MiB 48 MiB kept
exit / drop mid-blob without sync_db/shutdown lost
exit after sync_db or shutdown kept
exit right after completing, no sync every range kept, status Partial (0.104.1: lost)

The 500 ms write-batch window is unchanged, so the client store will call sync_db() after a blob's first import and shutdown() on exit.

Tests

  • New: size_snapshot_leaves_out_the_empty_blob (fails without the fix).
  • cargo nextest run -p decdn-cache -p decdn-node -p decdn-cli -p decdn-client: 4744 passed.
  • Workspace clippy (--all-features), crate-edge check, and cargo deny bans/licenses/sources clean.

🤖 Generated with Claude Code

0.105 recovers the fs store after an OS crash in its default
ProcessCrash mode: an entry re-checks its files and may report less
data, never more. The client store moves onto iroh-blobs next (#2881),
and its resume relies on that.

0.105 answers the empty hash in the client (#341), so `status` reports
the empty blob complete. Size-proof tags hold the empty blob, and the
cache's blob listings (`iter_hashes`, the size walk) now leave it out:
it is never a cache entry.

irpc moves to 1.0 with it. ADR 000 records the new baseline.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-code-quality

Copy link
Copy Markdown

Code coverage overview

Languages: Rust

Rust / code-coverage/cargo-llvm-cov

main 409cf15 iroh-blobs-0.105 d756bd5 +/-
77% 77% 0%

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

@alpergundogdu
alpergundogdu merged commit deed8b3 into main Nov 23, 2026
39 checks passed
@alpergundogdu
alpergundogdu deleted the iroh-blobs-0.105 branch November 23, 2026 18:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant