[PR #1946] Honor CTest fixture cleanup ordering in the Wine runner #1951

Open
opened 2026-11-26 21:19:31 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1946
Author: @lgr123
Created: 11/25/2026
Status: 🔄 Open

Base: main ← Head: wine-fixture-cleanup


📝 Commits (1)

  • 4d05364 Honor CTest fixture cleanup ordering in the Wine runner

📊 Changes

2 files changed (+68 additions, -10 deletions)

View changed files

📝 scripts/run_wine_tests.py (+20 -4)
📝 tests/test_run_wine_test_fixtures.py (+48 -6)

📄 Description

Claimed as WINE-RUNNER-FIXTURE-CLEANUP in #1608.

This is a fallback for listings that retain FIXTURES_* metadata but omit CTest’s generated DEPENDS edges. In that shape, an early-listed cleanup ran before setup and consumers with both --jobs 1 and --jobs 2. I haven’t identified a supported CTest version or a current CI producer that emits that shape. The standard ctest --show-only=json-v1 export 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

  • Windows, Python 3.12.14, CPU-only synthetic subprocesses. All 8 tests in tests/test_run_wine_test_fixtures.py passed after rebasing onto 9e7720c.
  • The broader Windows runner suite has pre-existing shared-trace errors in two concurrency tests. I reproduced both on pristine public main in repeated runs. The new tests write one trace file per child.
  • git diff --check and the source-only policy check passed. No game files were used.

GPUs tested: n/a.

AI-assisted: yes.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/1946 **Author:** [@lgr123](https://github.com/lgr123) **Created:** 11/25/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `wine-fixture-cleanup` --- ### 📝 Commits (1) - [`4d05364`](https://github.com/ubiquitarianism/leonida/commit/4d0536490285fd0449330e57d6012f6cfc8bdd18) Honor CTest fixture cleanup ordering in the Wine runner ### 📊 Changes **2 files changed** (+68 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `scripts/run_wine_tests.py` (+20 -4) 📝 `tests/test_run_wine_test_fixtures.py` (+48 -6) </details> ### 📄 Description Claimed as `WINE-RUNNER-FIXTURE-CLEANUP` in [#1608](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7167793106). This is a fallback for listings that retain `FIXTURES_*` metadata but omit CTest’s generated `DEPENDS` edges. In that shape, an early-listed cleanup ran before setup and consumers with both `--jobs 1` and `--jobs 2`. I haven’t identified a supported CTest version or a current CI producer that emits that shape. The standard `ctest --show-only=json-v1` export 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 - Windows, Python 3.12.14, CPU-only synthetic subprocesses. All 8 tests in `tests/test_run_wine_test_fixtures.py` passed after rebasing onto `9e7720c`. - The broader Windows runner suite has pre-existing shared-trace errors in two concurrency tests. I reproduced both on pristine public main in repeated runs. The new tests write one trace file per child. - `git diff --check` and the source-only policy check passed. No game files were used. GPUs tested: n/a. AI-assisted: yes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#1951
No description provided.