Repository navigation
fix(deps): restore the iroh/noq 1.3 hold and guard it in the lockfile - #2732
Merged
Merged
Conversation
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]>
There was a problem hiding this comment.
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.
Code coverage overviewLanguages: Rust, Solidity Rust / code-coverage/cargo-llvm-cov
View coverage of the 1 most impacted file.
Solidity / code-coverage/forge
ℹ️ Calculations represent line coverage. Results may change as calculations are updated. Updated |
Gas snapshotNo gas changes vs base. |
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
e76ec3e ("chore(deps): update Cargo.lock", a manual
cargo update) undid the iroh/noq hold that 131f668 set and ADR 000 records. It moved: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, andcli_fetch_topup's under-pay journey fails again (#2718).This PR:
Cargo.lock: puts back only the seven crates'versionandchecksumlines, plus thepercent-encodingdependency iroh-relay 1.4 added. This is the exact inverse of their e76ec3e hunks (nocargo 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 readsCargo.lockwithtomlliband fails if any of the seven crates resolves to anything other than its version in theHELDtable, 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.packagingCI job (before the toolchain install; it needs no cargo) and aniroh-holdpre-commit hook scoped toCargo.lockand the guard's own files. Dependabot already ignoresiroh*/noq*; this catches a localcargo 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
git diff origin/main -- Cargo.lockis 14+/15− and touches onlyiroh,iroh-base,iroh-dns,iroh-relay,noq,noq-proto,noq-udpand the one iroh-relay dependency line. Nothing else moves.windows-sys 0.60.2/windows-targets 0.53.5, which e76ec3e also added, belong toio-extras, not iroh, so they stay.cargo build --workspace --all-targets --lockedis clean.HELDincheck_iroh_hold.pyin the same PR as the bump and the ADR 000 baseline. The guard's message says so.Verification
cli_fetch_topuploops (cargo build -p decdn-cli -p decdn-nodefirst, thencargo nextest run -p decdn-e2e --features anvil-e2e --retries 0 -E 'binary(cli_fetch_topup)'):origin/main@ f2bc01c (iroh 1.4.1 / noq 1.4.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 builtdecdn-nodeanddecdnlinknoq-proto-1.3.0.cargo metadata --lockedandcargo build --workspace --all-targets --locked: exit 0cargo nextest run -p decdn-e2e --features anvil-e2e --no-fail-fast: 113/113 passedcargo 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 0cargo fmt -- --check: exit 0cargo deny check: bans/licenses/sources ok. Advisories fail only on RUSTSEC-2026-0387 (crypto-bigint 0.5.5via k256/alloy), which is already onmainand not in this diff. CI'scargo-deny-warn.shexits 0.pre-commit run --all-files: exit 0, including the newiroh-holdhookuvx --with pyyaml pytest .github/scripts/tests scripts/tests: 314 passed.test_the_real_repository_holdsfailed on the pre-revert lock, as intended.contracts/foundry.lockunchanged after the e2e runsfix, lowercase subjectCHANGELOG.mdentry added🤖 Generated with Claude Code