Skip to content

Fix v3 CI fixture scheduling, linkage and test inventories - #383

Draft
etr wants to merge 21 commits into
v3from
task/FEATURE-ci-v3-runtime-green
Draft

etr wants to merge 21 commits into
v3from
task/FEATURE-ci-v3-runtime-green

Conversation

@etr

@etr etr commented Oct 28, 2026 •

Copy link
Copy Markdown
Owner

Darwin PSK tests can release a lookup before cancellation is checked and spend real handshake deadlines sleeping between tiny transport fragments. Release lookup after the owner assertions and drain ready fixture work while yielding. Preserve every assertion, fragment and protocol deadline.

Windows installed readiness tests assume that the executable's operator-new replacement affects DLL allocations. Native proof disproves that assumption. Keep all 22 ordinary cases against the installed DLL and require all 27 cases, including the five unchanged allocation-failure cases, against the installed static archive. Package execution and archive import share the same required-case validator; other platforms retain their original fault coverage.

Darwin archive receipt validation also exposed five executable suites counted twice: TESTS already includes check_PROGRAMS, then four extra TESTS lines repeat those programs. Remove only those redundant lines, preserving every suite and the strict duplicate rejection.

Focused validation: PSK 14 tests/313 checks under coarse scheduling; Windows adapter DLL 22/438 and static 27/486; Linux adapter 28/497; 28 package coverage/matrix and 14 archive-bundle checks. All zero skips. Actual regenerated Automake inventories are unique in both modes (TLS yes 266, no 235), with all five affected programs still present once. Lint, Python compilation and diff checks pass. Local Windows uses a qualified cached toolchain; actual Server2022/MSYS2 CI remains required.

Draft for current-source CI. Windows public consumer shutdown can still report WSAPoll10038; cause remains unknown, and no speculative polling or shutdown suppression is included. Production TLS/backend code is unchanged. Historical failed and canceled receipts stay incomplete; Groundwork validation remains deferred until full CI is green.

@etr etr changed the title Fix v3 PSK fixture scheduling and cancellation release Fix v3 PSK scheduling and Windows fault-injection fixtures Oct 28, 2026
@etr etr changed the title Fix v3 PSK scheduling and Windows fault-injection fixtures Fix v3 CI fixture scheduling, linkage and test inventories Oct 28, 2026
etr added 17 commits October 30, 2026 04:12
…ag per host

The QUIC interop provider link hardcoded -ldl after V3_TLS_LIBS. Static
OpenSSL on POSIX needs it, but Windows resolves its loader through the
system runtime and ships no libdl, so the mingw64 package lane and the
Windows acceptance lane both failed linking quic_interop_endpoint.exe
with 'cannot find -ldl'. configure.ac now derives V3_TLS_DL_LIBS from
the existing is_windows host classification (empty on mingw/msys/cygwin,
-ldl elsewhere) and the interop LDADD uses the substitution.
…ncated send to completion

Both fixes answer second FreeBSD recurrences with retained evidence
(run 46508507388, platform-FreeBSD-failure-evidence, tls-no make check
test-suite.log):

response_sources hung at threaded_pipe_sends_single_winner twice
(exit 124 both times under the stage-11 timeout wrapper). The rig
constructor writes the whole payload through a blocking fd before any
reader exists, so the payload must fit the kernel pipe capacity;
FreeBSD's default is 8 KiB and this was the only pipe payload at that
boundary (every other pipe payload is <= 4096). The race semantics
need only an identical body across the four threads, so the payload
drops to 4096 with a 2x margin, and the rig now documents the POSIX
payload bound next to the stage-14 Windows sizing note.

response_definition failed checks 846/847 twice in
file_send_truncated_mid_send_fails: after the wake round, done stayed 0.
Every library path reaches the spawn callback within one drain-and-pump
round, so the extra completion (a stream-buffer tail served after the
truncation, parking the exactly-full queue once more, or one additional
executor round) is now tolerated by a bounded drive; the checked first
drain and both original assertions are unchanged, and a permanent stall
still fails them with the same evidence.
ChangeLog entries for the per-host dynamic-loader substitution and the
two FreeBSD make-check repairs, and the stage 15 ledger in the task
card: failed run identification, the pipe-capacity hang mechanism
(2/2 recurrence), the robustifier framing for the truncated-send
completion, and the local gate receipts including the environmental
script-test failures reproduced at the prior commit.
…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.
…nd the truncation fixture past stdio readahead

