Commit Graph

60 Commits

Author SHA1 Message Date
35159222a4 Merge pull request #919 from TuroYT/fix/wine-drive-map-oserror
run_wine_tests: keep going when the drive cannot be mapped (WINE-DRIVE-MAP-OSERROR)
2026-11-29 02:32:13 +01:00
e0a0e69891 Merge pull request #1015 from TheGeogeo/fix/wine-timeout-overflow
run_wine_tests: reject overflowing timeouts (WINE-TIMEOUT-OVERFLOW)
2026-11-28 20:34:45 +01:00
88fb79ab30 Merge pull request #1845 from delysidemanYT1/wine-resource-lock-shape
WINE-RESOURCE-LOCK-SHAPE: Validate CTest resource locks before scheduling Wine tests
2026-11-28 20:29:21 +01:00
0ad0325b03 Merge pull request #1964 from lgr123/lgr123/wine-prefix-ownership
Keep Wine runner resources scoped to one prefix owner
2026-11-28 15:49:50 +01:00
0aa161d334 Merge pull request #1402 from Okachamie/tests/wine-warm-existing
run_wine_tests: warm an adopted persistent server (TEST-WINE-WARM-EXISTING)
2026-11-28 15:37:51 +01:00
89ee135fec Merge pull request #999 from TheGeogeo/fix/wine-duplicate-test-names
run_wine_tests: retain all results for duplicate names (WINE-DUPLICATE-TEST-NAMES)
2026-11-28 09:05:28 +01:00
b70bde278b run_wine_tests: reject overflowing process timeouts 2026-11-25 20:33:39 +01:00
59a51c2c79 run_wine_tests: retain results for repeated test names 2026-11-25 20:33:37 +01:00
7bb023788b Keep Wine runner resources scoped to one prefix owner 2026-11-25 10:51:22 -06:00
0f71fcbcb1 WINE-RESOURCE-LOCK-SHAPE: Validate CTest resource locks before scheduling Wine tests 2026-11-25 13:59:52 +01:00
67b81fe837 tests/run_wine_tests: one timing log per child, so --jobs tests pass on Windows (TEST-WINE-JOBS-TIMING-WINDOWS)
test_jobs_runs_that_many_tests_at_a_time and test_jobs_keeps_locks_serial_tests_and_dependencies failed on every native Windows run with IndexError or ValueError in intervals(). The timed() children appended to one shared timing.log at the same time; appends from several processes are not atomic on Windows, so lines were lost or merged. Each child now writes timing/<name>.log and intervals() reads them all.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 10:42:58 +01:00
8dd20f6a80 tests: warm an adopted persistent wineserver 2026-11-24 18:29:13 -05:00
de3027cff4 run_wine_tests: keep one wineserver, disable winedbg, add --jobs
Run one after another, each Windows test under Wine took several seconds,
most of it a wineserver starting and stopping around every test. The
runner now keeps one wineserver alive for the run (`wineserver -p`, the
one $WINESERVER or the --wine command uses) and stops it at the end,
also after a failure or Ctrl+C. It starts the prefix's services first
with `wine wineboot` and no output: the first program a server runs
starts them, they inherit its output pipe, and with a kept server they
hold it open until the timeout.

