Repository navigation
Conversation
…orce drain deadlines
…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.
…the raw v3core archive consumers
…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.
…per platform and bound the platform evidence to its verifiable documents
…shrinks through the rig helper
… exposure and bound the e2e header-deadline churn Stage 20, round-3 verdict at 0e53d54 (runs 47289018731-47289019154): darwin and installed package validation fully green; windows acceptance reached its first native make check ever (tls-no 213/235, 20 failures) and freebsd 232/235 with only the websocket e2e failing. Windows: the four operator-new-driven suites (hpack_primitives, qpack_field_section, server_routes_families, task_resume_signal_lifetime) link the raw v3core archive statically because a PE DLL binds its own allocations to the runtime DLL (stage-5 linkage rule); io_operation bounds its cross-thread drain by wall clock and drains apply's posted resume after the join; native_protocol_memory re-saturates the outbox before asserting admission stopped; forms_multipart_files anchors mkdtemp at the platform temp directory; quic interop symlink fixtures skip with reason on unprivileged Windows (the tls-yes sibling pre-guarded). E2E: the client spawns the real .libs binary with the build's DLL directories on PATH on Windows and surfaces the fixture's exit code and stderr on a start timeout; connections closed before their handshake complete restart within bounds in the churn loops (the 100ms fixture header deadline expired once on the loaded FreeBSD VM). Both bounds documented in test/PORTABILITY.md. Scripts: unqualified bash resolves through PATH (WSL stub), CXX is shlex-split, os.killpg guarded in both gate runners, tar members parse as PurePosixPath so the traversal guard holds on Windows, provenance linkage containment is lexical over the translated namespace, packaged-adapter path identity compares normalized separator forms, and the Linux-only sampler and POSIX-script fixtures skip with reason.
Round 4 (run 47406483994): freebsd green for the first time, darwin green again, and fourteen of the twenty stage-20 Windows repairs held — including the websocket e2e, confirming the loader-death mechanism. Six residue failures, each with a diagnosed mechanism: - native_protocol_memory: the WebSocket output phase hits the same idle-window loopback absorption its HTTP phase did; re-saturate the parked watermark before the stopped-check. - behavior_parity_runner_test: mingw '-o http_cookie' produces http_cookie.exe; bind the produced file. - protocol_fuzz_runner_test: compile.sh legitimately records the bash-side msys-form argv; normalize to the native form compile.jsonl carries. - http3_full_gate_runner_test: one more POSIX-script fixture subtest skips with reason. - test-v3-packaged-adapters: os.execvp is absent on Windows (wrapper uses subprocess.call), the extensionless probe name is unspawnable by CreateProcess (platform .exe suffix like run_suites), the PE-walker rejection matches by type name (separate module loads create distinct AuditError classes), and SDK membership compares names (msys2 python preserves separator style in str(Path)).
…eck at run creation so failed-job reruns are possible
…orm compare via cygpath and the DRAIN-LATE expiry race
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.
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.