Honor CTest fixture cleanup ordering in the Wine runner #1946
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1946"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ubiquitarianism/leonida. Originally posted by lgr123 on 2026-11-25T16:25:07Z.
Claimed as
WINE-RUNNER-FIXTURE-CLEANUPin #1608.This is a fallback for listings that retain
FIXTURES_*metadata but omit CTest’s generatedDEPENDSedges. In that shape, an early-listed cleanup ran before setup and consumers with both--jobs 1and--jobs 2. I haven’t identified a supported CTest version or a current CI producer that emits that shape. The standardctest --show-only=json-v1export already preserves those edges on CTest 3.24.3 and 4.3.1-msvc1, as reported in the independent review.This patch adds teardown ordering edges without adding failed-setup gates to cleanup. A cleanup shared by two fixtures waits for both setups and all consumers, then runs once. The regressions cover serial and parallel execution, failed setup, failed consumer and skipped setup.
Tested
tests/test_run_wine_test_fixtures.pypassed after rebasing onto9e7720c.git diff --checkand the source-only policy check passed. No game files were used.GPUs tested: n/a.
AI-assisted: yes.
Imported from ubiquitarianism/leonida. Originally posted by alexandersato0830 on 2026-11-25T16:40:31Z.
Review: COMMENTED
I independently checked the Wine runner at
4d0536490. All eight tests intests/test_run_wine_test_fixtures.pypassed on Windows 11 with Python 3.11.17.I also compared a nested fixture against native CTest. The inner setup and cleanup require an outer fixture, and the inner fixture has two consumers, one deliberately slow. I ran the success, failed consumer, failed inner setup, skipped inner setup, and failed outer setup cases with one and three workers.
ctest --show-only=json-v1, the same command the runtime workflow uses. For example,inner_cleanupalready hasDEPENDSentries forouter_setup,inner_setup, and both consumers. With all JSON properties intact, both9e7720c9eand4d0536490matched native CTest's launch set and required ordering in all ten cases per version.DEPENDSproperties removed, the base runner got cleanup ordering wrong in all ten cases per version. The proposed runner still matched native CTest. The test commands were adapted to launch synthetic Python stand-ins.Could the PR description call out that this fixes listings without the generated
DEPENDSedges? If a CTest version or another producer emits that shape in practice, naming it would help establish which runs are affected.AI-assisted review with Codex. CPU-only synthetic tests. No game files used.
Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-11-28T12:21:41Z.
#1946 | head
4d05364902(merged cleanly with maind48a957bb) |python -I tests/test_run_wine_test_fixtures.py| red on main:FAILED (failures=7)(cleanupexecuted ahead ofsetup/consumerandother_consumeracross--jobs 1and--jobs 2) | green on PR+main:8 tests OK| Windows 11, Python 3.12.10 | AI-assisted: yesAudited
fixture_dependenciesandmaininscripts/run_wine_tests.py(separatingrequired_setupssuccess gates fromcleanup_orderordering dependencies soFIXTURES_CLEANUPtests wait for all matching setups and consumers across single- and multi-job runs, and still execute after failed or skipped fixture work without inheriting setup-failure blocks). Also verifiedtests/test_ci_registration.py(18 OK),tests/test_text_write_line_endings.py(3 OK), andscripts/check_no_game_data.py.Imported from ubiquitarianism/leonida. Originally posted by TheGeogeo on 2026-11-28T23:38:18Z.
Tested
4d0536490merged (no commit) withmainaa918e5d9: Python 3.12.4, Windows 11 10.0.26300, CPU only.check_no_game_data.pyis clean.tests/test_run_wine_test_fixtures.py, 8 tests pass. This test needs neither Wine norbash.scripts/run_wine_tests.pyback tomain, all 8 fail ('other_consumer' != 'cleanup').No blocker from my side.
AI-assisted (Claude Code).
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-28T23:49:32Z.
Merged after TheGeogeo's red/green check (check) (Windows, Python tests, no GPU needed) and a local re-check here. Merged after local re-verification: this PR merged onto
maincd36c87b1without conflict, and its test file(s) (tests/test_run_wine_test_fixtures.py) pass there. Earlier today the same tests failed onmainwithout the PR (red/green) and a bundle with other open PRs showed no new failures.check_no_game_data.pyis clean. Windows 11, Python 3.14; no GPU needed for these tests.AI-assisted (Claude Code, Claude Opus 5.5), merged for MoonEyes.