Honor CTest fixture cleanup ordering in the Wine runner #1946
No reviewers
No assignees
Labels
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
No project
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
No due date set.
Reference
leonida/mandy!1946
Loading…
Reference in a new issue
No description provided.
Delete branch "wine-fixture-cleanup"
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?
Pull request successfully merged and closed
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.
#1946 | head 4d0536490285fd0449330e57d6012f6cfc8bdd18 (merged cleanly with main d48a957bb) |
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.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).
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
maincd36c87b1 without 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.