Windows: full module parity and runtime-qualified test suite
- Net/IO: Winsock sockets (UdpSocket, TlsClientStream, WebSocketClient), HttpServer port with a loopback wake socket replacing eventfd, and the select-based IO backend built on Windows (ws2_32). - Net: implement StaticFileResolver::open_safe and OpenedStaticFile on Windows (reparse-point rejection plus canonical containment check on the opened handle) and widen native handles to intptr_t. - Plugin: hot reload works on Windows by loading a fresh copy while the old DLL stays mapped; enable the reload, discovery and FSM service reload tests and retire the plugin file by rename instead of replacement. - Update: activation pointer as a directory junction on Windows. - Stacktrace: portable path comparison for wide native strings. - Docs/targets: every module allowlisted on Windows; record the Wine run (2000 tests, 1977 passed, 23 skipped, 0 failed). - CMake: add -Wa,-mbig-obj for GNU MinGW targets (COFF section limit). - Async: fix the FuturePool stopped-after-close test to wait for the executor to release its admission slot instead of racing it. Windows and Linux suites both pass: Windows 2000/1977/23 skips/0 failed, Linux 2027/2023/4 skips/0 failed.
This commit is contained in:
1 parent
1b1947340f
commit
b3c959b920
32 files changed
+1836
-401
No files matched your search
+23
-15
@@ -98,7 +98,7 @@ Detection uses `CMAKE_C_COMPILER -dumpmachine` (or
|
||||
recognized and configured like Linux; musl-specific behaviour (subprocess
|
||||
`/proc`, `dl`, locale) must still be verified before claiming full support.
|
||||
|
||||
### Windows client (compile/install/consume + Wine runtime qualified)
|
||||
### Windows (compile/install/consume + Wine runtime qualified)
|
||||
|
||||
| Item | Value |
|
||||
|------|-------|
|
||||
@@ -108,14 +108,15 @@ recognized and configured like Linux; musl-specific behaviour (subprocess
|
||||
| CMake / generator | CMake 4.5.0, Ninja 1.13.2 |
|
||||
| Language | C++26, reflection `yes` |
|
||||
| Runtime | Wine 11.0 (`wine64`), no native Windows runner available |
|
||||
| Modules | `Algorithms Archive Async Binary Configuration ConfigurationAsync Containers Core Crypto CryptoAsync Data Discovery Fsm Functional FunctionalCoreFormatting IO IPC Log LogConfig LogState MCP Math Memory Messaging MessagingStorage Observability ObservabilityHooks Plugin Resilience ResilienceAsync Runtime Scheduler SchedulerStorage Script Service ServicePlugin ShortUrl Sqlite SqliteAsync Storage System SystemAsync Testing TestingMock Text Time Unicode Update` |
|
||||
| Observed | configure, compile, `cmake --install`, consume (`TargetProfile.exe` linked); each module's suite is verified under Wine before it is allowlisted. Full allowlisted set in one binary (Release) under Wine: **1851 tests, 1826 passed, 25 skipped, 0 failed** |
|
||||
| Modules | all modules under `src/` (`VOID_WINDOWS_MODULES` in `cmake/Targets.cmake`) |
|
||||
| Observed | configure, compile, `cmake --install`, consume (`TargetProfile.exe` linked); each module's suite is verified under Wine before it is allowlisted. Full allowlisted set in one Debug shared binary (MinGW-w64 GCC 16.2.0) under Wine 11: **2000 tests, 1977 passed, 23 skipped, 0 failed** |
|
||||
|
||||
Notes from the runtime run:
|
||||
|
||||
- `IO` uses the select-based Windows backend on Windows (the native epoll
|
||||
backend is Linux-only) with positional-file workers over the CRT; a native
|
||||
IOCP backend is still a separate task.
|
||||
- `IO` builds `EpollDriver.cpp` on every platform: it contains the Linux
|
||||
epoll backend and the Windows select-based backend. Windows also uses
|
||||
positional-file workers over the CRT; a native IOCP backend is still a
|
||||
separate task.
|
||||
- `Configuration`, `Crypto`, `System` and `Archive` are allowlisted and
|
||||
cross-compile; `System` links `winmm` for the Win32 audio backend. Archive's
|
||||
staging implementation keeps its POSIX logic and runs on Windows through a
|
||||
@@ -139,13 +140,19 @@ Notes from the runtime run:
|
||||
`_commit` instead of `fsync`); its OpenSSL-signed feed fixtures are gated by
|
||||
`// @requires-openssl`, and the compressed-package fixture skips when the
|
||||
Archive backend has no LibArchive.
|
||||
- Still outside the Windows allowlist:
|
||||
`ShortUrlStorage` (needs `Security`), `Net`,
|
||||
`RPC`, `DiscoveryRpc`, `MessagingRpc`, `Security`, `SecurityAsync`,
|
||||
`ShortUrlRemote`, `Stacktrace` (external dependencies not yet
|
||||
built for Windows in the qualification environment).
|
||||
- Plugin hot-reload/discovery tests skip on Windows (loaded DLLs cannot be
|
||||
unloaded and replaced yet), and the C ABI plugin fixtures are POSIX-only.
|
||||
- `Net` is fully allowlisted on Windows: `UdpSocket`, `TlsClientStream` and
|
||||
`WebSocketClient` use Winsock/WSAPoll, and `HttpServer` is ported to
|
||||
Winsock with a loopback wake socket replacing `eventfd`. The RPC family
|
||||
(`RPC`, `DiscoveryRpc`, `MessagingRpc`) and `ShortUrlRemote` therefore link
|
||||
on Windows too.
|
||||
- `Stacktrace` builds with Boost.Stacktrace's `windbg` backend on Windows,
|
||||
`Security`/`SecurityAsync`/`ShortUrlStorage` link the cross-built
|
||||
libsodium, and `ShortUrlRemote` links the Windows `Net` client/server.
|
||||
- Plugin hot-reload and discovery tests run on Windows: a new generation is
|
||||
loaded from a fresh copy while the old DLL stays mapped, and the plugin file
|
||||
is retired by rename instead of in-place replacement. The C ABI plugin
|
||||
fixtures remain POSIX-only, and the reload-under-load stress test is still
|
||||
gated.
|
||||
- `Observability` links after replacing the namespace-scope
|
||||
`inline thread_local` hook stack with a function-local `thread_local`
|
||||
accessor (MinGW emitted duplicate TLS init functions).
|
||||
@@ -153,8 +160,9 @@ Notes from the runtime run:
|
||||
Log hardening test closes its `ifstream` before removing the file, and the
|
||||
subprocess-isolation test skips when `current_executable_path()` is not
|
||||
implemented (Windows has no subprocess isolation yet).
|
||||
- MinGW test builds need `-Wa,-mbig-obj`: the Fsm hardening test TU exceeds
|
||||
the COFF section limit with the default object format.
|
||||
- MinGW test builds use `-Wa,-mbig-obj` (added automatically for GNU targets):
|
||||
the Fsm hardening test TU exceeds the COFF section limit with the default
|
||||
object format.
|
||||
- Runtime observations come from Wine, not a native Windows runner; a
|
||||
Windows CI runner should confirm them.
|
||||
|
||||
|
||||
Reference in new issue
Block a user