You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .agents/sow/current/SOW-0021-20260613-netipc-at-scale.md
+13-1Lines changed: 13 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1057,7 +1057,19 @@ Tests or equivalent validation:
1057
1057
- Validation passed on POSIX: `cd src/go && go test -count=1 -timeout=300s ./pkg/netipc/protocol`; `cd src/go && go test -count=1 -timeout=300s ./pkg/netipc/service/raw`; `cargo test --manifest-path src/crates/netipc/Cargo.toml protocol::lookup -- --nocapture`; `cargo test --manifest-path src/crates/netipc/Cargo.toml lookup_dispatch_tests -- --nocapture`; `cargo test --manifest-path src/crates/netipc/Cargo.toml service::raw:: -- --nocapture`.
1058
1058
- Validation passed on Windows `win11`: `cd src/go && "/c/Program Files/Go/bin/go.exe" test -count=1 -timeout=300s ./pkg/netipc/protocol`; `cd src/go && "/c/Program Files/Go/bin/go.exe" test -count=1 -timeout=300s ./pkg/netipc/service/raw`; `PATH=/c/Users/costa/.cargo/bin:$PATH cargo test --manifest-path src/crates/netipc/Cargo.toml protocol::lookup -- --nocapture`; `PATH=/c/Users/costa/.cargo/bin:$PATH cargo test --manifest-path src/crates/netipc/Cargo.toml service::raw:: -- --nocapture`.
1059
1059
- Reviewer concern about suffix-reservation still losing partial responses was not reproduced: C POSIX `timeout 900 build-coverage/bin/test_service` passed with `642 passed, 0 failed`; focused POSIX Go `TestLookupLargeResponseSplit` passed; focused POSIX Rust `test_lookup_large_response_split_calls` passed; Windows Rust `test_lookup_large_response_split_calls_windows` passed. The concern was treated as rejected unless a failing reproducer is produced.
1060
-
- Note: `ctest` on `$PATH` resolved to a broken local Python wrapper missing the `cmake` module; validation used `/usr/bin/ctest`.
1060
+
- Post-push CI failure fixes after pushed commit `ed0befa`:
1061
+
- GitHub `Runtime Safety` run `27506742409` failed in `bash tests/run-go-race.sh`.
1062
+
- Root cause 1: Go protocol tests fabricated impossible multi-GB slices with `unsafe.Slice`, and Go race/checkptr rejected them with `fatal error: checkptr: unsafe.Slice result straddles multiple allocations` in `src/go/pkg/netipc/protocol/frame_test.go`.
1063
+
- Root cause 2: Go POSIX raw server stop/close had a real race between `src/go/pkg/netipc/service/raw/server_unix.go``Run()` defer and `Stop()`, plus unsynchronized `src/go/pkg/netipc/transport/posix/uds_listener.go` listener `fd`/`path` mutation.
1064
+
- GitHub `Static Analysis` run `27506742397` failed in the Go `src/go` matrix because `gosec` reported `G103` unsafe-pointer findings in `src/go/pkg/netipc/protocol/lookup_guard_test.go`, `src/go/pkg/netipc/service/raw/cache_test.go`, and `src/go/pkg/netipc/service/raw/lookup_common_test.go`.
1065
+
- Fixed Go tests by replacing invalid synthetic `unsafe` slices with unexported arithmetic/count helper checks used by the production encoders/builders. This preserves overflow coverage without invalid memory.
1066
+
- Fixed Go POSIX listener/server close races by making listener `fd`, `path`, and config access mutex-protected and making raw server listener ownership/close synchronized and idempotent. Mirrored the raw server listener ownership fix on Windows.
1067
+
- Fixed newly exposed local `gosec``G115` findings by replacing unchecked count and size casts with checked conversions and helper comparisons against `uint32` payload ceilings.
1068
+
- Local validation passed after fixes: `bash tests/run-go-race.sh`; `cd src/go && go test ./...`; `cd src/go && go vet ./...`; `cd src/go && staticcheck ./...`; `cd src/go && govulncheck ./...`; `cd src/go && gosec -quiet -fmt sarif -out /tmp/plugin-ipc-gosec.sarif -exclude=G404 ./...`.
1069
+
- Local Go static matrix validation also passed for `tests/fixtures/go` and `bench/drivers/go`: `go test ./...`, `go vet ./...`, `staticcheck ./...`, `govulncheck ./...`, and `gosec -quiet -fmt sarif ...`.
1070
+
- Local Rust static validation passed after replacing two raw lookup `drop(view)` borrow-shortening calls with lexical scopes: `cargo fmt --manifest-path src/crates/netipc/Cargo.toml --all --check`; `cargo test --manifest-path src/crates/netipc/Cargo.toml --all-targets --all-features --no-run`; `cargo clippy --manifest-path src/crates/netipc/Cargo.toml --all-targets --all-features -- -D clippy::correctness -D clippy::suspicious`; `cargo audit`; `cargo deny check advisories bans sources`.
1071
+
- Follow-up local validation on 2026-06-14 passed: `git diff --check`; `bash .agents/sow/audit.sh`; `bash tests/run-go-race.sh`; `bash tests/run-coverage-go.sh` with `90.4%` total coverage (`3375/3735`) against the configured `90%` threshold; `cargo fmt --manifest-path src/crates/netipc/Cargo.toml --all --check`; `cargo test --manifest-path src/crates/netipc/Cargo.toml --all-targets --all-features --no-run`; `cargo clippy --manifest-path src/crates/netipc/Cargo.toml --all-targets --all-features -- -D clippy::correctness -D clippy::suspicious`.
1072
+
- Note: `ctest` on `$PATH` resolved to a broken local Python wrapper missing the `cmake` module; validation used `/usr/bin/ctest`.
0 commit comments