Skip to content

fix(deps): restore the iroh/noq 1.3 hold and guard it in the lockfile - #2732

Merged
thiras merged 1 commit into
mainfrom
fix/2585-restore-iroh-noq-hold
Oct 28, 2026
Merged

thiras merged 1 commit into
mainfrom
fix/2585-restore-iroh-noq-hold

Conversation

@thiras

@thiras thiras commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

What

e76ec3e ("chore(deps): update Cargo.lock", a manual cargo update) undid the iroh/noq hold that 131f668 set and ADR 000 records. It moved:

  • iroh, iroh-base, iroh-dns, iroh-relay: 1.3.0 → 1.4.1
  • noq, noq-proto, noq-udp: 1.3.0 → 1.4.0

noq-proto 1.4 closes the connection with INTERNAL_ERROR "too many gaps in stream buffer" once the client's reader falls ~2.4 MiB behind. The cap counts retained unread buffers, not gaps (quinn#2809, fixed upstream by quinn#2814; noq has not ported it, n0-computer/noq#828). A paid leg dies mid-pull, the node's credit-window bytes go unpaid, and cli_fetch_topup's under-pay journey fails again (#2718).

This PR:

  • Cargo.lock: puts back only the seven crates' version and checksum lines, plus the percent-encoding dependency iroh-relay 1.4 added. This is the exact inverse of their e76ec3e hunks (no cargo update --precise, which re-resolves unrelated crates). Every other update from e76ec3e stays.
  • .github/scripts/check_iroh_hold.py (+ check-iroh-hold.sh, tests/test_check_iroh_hold.py): a stdlib-only guard. It reads Cargo.lock with tomllib and fails if any of the seven crates resolves to anything other than its version in the HELD table, appears at a second version, or is missing. Its error names iroh/noq 1.4 closes client pulls with "too many gaps in stream buffer"; hold at 1.3 #2585 and noq#828 and explains how to restore or lift the hold.
  • Wiring: a step in the unconditional packaging CI job (before the toolchain install; it needs no cargo) and an iroh-hold pre-commit hook scoped to Cargo.lock and the guard's own files. Dependabot already ignores iroh*/noq*; this catches a local cargo update.
  • CHANGELOG.md: one Fixed entry.

Refs #2585 (not closed: the upstream port is still pending)
Refs #2718 (its client-side fix is #2728)

Reviewer notes

Verification

cli_fetch_topup loops (cargo build -p decdn-cli -p decdn-node first, then cargo nextest run -p decdn-e2e --features anvil-e2e --retries 0 -E 'binary(cli_fetch_topup)'):

Lock Runs Pass Fail
origin/main @ f2bc01c (iroh 1.4.1 / noq 1.4.0) 5 2 3
this PR (iroh/noq 1.3.0) 10 10 0

The failures on main: two under-pay: settled 18083 / 18095 µUSDC, below the whole-blob WIRE cost of 20083 µUSDC (the #2585 signature), and one admin-port bind collision followed by the 300 s overall timeout. The built decdn-node and decdn link noq-proto-1.3.0.

  • cargo metadata --locked and cargo build --workspace --all-targets --locked: exit 0
  • cargo nextest run -p decdn-e2e --features anvil-e2e --no-fail-fast: 113/113 passed
  • cargo nextest run --workspace --no-fail-fast: 6108/6108 passed, 1 flaky (decdn-node dispatch::tests::over_cap_accept_prunes_refilled_keyspace, a wall-clock refill assertion, passed on try 3; it does not touch the transport)
  • cargo clippy --workspace --all-targets --all-features -- -D warnings: exit 0
  • cargo fmt -- --check: exit 0
  • cargo deny check: bans/licenses/sources ok. Advisories fail only on RUSTSEC-2026-0387 (crypto-bigint 0.5.5 via k256/alloy), which is already on main and not in this diff. CI's cargo-deny-warn.sh exits 0.
  • pre-commit run --all-files: exit 0, including the new iroh-hold hook
  • uvx --with pyyaml pytest .github/scripts/tests scripts/tests: 314 passed. test_the_real_repository_holds failed on the pre-revert lock, as intended.
  • contracts/foundry.lock unchanged after the e2e runs
  • PR title type fix, lowercase subject
  • CHANGELOG.md entry added

🤖 Generated with Claude Code

e76ec3e (a manual `cargo update`) moved iroh, iroh-base, iroh-dns and
iroh-relay to 1.4.1 and noq, noq-proto and noq-udp to 1.4.0, past the
hold that 131f668 set and ADR 000 records. noq-proto 1.4 closes the
connection with "too many gaps in stream buffer" once the client falls
~2.4 MiB behind, so a paid leg dies mid-pull and the node's credit-window
bytes go unpaid (#2585). cli_fetch_topup's under-pay journey fails again
(#2718).

Cargo.lock: only the seven crates' version and checksum lines go back to
1.3.0, plus the percent-encoding dependency iroh-relay 1.4 added. This is
the exact inverse of their e76ec3e hunks; every other update stays.
`cargo metadata --locked` and `cargo build --workspace --all-targets
--locked` accept it.

check_iroh_hold.py holds the seven exact versions in one table and fails
when Cargo.lock resolves any of them to anything else, or lacks one. It
runs in the `packaging` CI job and as the `iroh-hold` pre-commit hook, and
its message says how to restore or lift the hold. Dependabot already
ignores iroh* and noq*; nothing stopped a local `cargo update`.

Refs #2585
Refs #2718

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Copilot AI balanced review requested due to automatic review settings October 28, 2026 21:10
@thiras thiras self-assigned this Oct 28, 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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@github-code-quality

github-code-quality Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Code coverage overview

Languages: Rust, Solidity

Rust / code-coverage/cargo-llvm-cov

main f2bc01c fix/2585-restore-iro... 3a157f2 +/-
77% 77% 0%
View coverage of the 1 most impacted file.
File main f2bc01c fix/2585-restore-iro... 3a157f2 +/-
crates/node/src/dht/publish.rs 78% 80% +2%

Solidity / code-coverage/forge

main f2bc01c fix/2585-restore-iro... 3a157f2 +/-
92% 92% 0%

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


Updated October 28, 2026 21:18 UTC

@github-actions

Copy link
Copy Markdown

Gas snapshot

No gas changes vs base.

@thiras
thiras merged commit 325ccfc into main Oct 28, 2026
39 checks passed
@thiras
thiras deleted the fix/2585-restore-iroh-noq-hold branch October 28, 2026 21:51
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