Skip to content

fix(deps): hold noq-proto at 1.3 again, and keep Dependabot off the noq crates - #2655

Merged
thiras merged 1 commit into
mainfrom
fix/hold-noq-proto
Oct 27, 2026
Merged

thiras merged 1 commit into
mainfrom
fix/hold-noq-proto

Conversation

@thiras

@thiras thiras commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

What

#2635 (the Dependabot rust-dependencies group) bumped noq-proto 1.3.0 → 1.4.0, past the hold that ADR 000 records and 131f6684 set. noq-proto 1.4 caps a stream's buffered chunks and closes the connection with INTERNAL_ERROR ("too many gaps in stream buffer", #2585) once the reader falls ~2.4 MiB behind. A pull then dies mid-leg with the node's credit-window bytes delivered and unpaid.

Evidence, from cli_fetch_topup::fetch_of_blob_far_exceeding_deposit_settles_whole_wire_cost_once (failing every run locally on main @ c564e2a, and 3/3 tries in #2654's CI):

  • Client: leg 1 lands 17,743,872 B, then no terminal signal after the voucher write failed; … connection lost; leg 2 resumes at exactly 17,743,872.
  • Node: client stream ended with error … proof stream read failed: connection lost: peer-side fault paid_wire_bytes=15728640.
  • The lane settles 18,095 µUSDC / 18,973,393 B of a 20,083 µUSDC / 21,057,553 B wire cost: ~2 MiB delivered, never paid.

With noq-proto at 1.3.0 (this PR) the journey settles exactly 20,083 µUSDC in one leg, 3/3 runs, and all three cli_fetch_topup tests pass twice in a row.

  • Cargo.lock: noq-proto back to 1.3.0 — only its version and checksum, the exact inverse of chore(deps): bump the rust-dependencies group with 3 updates #2635's hunk (its dependency list is unchanged; cargo build --locked accepts it).
  • .github/dependabot.yml: ignore noq* as well as iroh*, so the noq crates move only with iroh, on a deliberate cargo update.

Refs #2629, #2585

Reviewer notes

Verification

  • cargo build --locked -p decdn-cli -p decdn-node (lock unchanged by the build)
  • cargo nextest run -p decdn-e2e --features anvil-e2e -E 'binary(cli_fetch_topup)' --retries 0 — 3 passed, twice; built binaries link noq-proto-1.3.0
  • PR title type fix, lowercase subject

🤖 Generated with Claude Code

…oq crates

The rust-dependencies group bump (#2635) took noq-proto from 1.3.0 to
1.4.0, past the hold ADR 000 records and 131f668 set. noq-proto 1.4 caps a
stream's buffered chunks and closes the connection with INTERNAL_ERROR
("too many gaps in stream buffer", #2585) once the reader falls about
2.4 MiB behind. A pull then dies mid-leg with the node's credit-window
bytes delivered and unpaid: cli_fetch_topup's deposit-short journey
settled 18095 µUSDC of a 20083 µUSDC wire cost, paid 15 MiB of a leg that
landed 17.7 MB, and failed every run on main and in CI (#2629). With
noq-proto at 1.3.0 it settles the whole wire cost in one leg.

Dependabot ignored only iroh*, so it could move the noq crates on their
own. It now ignores noq* too; they move with iroh, on a deliberate
cargo update.

Refs #2629, #2585

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Copilot AI balanced review requested due to automatic review settings October 27, 2026 23:41

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.

🔵 Needs a closer look

The rollback restores noq-proto 1.3.0’s known peer-triggered memory-exhaustion vulnerability, requiring maintainer acceptance of the security-versus-pull-reliability tradeoff.

No open issues 🎉

What changed in this PR

Restores the QUIC dependency baseline to avoid the stream-buffer regression that interrupts paid downloads. This removes one trigger; the separate underpayment issue in #2629 remains open.

Changes:

  • Downgrades noq-proto from 1.4.0 to 1.3.0 without changing its dependency list.
  • Excludes noq* crates from Dependabot updates so upgrades are coordinated manually with iroh.
File Description
Cargo.lock Restores noq-proto 1.3.0 and its checksum.
.github/​dependabot.yml Adds the noq* ignore rule and documents the regression behind the hold.

Review effort: Balanced

@github-code-quality

Copy link
Copy Markdown

Code coverage overview

Languages: Rust

Rust / code-coverage/cargo-llvm-cov

main c564e2a fix/hold-noq-proto aa9f43a +/-
77% 77% 0%
View coverage of the 3 most impacted files.
File main c564e2a fix/hold-noq-proto aa9f43a +/-
crates/node/src/dht/publish.rs 80% 78% -2%
crates/protocol/src/framing.rs 93% 92% -1%
crates/client/src/lib.rs 89% 89% 0%

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

@thiras
thiras merged commit ad3672a into main Oct 27, 2026
40 checks passed
@thiras
thiras deleted the fix/hold-noq-proto branch October 27, 2026 23:53
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.

2 participants