Windows CI completion
Native x64 and ARM64 jobs run platform contracts and the complete unit suite with four workers. A blocked diagnostic process and ordinary failed tests must each emit their details and exit unsuccessfully.
Those two legs set PYTHONUTF8=1, the mode the released launchers start Python in. A third x64 leg sets PYTHONUTF8=0 for the processes the product still starts in the system code page.
| Concern | Rule |
|---|---|
| Long test IDs | Large parametrized payloads use explicit short IDs: pytest writes the node ID into PYTEST_CURRENT_TEST, and Windows caps environment values below 32767 characters. Payload bytes are unchanged. |
| POSIX assertions | Mode checks apply only on POSIX; the catalogue round-trip still runs on Windows |
| Output | Unbuffered Python; unit results name each test; full output and a traceback file are uploaded on success and failure |
| Hangs | A process-wide traceback deadline replaces the pytest faulthandler plugin and also covers reporting and shutdown; the step and job have finite limits |
| Failed tests | Keep their nonzero exit status; none are removed or accepted as passing |
| Deadlines | Synchronization deadlines are watchdogs, not performance assertions |
Fixture ownership and document reads
| Area | Rule |
|---|---|
| Document publication | Binds file identity by device and inode at open and compares metadata stability separately within descriptor and pathname stat APIs, since Windows may represent their timestamps differently. A change within either API, or a content revision mismatch, rejects publication and keeps the original bytes. |
| Document route fixtures | Isolate HOME and USERPROFILE and resolve state with the original path function, so lazy imports follow the current environment |
| History ownership fixtures | Register SessionStore.close right after construction; closing cancels and joins deferred index writers before the production-thread teardown guard runs |
| Tracked-dispatch fixtures | Keep their JobRunner and register cleanup on acquiring it; request the non-waiting singleton shutdown, then join dispatcher, reconciler and budget threads before closing the SessionStore |
| Subprocess event cleanup | Assert the result returns while a callback is blocked, then release and join it; setup and host scheduling time do not count as latency |
Implementation status
Native confirmation of the final x64 and ARM64 regression runs is outstanding. The PYTHONUTF8=0 leg and, in the install smoke workflow, the App steps (scripts/release/smoke-windows-desktop.ps1), the x64 files on the Arm runner and the tool call through the worker (scripts/release/smoke-tool-call.py) have not run.
Last updated · 2026-11-25