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
{{ message }}
Repository navigation
Commit 9c9b47a
Browse filesBrowse the repository at this point in the historyBrowse files
FEATURE-ci-v3-runtime-green: make the file-source test asset rewrite checked and verified
The truncated mid-send suites failed three FreeBSD acceptance runs because
temp_file::rewrite never checked its ofstream: a silently failed open left
the asset intact and the send legally succeeded on the original content
(full-stream timings in all three runs). Rewrite now truncates and writes
through checked direct syscalls (rig shims, Windows _O_NOINHERIT branch)
and verifies the visible post-write size, failing with evidence instead of
losing the scenario. Stage-16 ledger in the task card; ChangeLog entries
for this and the raw-archive Winsock linkage.
Copy file name to clipboardExpand all lines: specs/tasks/FEATURE-ci-v3-runtime-green.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -207,3 +207,12 @@ Full local `make check -j1` (TLS=no, g++ 15.2, WSL2): 232/235 pass, 2 platform s
207
207
-[x] Windows `-ldl`: `configure.ac` derives `V3_TLS_DL_LIBS` from the existing `is_windows` host classification (empty on mingw/msys/cygwin, `-ldl` elsewhere) and `quic_interop_tls_LDADD` (inherited by `quic_interop_endpoint`) uses the substitution. POSIX branch verified in a fresh scratch worktree (`V3_TLS_DL_LIBS = -ldl` in the generated test/Makefile); the mingw64 empty branch was not compiled locally (no mingw toolchain), recorded honestly, CI compiles it.
208
208
-[x] Local gates (macOS arm64 scratch worktree at f821d40a): bootstrap, configure (no doxygen flag), `response_sources` 30/304 checks green ×3, `response_definition` 32/311 checks green ×3, `native_http1_parity` green; cpplint clean on all three touched files; `git diff --check` clean; `test-v3-http3-full-gates.py` 1/1; ChangeLog entries added. Script tests on this host: `test-v3-ci-workflows.py` 30/31 and `test-v3-platform-ci.py` 11/20 — the failures are environmental (Apple BSD make lacks `--eval`, system python lacks `hashlib.file_digest`, a fixture git invocation) and the same single workflows failure reproduces at c3b235a8 in a throwaway worktree, so pre-existing; the Linux CI lane runs these green.
209
209
-[ ] Full exact-source CI on the working branch (mingw64 tls-yes build, Windows acceptance, FreeBSD make check past both repairs).
210
+
211
+
## Stage 16: Windows raw-archive Winsock linkage and the FreeBSD truncation fixture (2026-12-02)
212
+
213
+
-[x] Evidence (runs 46731744600 package + 46731744909 acceptance, both at the b3ae3e95 merge preview 7819ff62): mingw64 tls-yes `make -j2` and the Windows acceptance in-tree build both fail linking `quic_interop_endpoint.exe` — undefined `__imp_inet_ntop/getsockopt/WSAIoctl/WSASocketW/WSARecvFrom/WSASendTo/WSARecv/WSASend/setsockopt/getpeername` from `io_iocp_backend.o` and `net/address.cpp` inside the raw `src/.libs/libhttpserver_v3core.a`. darwin acceptance and macos package never ran: GitHub-hosted runner-acquisition failures ("not acquired by Runner of type hosted", macOS arm64 capacity) — infrastructure, not code. FreeBSD tls-no `make check` failed 1/235 (`response_definition`, `file_send_truncated_mid_send_fails`, checks at lines 858/860, done==1 but outcome not protocol_error and `end_calls()==1`).
214
+
-[x] Windows root cause: `quic_interop_tls_LDADD` is the only link line that takes the raw static v3core archive, bypassing libtool dependency propagation; automake places the global `LDFLAGS` (carrying `-lws2_32 -lmswsock -lbcrypt` on Windows) before the objects, too early to satisfy the archive's imports. Repair mirrors the stage-15 `V3_TLS_DL_LIBS` pattern: `configure.ac` substitutes `V3_NETWORK_LIBS` (`$NETWORK_LIBS` on Windows hosts, empty elsewhere) and the LDADD appends `$(V3_NETWORK_LIBS)` after the archive; `quic_interop_endpoint` inherits it. POSIX empty branch verified in the fresh scratch worktree (`V3_NETWORK_LIBS = ` in the generated `test/Makefile`, bootstrap exit 0 proves automake resolves it); the mingw64 branch is CI-verified. `check-v3-installed-consumer.py` already adds the three system libraries to its own Windows consumer links (line 118), so the installed lanes are covered.
215
+
- [x] FreeBSD root cause (full `test-suite.log` and per-test logs extracted from artifact 15546253396, 5.1GB, into external evidence storage): across all three occurrences (2026-10-30 run 41120424110, 2026-11-30 run 46508507388, 2026-12-01 run 46731744909) test 24 ran at full-streaming time (2.6–3.8ms, matching whole-body test 20's 3.7ms; the fast-fail prepare-time short test 23 runs 0.32ms) — the post-rewrite reads always returned original bytes, so the send legally completed as success. The stage-15 "stall" was the old single-round assertion observing that legitimate in-flight success; the stage-15 drive loop then surfaced its true signature (done==1, wrong outcome, `end_calls()==1`). Mechanism: `temp_file::rewrite` used `std::ofstream(path, trunc)` and never checked the stream — a silently failed ofstream open leaves the 40960-byte asset intact (test 24's rewrite is invisible-by-construction; test 23's identical call is self-verifying because a failed rewrite fails its own protocol_error assertion, and it passed). Production `pull_file` behaved correctly for what it observed on every platform.
216
+
-[x] Repair: `temp_file::rewrite` now truncates and writes through checked direct syscalls (POSIX `::open(O_WRONLY|O_TRUNC)`/`::write`/`::close`, Windows `_open(_O_WRONLY|_O_TRUNC|_O_BINARY|_O_NOINHERIT)`/`_write`/`_close`, the rig's `rig_write`/`rig_close` shims hoisted above the class) and verifies the visible post-write size via `std::filesystem::file_size`, failing with the sizes in the message. A platform that cannot truncate now fails the suite immediately with evidence instead of corrupting the scenario. The test assertions and the stage-15 drive loop are unchanged.
217
+
-[x] Local gates (macOS arm64 scratch worktree at 0151bdbb + the rig edit): `response_sources` 30/304 green ×3, `response_definition` 32/311 green ×3, `native_http1_parity` green; a guard probe makes the truncating open impossible (chmod 0444) — the new rig throws with the errno evidence (EACCES) while the pre-fix rig silently succeeds, proving both sides of the failure mode; cpplint clean; `git diff --check` clean; the same workflow/platform script-test environmental baseline as stage 15. The Windows `_open` branch was not compiled locally (no mingw toolchain), recorded honestly, CI compiles it.
218
+
-[ ] Full exact-source CI on the working branch (mingw64 tls-yes build past the endpoint link, Windows acceptance, FreeBSD make check past the fixture repair, darwin/macos lanes past the runner-capacity failures).
0 commit comments