Each test's WINEDLLOVERRIDES gains winedbg.exe=d (a crash fails at once
instead of waiting in the debugger) and winemenubuilder.exe=d (no menu
entries or file associations in the user's profile); an entry of the
caller's or the test's for the same program wins.

--jobs N (default 1) runs N tests at a time, keeping RUN_SERIAL tests
alone, tests that share a RESOURCE_LOCK apart and DEPENDS in order, and
reports them in the same order as --jobs 1.

docs/testing.md gains the fast local recipe for the cross-build with
measured times, the menu-builder note and --jobs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 17:15:53 -05:00
3de809cf6d run_wine_tests: note and carry on when the drive cannot be mapped (WINE-DRIVE-MAP-OSERROR)
DriveMap.__enter__ handled only FileExistsError. A prefix whose dosdevices
folder cannot be written aborted the run with a traceback before any test.
Any OSError while mapping now sets a note and leaves the drive unmapped; the
scratch folder is removed as before.
Tests: the old drive-setup test asserted the traceback; it now checks the note,
the cleanup and that __enter__ does not raise. A second test covers a scratch
folder that cannot be created.
2026-11-24 16:11:09 +01:00
1603c83aa7 tests: resolve both sides of the Wine runner's working-directory check
The fixture asserts that the child starts in the artifact folder. On Windows
tempfile hands out the 8.3 name (RUNNER~1) while Path(__file__).resolve()
returns the long one, so the assertion failed inside the child and the case
reported exit 1 in the check job. Resolving the working directory too compares
the folders, not their spellings; a child started elsewhere still fails.
2026-11-24 04:27:29 +02:00
e6b8e21d3e Merge remote-tracking branch 'origin/pr/9705' 2026-11-23 17:24:37 -05:00
f475ea37f1 Merge PR #9581 2026-11-23 17:08:22 -05:00
e688f7df1c Merge PR #9548 2026-11-23 17:07:12 -05:00
75e158bfc3 run_wine_tests: name missing required tests in the summary table
A required test the Windows build never listed fails the job, but the
--summary table only iterated the results, so the step summary showed no
row explaining the failure. Add one 'missing' row per such test, once
even when --require repeats it.
2026-11-23 16:58:21 -05:00
2471e0487f run_wine_tests: map checkouts at the Windows drive root 2026-11-23 16:33:34 -05:00
9a71bb4b2a run_wine_tests: resolve a relative Wine executable before changing directories 2026-11-23 16:23:12 -05:00
c18faa47d5 run_wine_tests: give test processes EOF on stdin 2026-11-23 16:22:59 -05:00
3997f54004 Merge pull request #4589 from ligmaSec
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:16:12 -05:00
3d713526ea Merge pull request #4547 from AGInformatique81
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:15:48 -05:00
05345bedc8 Merge pull request #4034 from Stalkerino
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:10:37 -05:00
64f3dc1a6d Merge pull request #4020 from bbareth
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:10:27 -05:00
3baa73a913 Merge pull request #3899 from bbareth
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:09:22 -05:00
59879f2347 Stop timed-out Wine test process groups
Run each POSIX test in its own session and stop the group on timeout or interruption. A helper that inherits the output pipe must be stopped even when the launcher already exited.
2026-11-23 02:50:05 +00:00
26d2473378 Fail Wine tests when the mapped working directory is invalid 2026-11-23 03:20:46 +01:00
3c7b0403c3 Validate CTest working directory and output expression value types
Merge upstream main and reject malformed paths or output expressions before drive mapping. Preserve CTest's lists, the existing string form, and arbitrary values on properties the runner does not consume. Five new bad-value cases fail before the change. All 53 runner tests pass on Debian, and the reader accepts an actual CTest 3.31.6 JSON listing.

AI-assisted (Codex).
2026-11-22 22:19:42 -03:00
e8ea6447f5 Resolve relative checkout paths before launching Wine tests 2026-11-23 00:00:56 +01:00
6d3b3f9f4e Handle malformed CTest skip codes in the Wine runner 2026-11-22 23:56:00 +01:00
62bce63d1c Clean up failed Wine drive setup 2026-11-22 23:21:17 +01:00
35f28b2f18 Merge pull request #3247 from Kam471 2026-11-22 15:16:09 -05:00
220b786966 Merge pull request #3195 from Max Hurst 2026-11-22 15:15:37 -05:00
507657c285 fix(ci): reject malformed commands and properties in CTest listings
Validate test rows before mapping a Wine prefix. Accept a missing command for an unbuilt target, while rejecting invalid arguments or property records before launching any tests.
2026-11-22 17:12:32 -03:00
1bc49f49ce Merge pull request #2357 from Matheus Gomes 2026-11-22 15:10:36 -05:00
46e9f04e60 tests: cover dot and repeated separators in the Wine path guard 2026-11-22 20:03:09 +00:00
fd426ec2ad fix: normalize Windows paths before Wine mapping 2026-11-22 19:48:54 +00:00
f039403efe Honor CTest output-based skips in the Wine runner 2026-11-22 19:33:20 +00:00
54e13c51b7 Merge upstream main into the Wine timeout fix
Keep the per-test CTest environment and pass its subprocess the more restrictive deadline.
2026-11-22 16:27:39 -03:00
d097528984 Merge pull request #2479 from bbareth 2026-11-22 13:15:36 -05:00
2e4c86c2d2 run_wine_tests: reject malformed CTest inventories before launching 2026-11-22 18:11:11 +01:00
03d9ce780d fix(ci): honor shorter CTest deadlines in the Wine runner
Use the shorter of the configured runner limit and a test's positive CTest TIMEOUT. A late expected failure remains a timeout, while a long or disabled CTest deadline cannot raise the runner cap.
2026-11-22 13:43:50 -03:00
d5f6eaf6f4 Merge pull request #2154 from Vonsek 2026-11-22 11:42:19 -05:00
bdfe5f88ec fix(wine): apply each CTest test environment
A test-specific setting can select a different adapter or feature. Pass the CTest environment to its subprocess so Wine covers the same settings and sibling tests still inherit the runner environment.
2026-11-22 17:08:47 +01:00
194dad2f4b fix(wine): honor disabled CTest entries
CTest marks disabled entries as skipped even when the command is unavailable. Check the property before resolving or starting the Windows test so the Wine report gives the same result.
2026-11-22 16:46:14 +01:00
61a8499b85 Merge pull request #1701 from Jolymmiles 2026-11-22 08:38:34 -05:00
b0c587ea27 Wine tests: ship generated test shaders and map the build checkout's drive
d3d12_compute, d3d12_draw, d3d12_r9g9b9e5_uav, d3d12_descriptor and d3d12_indirect_rt open their GLSL test
shaders through absolute paths compiled into them (LEONIDA_TEST_*_SPV, D:/a/Leonida/Leonida/runtime/build/
generated/*.spv). The runtime-windows artifact didn't carry generated/*.spv and Wine has no such D: drive, so
they failed under Wine (copy_file threw, exit 3, or the shader read failed).

The artifact now includes runtime/build/generated/*.spv, and run_wine_tests.py points the drive of
--windows-root at --root in the Wine prefix for the run (a dosdevices link to a scratch folder), leaving a
drive the prefix already has untouched and removing both links afterwards.
2026-11-22 17:15:41 +04:00
36dbff0049 Merge pull request #1561 from Zebraine 2026-11-22 08:08:04 -05:00