Skip to content

fix(mesh): bump noq-proto so a discarded path 0 no longer aborts the front - #8847

Merged
CommaBot merged 3 commits into
mainfrom
fix/noq-discard-space-path-zero
Nov 26, 2026
Merged

CommaBot merged 3 commits into
mainfrom
fix/noq-discard-space-path-zero

Conversation

@CommaBot

@CommaBot CommaBot commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

The mesh front on the mm2 station 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.

panicked at noq-proto/src/connection/mod.rs:4292:14:
PathId::ZERO is alive while Initial/Handshake spaces exist
panicked at noq-1.3.0/src/mutex.rs:138:42:
called `Result::unwrap()` on an `Err` value: PoisonError { .. }
panic in a destructor during cleanup
thread caused non-unwinding panic. aborting.

discard_space in 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 the expect panicked. The panic poisoned the connection mutex, and a Drop that locked it panicked again during cleanup, which aborted the process. Upstream has the same report: n0-computer/noq#904.

Change

This PR moves noq-proto from 1a98471 to ec345e7 (zzj3720/noq#6). That commit:

  • makes discard_space drop the keys and the sent packets without path 0;
  • 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 runs the new release the next time it starts.

Tests

Model: Claude Opus 5.5. Test framework: cargo test.

🤖 Generated with Claude Code


Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@CommaBot
CommaBot force-pushed the fix/noq-discard-space-path-zero branch from 9fcbd8b to 03be5db Compare November 26, 2026 12:04
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
CommaBot force-pushed the fix/noq-discard-space-path-zero branch from c4ad810 to 9d0ffb8 Compare November 26, 2026 16:49
@CommaBot
CommaBot merged commit 7b1f1df into main Nov 26, 2026
195 of 200 checks passed
@CommaBot
CommaBot deleted the fix/noq-discard-space-path-zero branch November 26, 2026 18:43
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