Repository navigation
fix(mesh): bump noq-proto so a discarded path 0 no longer aborts the front - #8847
Merged
Merged
Conversation
CommaBot
force-pushed
the
fix/noq-discard-space-path-zero
branch
from
November 26, 2026 12:04
9fcbd8b to
03be5db
Compare
CommaBot
added a commit
that referenced
this pull request
Nov 26, 2026
… targets (#8863) * fix(ci): split mesh/shell-station in natives-build and cache Rust/Zig targets When a Rust dependency revision changes (such as bumping noq-proto or iroh in #8847), natives-build previously packed shell-station, mesh, and Linux readers for each target onto a single 4-core ubuntu-24.04 VM. Compiling two independent 200-crate iroh trees simultaneously exceeded the 5-minute with-timeout.sh budget, while mesh had no Cargo target cache, native-cargo-reg-v1 was shadowed by a 1 MB launcher cache, and win32-x64 did not cache ~/.cache/zig. - Split shell-station and mesh into separate natives-build matrix VMs when both or sibling parts are missing, and defer Linux reader/pion-reader builds to a stage-2 natives-linux-readers matrix job whenever shell-station for that target is rebuilt (readers stay in natives-build when shell-station is already prebuilt). - Accept per-slot R2 manifests (-shell, -mesh, -other, -readers) in scripts/native-handoff.mjs and cover them in test/native-handoff-direct.test.ts. - Separate Cargo registry caches by crate family (client/mesh/other) so heavy crates fall back to check-rust-ubuntu-24.04-{client,mesh}- instead of a 1 MB launcher cache. - Cache ~/.cache/zig for non-reader Linux/Windows zigbuild jobs and cache both shell-station and mesh Cargo targets keyed by RUST_TOOLCHAIN and Cargo.lock with prefix restore fallback (saving partial target caches only on main under a distinct partial key so exact lockfile keys stay complete). Co-authored-by: zuozijian <zuozijian@cue.surf> * fix(ci): address PR #8863 review findings - Download split natives-<target>*-<sha> receipt artifacts (flattening subdirs) in pion-station.yml, pion-station-main.yml, and preview.yml so downstream workflows find shell-station/mesh/reader receipts after slot splitting. - Match check-rust cache paths (~/.cargo/registry and ~/.cargo/git) so native-cargo-reg-v2-{client,mesh}- actually fall back to warm check-rust-ubuntu-24.04-{client,mesh}- caches. - Key native-zig-cache-v1 by target and slot so shell and mesh slots do not race on one shared key. - Drop the 'partial-' prefix from main timeout target-cache keys so cache_prune.mbt assigns partial and full keys the same rolling kind, raise main's save budget to JOB_END - 45, and guard Cargo target saves with a >= 35 s remaining-time check. - Depend natives-win-reader, natives-win-reader-main, and natives-harness directly on natives-build so they run in parallel with natives-linux-readers. Co-authored-by: zuozijian <zuozijian@cue.surf> --------- Co-authored-by: 3720 <zuozijian1994@gmail.com> Co-authored-by: zuozijian <zuozijian@cue.surf>
…front The front on mm2 aborted on 2026-11-26 at 10:23:20 UTC after about 3 days up, and every device connection to it dropped. noq-proto's `discard_space` expected path 0 to exist when it dropped the Handshake keys. Path 0 can be abandoned and discarded before the handshake is confirmed, so the `expect` panicked. The panic poisoned the connection mutex, and a `Drop` that locked it panicked again in cleanup, which aborted the process (n0-computer/noq#904). zzj3720/noq#6 (ec345e7) fixes `discard_space`, and also ignores a late Initial or Handshake ACK on a discarded path 0, which panicked the same way in `path_data`. The front's STREAMS stays at 8. A bump would restart every station's front once, and drop every device, to fix a crash seen once in 3 days. A front starts from the new release whenever it starts next. Changelog: 修复:station 的网络前端在多路径握手时偶发崩溃、所有设备一起断线的问题 Changelog-parts: station, android, desktop Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CommaBot
force-pushed
the
fix/noq-discard-space-path-zero
branch
from
November 26, 2026 16:49
c4ad810 to
9d0ffb8
Compare
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.
Problem
The mesh front on the
mm2station aborted with signal 6 on 2026-11-26 at 10:23:20 UTC, after about 3 days up. Every device connection to it dropped. The launcher started a new front 376 ms later.discard_spacein noq-proto expected path 0 to exist when it dropped the Handshake keys. Path 0 can be abandoned and discarded before the handshake is confirmed, so theexpectpanicked. The panic poisoned the connection mutex, and aDropthat locked it panicked again during cleanup, which aborted the process. Upstream has the same report: n0-computer/noq#904.Change
This PR moves
noq-protofrom1a98471toec345e7(zzj3720/noq#6). That commit:discard_spacedrop the keys and the sent packets without path 0;path_data.The front's STREAMS stays at 8. A bump would restart every station's front once, and drop every device, to fix a crash seen once in 3 days. A front runs the new release the next time it starts.
Tests
handshake_keys_dropped_after_path_zero_discarded. With either fix reverted, it panics as production did.cargo test -p noq-proto --lib(443 tests) passes. The fork's CI passes on Linux, macOS and Windows.Model: Claude Opus 5.5. Test framework: cargo test.
🤖 Generated with Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.