Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
c1865c7
FEATURE-ci-v3-runtime-green: remove PSK fixture scheduling races
etr Oct 28, 2026
bc657d4
FEATURE-ci-v3-runtime-green: bind Windows allocation faults to static…
etr Oct 28, 2026
9c92e55
FEATURE-ci-v3-runtime-green: share linkage coverage in archive receip…
etr Oct 28, 2026
b71192c
FEATURE-ci-v3-runtime-green: register native executable tests once
etr Oct 28, 2026
3be80df
FEATURE-ci-v3-runtime-green: tolerate borrowed-handle closure and enf…
etr Oct 30, 2026
21f37ba
FEATURE-ci-v3-runtime-green: raise FreeBSD job timeout to observed wo…
etr Oct 30, 2026
fbf072e
FEATURE-ci-v3-runtime-green: record local TLS=no baseline observation
etr Oct 30, 2026
b8edaeb
FEATURE-ci-v3-runtime-green: allow the version-info system import in …
etr Oct 30, 2026
021a00c
FEATURE-ci-v3-runtime-green: link Windows public audit clients to Win…
etr Oct 30, 2026
b080f74
FEATURE-ci-v3-runtime-green: complete first FreeBSD native make-check…
etr Oct 30, 2026
db7cefe
FEATURE-ci-v3-runtime-green: open interop keylog with Windows-compati…
etr Oct 30, 2026
5b2db29
FEATURE-ci-v3-runtime-green: poll QUIC fixtures through the host help…
etr Oct 30, 2026
c3b235a
FEATURE-ci-v3-runtime-green: unblock the Windows tls-yes test-tree build
etr Nov 30, 2026
de00209
FEATURE-ci-v3-runtime-green: substitute the interop dynamic-loader fl…
etr Dec 1, 2026
f821d40
FEATURE-ci-v3-runtime-green: bound the pipe payload and drive the tru…
etr Dec 1, 2026
e16870f
FEATURE-ci-v3-runtime-green: record stage 15 evidence and repairs
etr Dec 1, 2026
b3ae3e9
FEATURE-ci-v3-runtime-green: document the pipe-rig payload bound in P…
etr Dec 1, 2026
0151bdb
FEATURE-ci-v3-runtime-green: link the Windows network libraries into …
etr Dec 2, 2026
9c9b47a
FEATURE-ci-v3-runtime-green: make the file-source test asset rewrite …
etr Dec 2, 2026
0232737
FEATURE-ci-v3-runtime-green: own the listener port on Winsock and bou…
etr Dec 3, 2026
d59cee3
FEATURE-ci-v3-runtime-green: bound installed receipts by digest and s…
etr Dec 3, 2026
fc9c0bd
FEATURE-ci-v3-runtime-green: split the websocket rig socket includes …
etr Dec 4, 2026
bbdef3a
FEATURE-ci-v3-runtime-green: record stage 19 evidence and repairs
etr Dec 4, 2026
0e53d54
FEATURE-ci-v3-runtime-green: route the remaining upgrade-test SNDBUF …
etr Dec 4, 2026
fbe5cf5
FEATURE-ci-v3-runtime-green: record the fc9c0bdc CI verdict and the r…
etr Dec 4, 2026
d19062a
FEATURE-ci-v3-runtime-green: port the first Windows native make-check…
etr Dec 4, 2026
1ce7b00
FEATURE-ci-v3-runtime-green: clear the round-4 Windows residue (227/235)
etr Dec 4, 2026
1f73e10
FEATURE-ci-v3-runtime-green: clear the round-5 Windows residue (230/235)
etr Dec 6, 2026
838d357
FEATURE-ci-v3-runtime-green: anchor the selected-archive freshness ch…
etr Dec 6, 2026
f68d6f2
FEATURE-ci-v3-runtime-green: clear the round-7 residue — fuzz mount-f…
etr Dec 6, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/v3-package-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ jobs:
if-no-files-found: error
freebsd:
runs-on: ubuntu-24.04
timeout-minutes: 180
timeout-minutes: 240
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: freebsd_instance
Expand Down
54 changes: 50 additions & 4 deletions .github/workflows/v3-release-acceptance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,13 @@ jobs:
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
with:
name: platform-Darwin-failure-evidence
# Documents only: the whole platform tree (build lanes included)
# measured 8.85 GB on this runner in run 47064150035.
path: |-
${{ runner.temp }}/platform
${{ runner.temp }}/platform/*.json
${{ runner.temp }}/platform/**/*.json
${{ runner.temp }}/platform/**/*.log
${{ runner.temp }}/platform/**/*.trs
${{ runner.temp }}/v3-toolchain
${{ runner.temp }}/prerequisites/preparation.json
${{ runner.temp }}/prerequisites/*.log
Expand Down Expand Up @@ -254,8 +259,13 @@ jobs:
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
with:
name: platform-Windows-failure-evidence
# Documents only: the whole platform tree measured 4.6 GB on this
# runner in run 47064150035 and grows with the build lanes.
path: |-
${{ runner.temp }}/platform
${{ runner.temp }}/platform/*.json
${{ runner.temp }}/platform/**/*.json
${{ runner.temp }}/platform/**/*.log
${{ runner.temp }}/platform/**/*.trs
${{ runner.temp }}/prerequisites/preparation.json
${{ runner.temp }}/prerequisites/*.log
${{ runner.temp }}/prerequisites-ci.log
Expand All @@ -269,7 +279,7 @@ jobs:
freebsd:
runs-on: ubuntu-24.04
needs: prepare
timeout-minutes: 180
timeout-minutes: 300
outputs:
artifact_id: ${{ steps.proof.outputs.artifact-id }}
artifact_digest: ${{ steps.proof.outputs.artifact-digest }}
Expand Down Expand Up @@ -299,7 +309,37 @@ jobs:
set -eu
export RUNNER_TEMP=/tmp/v3-release-${{ github.run_id }}-${{ github.run_attempt }}
mkdir -p "$RUNNER_TEMP/platform-evidence"
trap 'cp -R "$RUNNER_TEMP/platform" "$RUNNER_TEMP/platform-evidence/" 2>/dev/null || true; cp -R "$RUNNER_TEMP/prerequisites" "$RUNNER_TEMP/platform-evidence/" 2>/dev/null || true; cp -R "$RUNNER_TEMP/platform-evidence" ./platform-evidence' EXIT
copy_bounded_evidence() {
# Failure evidence is receipts, logs and finished bundles only:
# the previous whole-tree copies exhausted the runner disk in run
# 47189408281 (the two -O0 -g build lanes alone measure 8.25 GB,
# and retention, tar, trap copy and scp each duplicated them).
python3 - "$RUNNER_TEMP/platform" "$RUNNER_TEMP/platform-evidence/platform" <<'COPY_PY'
import shutil, sys
from pathlib import Path
source, target = Path(sys.argv[1]), Path(sys.argv[2])
if not source.is_dir():
sys.exit(0)
for path in sorted(source.rglob("*")):
if path.is_file() and path.suffix in (".json", ".log", ".trs", ".gz"):
relative = path.relative_to(source)
(target / relative).parent.mkdir(parents=True, exist_ok=True)
shutil.copy2(path, target / relative)
COPY_PY
python3 - "$RUNNER_TEMP/prerequisites" "$RUNNER_TEMP/platform-evidence/prerequisites" <<'COPY_PY'
import shutil, sys
from pathlib import Path
source, target = Path(sys.argv[1]), Path(sys.argv[2])
if not source.is_dir():
sys.exit(0)
target.mkdir(parents=True, exist_ok=True)
for pattern in ("*.json", "*.log"):
for path in sorted(source.glob(pattern)):
if path.is_file():
shutil.copy2(path, target / path.name)
COPY_PY
}
trap 'status=$?; trap - EXIT; copy_bounded_evidence 2>/dev/null || true; cp -R "$RUNNER_TEMP/platform-evidence" ./platform-evidence; exit "$status"' EXIT
# Guest root must trust only the host checkout, including in Python's Git children.
export GIT_CONFIG_COUNT=1 GIT_CONFIG_KEY_0=safe.directory GIT_CONFIG_VALUE_0="$PWD"
git_log="$RUNNER_TEMP/platform-evidence/git-provenance.log"
Expand Down Expand Up @@ -332,6 +372,12 @@ jobs:
fi
test "$(node --version)" = v24.15.0
python3 -c 'import subprocess; subprocess.run(["git","--version"],check=True)'
# The native peer-policy runtime test binds 127.0.0.2 as its
# admin source address; FreeBSD only configures 127.0.0.1 on
# lo0 by default, so the alias must exist before make check.
if ifconfig lo0 >/dev/null 2>&1; then
ifconfig lo0 alias 127.0.0.2 2>/dev/null || ifconfig lo0 | grep -q '127\.0\.0\.2'
fi
python3 scripts/ci-freebsd-toolchain.py --output "$RUNNER_TEMP/platform-evidence/toolchain"
. "$RUNNER_TEMP/platform-evidence/toolchain/toolchain.env"
python3 scripts/prepare-v3-package-ci.py --output "$RUNNER_TEMP/prerequisites" --make gmake
Expand Down
164 changes: 164 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,4 +1,168 @@
Version 3.0.0 - 2026-10-10
Anchor the selected-archive freshness check to the run-level
original creation time instead of the attempt-scoped
run_started_at (verified against both attempts of run
47593684692), because a --failed rerun legitimately re-consumes
the digest-pinned attempt-1 artifact and the attempt comparison
rejected every rerun at the download step; the artifact ID, run,
head-SHA and digest pins are unchanged and the acceptance still
rejects anything created before the run itself.
Clear the round-5 Windows residue (230/235): the behavior-parity
receipt audit resolves the platform executable suffix so a
Windows supporting-test record can match the file CreateProcess
actually executed (mingw '-o name' links produce name.exe), and
the cookie witness records and byte-binds that same file; the
fuzz runner writes sources.list through write_bytes because a
native Windows python3 turns a text-mode stdout redirect into
CRLF and left \r on every recorded source path, the compile.sh
translation uppercases the msys drive letter, translates the
-I-prefix flag form, and leaves arguments that already carry a
native drive path untouched, the reproduce.sh corpus assertion
resolves the bash-side msys paths through the same cygpath the
runner used, and the corpus symlink negative test skips with
reason where symlink creation is unavailable.
Clear the round-4 Windows residue (227/235): the WebSocket output
phase of the memory test re-saturates its parked watermark
before asserting admission stopped (the same idle-window loopback
absorption the HTTP phase hit), the cookie execution bind reads
the produced name.exe, the fuzz runner compares compile.sh under
the msys-to-native path translation its own compile.jsonl
receipts already carry, the last POSIX-script gate-runner
fixture skips with reason on Windows, the wrapper compiler
fixture replaces the Windows-absent os.execvp, the static
archive probe carries the platform .exe suffix, the PE-walker
rejection matches the audit error by type name (separate module
loads create distinct classes), and the SDK directory membership
compares file names because the msys2 interpreter preserves
input separator style in str(Path).
Port the first full Windows native make-check exposure (run
47289018867, 213/235) and the FreeBSD websocket e2e exposure
(232/235): 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 Windows DLL binds its own allocations to the
runtime DLL and the executable's override never reaches them
(stage-5 linkage rule); io_operation's cross-thread drain is
bounded by wall clock and drains apply's posted resume after the
applier join (Win32 Sleep granularity); native_protocol_memory
re-saturates the outbox before asserting admission stopped
(Windows loopback absorbs more than the shrunken send buffers);
forms_multipart_files anchors its mkdtemp template at
temp_directory_path instead of the Windows-nonexistent /tmp;
the quic interop symlink fixtures skip with reason where
unprivileged symlink creation is refused.
Spawn the websocket e2e fixture through the real .libs binary with
the build's DLL directories on PATH on Windows (a native
CreateProcess cannot execute the libtool wrapper, so the fixture
died in the loader before READY), surface the fixture's exit
code and stderr when READY never arrives, and restart
connections the server closed before its handshake completed in
the churn loops (the deliberately short 100ms header deadline
expired once on the loaded FreeBSD VM); all documented in
test/PORTABILITY.md.
Port the eleven Windows script-test failures to their mechanisms:
unqualified bash resolves to the System32 WSL stub (three
runners), configure injects flags into CXX so the compile driver
is shlex-split, os.killpg is guarded where absent (both gate
runners), tar members parse as PurePosixPath so /outside stays
absolute on Windows, provenance linkage containment is lexical
over the translated namespace instead of resolving the virtual
prefix under the current drive, compile-artifact identity and
the SDK query selection compare normalized separator forms, the
cookie test fixture writes bytes instead of translated text,
and the Linux-only sampler and POSIX-script fixtures skip with
reason on Windows.
Split the websocket test rig's socket includes per platform: the
unconditional <sys/socket.h> in websocket_engine_helpers.hpp was
the native make-check tree's first Windows compile exposure once
the stage-18 receipt repairs let the acceptance lane reach it
(run 47189408281); the rig's only direct socket use is the
shared SO_SNDBUF shrink helper (Winsock takes char* option
values), and the upgrade test's single-syscall mirror writes
now route through pollsys::write_some like every other rig
consumer.
Retain only the verifiable platform evidence documents: the whole-
tree retention duplicated the two -O0 -g build lanes (8.249 GB
on FreeBSD) into the bundle, then again into the tarball, the
EXIT-trap copy and the recovery scp, exhausting the runner disk
after every installed and native check had passed (runs
47064150035, 47189408281); the retained set is now the *.json
receipts, *.log/*.trs test records, receipt-referenced files
and selected tools, with the byte budget sized to that shape
(4 GiB, ~4x the ~1 GiB it measures) so three producer bundles
also fit the shared gate runner.
Bind the acceptance failure-evidence transport to the same
documents: the FreeBSD EXIT trap and the recovery scp copied
whole trees (15.8 GB artifact on the disk-fatal run), and the
Windows/Darwin failure-evidence uploads took the whole platform
directory (4.6 and 8.9 GB); receipts, logs, test records and
the finished bundle tar travel, the build lanes and provider
sources stay on the failed runner.
FreeBSD acceptance tree (two -O0 -g lanes with llvm19 debug
info, 8.249 GB across 6,220 files) outgrew the 2026-10-15
8 GiB bound after passing every installed and native check,
and the single bound message named neither budget; the file
count stays bounded, the byte budget now documents the
measured producer, and each bound names itself and its value
when exceeded.
Retain installed-package inspector stdout by digest in the command
records: PE/COFF objdump -p and nm output reach tens of
megabytes per binary with -g debug sections, which inflated the
Windows installed receipts (audit.json 288-712 MB, suites.json
up to 341 MB) past the 64 MiB receipt bound at package
validation, the first lane to reach it; the resolved import
graphs and the verbatim archive member symbols keep the
evidence, so the duplicated raw stdout keeps only its digest
and byte count.
Bind native listeners with SO_EXCLUSIVEADDRUSE on Winsock instead
of SO_REUSEADDR, which on Windows forcibly shares a live
listener's port: the installed-consumer rollback scenarios
observed the obstacle bind succeed and the partial-bind
rollback contract fail ("partial H2 bind was retained"); the
exclusive option keeps the POSIX restart property (a closed
listening socket carries no TIME_WAIT) while refusing every
bind onto a live listener.
Enlarge the mid-send truncation fixture past any stdio readahead:
the reopen_file cursor's FILE* buffers st_blksize bytes ahead
(32 KiB on FreeBSD UFS), so a 40 KiB payload was fully staged
before the on-disk truncate and the send legally completed;
2 MiB owed after the parked chunk forces the shrink to
surface on every filesystem.
Rewrite the file-source test asset with checked direct syscalls
and a visible-size verification: a silently failed ofstream
open left the asset intact, so the truncated mid-send suites
legally succeeded on the original content (FreeBSD, three
runs) instead of proving the short-body protocol error.
Link the Windows network libraries into the raw static v3core
archive consumers: the QUIC interop programs bypass libtool
dependency propagation, so -lws2_32 -lmswsock -lbcrypt must
ride the LDADD after the archive on Windows.
Link the QUIC interop provider test programs with a per-host
dynamic-loader flag: empty on Windows, -ldl elsewhere.
Bound the pre-filled pipe rig payload to the kernel pipe capacity
(4096 bytes) after an 8192-byte payload hung twice on
FreeBSD, and drive the truncated-file send test to
completion with a bounded wake-and-pull loop.
Poll the QUIC interop endpoint and UDP fixture through the shared
cross-platform host helper on Windows.
Open the QUIC interop test keylog with Windows-compatible flags
instead of O_NOFOLLOW/O_CLOEXEC/fchmod.
Complete the first FreeBSD native make-check exposure: portable
process-memory measurement, GNU-make gate selection, the
loopback admin alias, per-test hang bounds and job budget.
Link the installed public TLS and HTTP/2 audit clients to Winsock on
Windows and name their executables with the platform suffix.
Resolve the Windows version-information system import in installed
package dependency audits.
Keep the HTTP/1 connection watchdog armed at a pending server drain
deadline so a stalled close handoff cannot outlive the drain budget.
Tolerate a concurrently closed borrowed registration in the Windows
reference host poll helper instead of failing the whole WSAPoll set.
Register each native executable once in Automake test evidence inventories.
Run Windows allocation-failure injection against the installed static
library and require ordinary readiness cases in both linkage lanes.
Keep PSK cancellation lookup held until owner release and avoid artificial
per-fragment scheduling delays in the TLS test transport.
Avoid Windows DLL shutdown hangs by retaining the default timer service
during process termination while preserving ordinary timer cleanup.
Report the saved Winsock error code when host WSAPoll fails.
Expand Down
14 changes: 14 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,20 @@ For native Windows binaries, use the MinGW64 shell instead.
;;
esac

# Static OpenSSL on POSIX platforms requires the dynamic-loader library at
# link time; Windows resolves its loader through the system runtime and
# provides no libdl.
AS_IF([test "x$is_windows" = xyes], [V3_TLS_DL_LIBS=""], [V3_TLS_DL_LIBS="-ldl"])
AC_SUBST([V3_TLS_DL_LIBS])

# Programs that link the raw static v3core archive bypass libtool's
# dependency propagation, and the global LDFLAGS carrying NETWORK_LIBS
# precede the objects on automake link lines, so the Windows network
# libraries must ride the program LDADD explicitly, after the archive.
# POSIX libc resolves socket symbols implicitly.
AS_IF([test "x$is_windows" = xyes], [V3_NETWORK_LIBS="$NETWORK_LIBS"], [V3_NETWORK_LIBS=""])
AC_SUBST([V3_NETWORK_LIBS])

# Checks for header files.
AC_CHECK_HEADER([stdint.h],[],[AC_MSG_ERROR("stdint.h not found")])
AC_CHECK_HEADER([inttypes.h],[],[AC_MSG_ERROR("inttypes.h not found")])
Expand Down
9 changes: 9 additions & 0 deletions docs/external-loop-contract.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,15 @@ the resulting protocol/transport outcome. Duplicate or spurious notifications,
including events with all flags false, are permitted and do not imply additional
completions. Empty batches are permitted for timers and pending library work.

A registration borrowed by a snapshot can be closed by library work at any
moment, because retaining a snapshot never extends a handle lifetime. A POSIX
host observes this as a per-entry `POLLNVAL` readiness (translated to `error`
and ignored as stale). Windows `WSAPoll` instead rejects the entire call with
`WSAENOTSOCK`; a host must treat that failure like an empty batch — dispatch,
acquire a fresh snapshot, and wait again — rather than stopping, because the
closed registration is absent from every later snapshot. The reference
`examples/host_poll.hpp` helper implements this tolerance.

Obtain an initial snapshot before waiting. After **every successful dispatch**,
obtain and reconcile a fresh snapshot before waiting again. A failed dispatch
may have consumed part of a batch unless the documented rejection rule says
Expand Down
7 changes: 7 additions & 0 deletions examples/host_poll.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,13 @@ inline std::vector<srv::readiness_event> wait(
const auto ready = ::WSAPoll(fds.data(), static_cast<ULONG>(fds.size()), timeout(deadline));
if (ready < 0) {
const int error = ::WSAGetLastError();
// Snapshot handles are borrowed: the library may close one between
// snapshot acquisition and this call. POSIX poll reports that
// per entry as POLLNVAL; WSAPoll rejects the whole set with
// WSAENOTSOCK. An empty batch keeps the contract's spurious-
// notification allowance: the caller dispatches, re-acquires
// interests, and the closed registration is already gone.
if (error == WSAENOTSOCK) return {};
if (error != WSAEINTR) throw std::runtime_error("WSAPoll failed (WSA error " + std::to_string(error) + ")");
}
#else
Expand Down
Loading
Loading