Two CI blockers at 9c9b47a, both first exposures of lanes repaired in
stage 16:

Windows/mingw64 (acceptance run 46963856090, package run 46963855675):
the installed tls-yes http2 matrix died on the rollback one-shot with
'partial H2 bind was retained' in both linkages. open_listener set
Winsock SO_REUSEADDR, which forcibly binds a port another socket is
actively serving, so the scenario's occupied-port obstacle bind
succeeded and listen() returned ok. Microsoft's socket-security
guidance (bind matrix) requires SO_EXCLUSIVEADDRUSE for servers: the
same-account specific-address second bind fails WSAEADDRINUSE, and a
listening socket carries no TIME_WAIT of its own, so the
restarted-server rebind property POSIX SO_REUSEADDR provided is
preserved. open_listener now sets the platform option (exclusive on
_WIN32, reuseaddr elsewhere); io_poll_sys_listener pins the option and
adds the live-listener bind refusal on every platform, making the
rollback scenarios' precondition a unit contract. The _WIN32 branch is
CI-compiled (no mingw toolchain locally, recorded in the task card).

FreeBSD (acceptance run 46963856090, test-suite.log from the failure
evidence artifact): make check failed 1/235, response_definition
file_send_truncated_mid_send_fails, done==1 with an okay outcome and
end_calls()==1 -- the stage-16 rewrite verification passed, so the
truncation was on disk yet never observed. The reopen_file cursor
reads through std::ifstream whose libc++ basic_filebuf buffers the
FILE* to st_blksize (32 KiB on FreeBSD UFS) and refills 4096/4092
bytes; the two parked 16 KiB chunks drove ~36.8 KiB of fread refills
and staged the remaining 4 KiB of the 40 KiB payload in user space, so
the post-truncate pulls were served from the buffer with no EOF.
Reproduced with a local probe (setvbuf 32 KiB + libc++ refill
schedule + mid-stream truncate: 40960 bytes served, feof==0).
Production pull_file behaved correctly for what it observed on every
platform, so the repair stays in the fixture: the payload grows to
2 MiB (bytes owed after the parked chunk past any plausible
st_blksize) and the bounded wake-and-pull drive to 256 rounds; a
follow-up probe proves the short read now surfaces under 4 KiB-1 MiB
buffers. PORTABILITY.md documents the readahead bound for future
mid-send-mutation tests.

Local gates (macOS arm64 scratch worktree at 9c9b47a + these edits):
response_definition 311/311 x3, response_sources 304/304 x3,
io_poll_sys_listener 46/46 including the new refusal check; cpplint
clean on the changed C++ files; git diff --check clean;
check-skip-rationales clean. The file-size gate's two over-limit files
(connection_engine.cpp, io_poll_backend.cpp) are pre-existing at HEAD
and untouched here.
…ize the platform retention to the measured producers

The Windows acceptance job passed its entire installed matrix for the
first time and then tripped the 64 MiB receipt bound: PE/COFF inspector
stdout (objdump -p up to 11.9 MB per binary with -g debug sections, nm
20.9-26.5 MB per archive) rode the command records twice while the
resolved import graphs and archive_symbols already retain the evidence.
tls-no audit.json measured 287,825,888 bytes and tls-yes 711,751,936;
the Windows inspector and the nm inspections now record only their
digest and byte count, and the simulated transformation brings the real
receipts to 45.1/57.0 MB with suites.json at 0.2-0.5 MB.

The FreeBSD acceptance job passed every installed and native check and
then crossed the 2026-10-15 platform retention budget: the recovered
tree measures 8.249 GB across 6,220 files and the byte bound fired with
only 2,793 files catalogued, so MAX_BYTES moves to 16 GiB with the
measured producer documented, and the collapsed bound message now names
the exceeded budget and its value.
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.

1 participant