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:
faumaray committed 2026-12-06 14:56:26 +03:00
1 parent 1b1947340f
commit b3c959b920
32 files changed
+1836 -401

No files matched your search

+4 -2
View File
@@ -18,12 +18,14 @@ function(void_add_module MODULE_NAME)
# on the global source layout.
if(WIN32 AND ARG_EXCLUDE_SOURCES_WIN32)
foreach(_excl IN LISTS ARG_EXCLUDE_SOURCES_WIN32)
list(REMOVE_ITEM SRC "${CMAKE_CURRENT_SOURCE_DIR}/${_excl}")
list(REMOVE_ITEM SRC
"${CMAKE_CURRENT_SOURCE_DIR}/src/${MODULE_NAME}/${_excl}")
endforeach()
endif()
if(NOT WIN32 AND ARG_EXCLUDE_SOURCES_UNIX)
foreach(_excl IN LISTS ARG_EXCLUDE_SOURCES_UNIX)
list(REMOVE_ITEM SRC "${CMAKE_CURRENT_SOURCE_DIR}/${_excl}")
list(REMOVE_ITEM SRC
"${CMAKE_CURRENT_SOURCE_DIR}/src/${MODULE_NAME}/${_excl}")
endforeach()
endif()
file(GLOB_RECURSE HDR CONFIGURE_DEPENDS
+13 -4
View File
@@ -39,10 +39,10 @@ set(VOID_WASM_MODULES
Unicode
)
# Windows client subset: modules qualified with x86_64-w64-mingw32 (MinGW-w64).
# Filled from the cross-build and Wine runtime observations in
# docs/targets.md. IO is deliberately absent: it builds on Windows but its
# native backend is Linux-only (EpollBackend), so only the mock backend works.
# Windows: every module under src/ is qualified with x86_64-w64-mingw32
# (MinGW-w64), cross-built and run under Wine; see docs/targets.md. IO's
# native backend is the select-based Windows backend (EpollDriver.cpp), not
# IOCP, which remains a separate task.
set(VOID_WINDOWS_MODULES
Algorithms
Archive
@@ -56,7 +56,15 @@ set(VOID_WINDOWS_MODULES
MCP
Resilience
ResilienceAsync
RPC
DiscoveryRpc
MessagingRpc
Script
Security
SecurityAsync
ShortUrlRemote
ShortUrlStorage
Stacktrace
SystemAsync
Core
Crypto
@@ -76,6 +84,7 @@ set(VOID_WINDOWS_MODULES
Math
Memory
Messaging
Net
Observability
ObservabilityHooks
Plugin