[PR #999] run_wine_tests: retain all results for duplicate names (WINE-DUPLICATE-TEST-NAMES) #1035

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

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/999
Author: @TheGeogeo
Created: 11/24/2026
Status: 🔄 Open

Base: main ← Head: fix/wine-duplicate-test-names


📝 Commits (1)

  • 59a51c2 run_wine_tests: retain results for repeated test names

📊 Changes

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

View changed files

📝 scripts/run_wine_tests.py (+10 -10)
📝 tests/test_run_wine_tests.py (+11 -0)

📄 Description

Claimed in the coordination issue as: WINE-DUPLICATE-TEST-NAMES — https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7137997010

What and why

CTest can list tests with the same name from separate directories. The Wine runner already executes both. Its name-keyed result map allowed the second test to overwrite the first in the totals, Markdown report and --require check. Use the existing per-entry results for all three. Each required name must be present, and every matching entry must pass.

Since the rebase over #1354 (--jobs), the name-keyed results map is gone entirely: report() no longer fills it, and the Markdown rows follow the dependency order rather than results_by_index, which --jobs fills in completion order.

Tested

Head 59a51c2c, rebased on main e18b59a5, same patch as 1d6ae8f4 (git range-diff); it merges cleanly with main 747809e7. Windows 11, Python 3.12.4:

  • python -I -B tests/test_run_wine_tests.py, three runs: 73 run, 12 skipped, errors only in test_jobs_keeps_locks_serial_tests_and_dependencies (three runs) and test_jobs_runs_that_many_tests_at_a_time (two). main e18b59a5 alone: both in two runs of three. With these tests on the runner of main e48ff037, test_required_name_checks_every_result_with_that_name fails.
  • tests/test_docs_cli_flags.py, tests/test_text_write_line_endings.py, tests/test_ctest_registration.py, tests/test_ci_registration.py and tests/test_docs_links.py: OK.
  • tests/test_tool_stdout_encoding.py fails in test_every_main_block_reconfigures_stdout, as on main e18b59a5 alone (three tools this change does not touch).
  • compileall, git diff --check and python -I scripts/check_no_game_data.py on the two files: clean.

Earlier head 1d6ae8f4, rebased on main 28a32e19; it merged cleanly with main 22372d86. Windows 11, Python 3.12.4:

  • python -I -B tests/test_run_wine_tests.py: 73 run, 12 skipped, 2 errors, in test_jobs_keeps_locks_serial_tests_and_dependencies and test_jobs_runs_that_many_tests_at_a_time. Unmodified main 22372d86 gives the same errors (three runs: both twice, only the second once), so they do not come from this change.
  • tests/test_tool_stdout_encoding.py, tests/test_docs_cli_flags.py and tests/test_text_write_line_endings.py: OK.
  • git diff --check and python -I -B scripts/check_no_game_data.py scripts/run_wine_tests.py tests/test_run_wine_tests.py: clean.

Earlier heads:

  • 800898fe (same patch as e8226ee4, on main 6293c1c4), Windows 11, Python 3.12.4: tests/test_run_wine_tests.py 64 run, OK (9 skipped).
  • On main at 3ed8e50b, a CTest 4.3.1-msvc1 listing with two shared_name entries produced one failure and one pass. With the same listing and a synthetic Wine launcher, --require shared_name incorrectly returned 0 and counted one pass. The focused regression failed on the same exit-code mismatch.
  • A synthetic CMake project with two test subdirectories generated both entries. The updated runner returned 1, counted one pass and one failure, and retained both rows in the Markdown report.
  • e8226ee4: python -I -B tests/test_run_wine_tests.py on Windows, Python 3.12.4, 55 passed and 9 POSIX-only skips; python3 -I -B tests/test_run_wine_tests.py on Debian WSL, Python 3.11.2, 64 passed, and 65 in a clean temporary merge with #919 (3de809cf).

GPUs tested: n/a (CPU-only synthetic tests).

AI-assisted: yes (Codex; the rebases on 28a32e19 and e18b59a5 with Claude Code).

Checklist

  • Based on current main and merges cleanly.
  • One topic.
  • No game data, keys or decryption.

🔄 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/999 **Author:** [@TheGeogeo](https://github.com/TheGeogeo) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/wine-duplicate-test-names` --- ### 📝 Commits (1) - [`59a51c2`](https://github.com/ubiquitarianism/leonida/commit/59a51c2c79d4075afb325a214f0f212fc928a133) run_wine_tests: retain results for repeated test names ### 📊 Changes **2 files changed** (+21 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `scripts/run_wine_tests.py` (+10 -10) 📝 `tests/test_run_wine_tests.py` (+11 -0) </details> ### 📄 Description Claimed in the coordination issue as: WINE-DUPLICATE-TEST-NAMES — https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7137997010 ### What and why CTest can list tests with the same name from separate directories. The Wine runner already executes both. Its name-keyed result map allowed the second test to overwrite the first in the totals, Markdown report and `--require` check. Use the existing per-entry results for all three. Each required name must be present, and every matching entry must pass. Since the rebase over #1354 (`--jobs`), the name-keyed `results` map is gone entirely: `report()` no longer fills it, and the Markdown rows follow the dependency `order` rather than `results_by_index`, which `--jobs` fills in completion order. ### Tested Head `59a51c2c`, rebased on `main` `e18b59a5`, same patch as `1d6ae8f4` (`git range-diff`); it merges cleanly with `main` `747809e7`. Windows 11, Python 3.12.4: - `python -I -B tests/test_run_wine_tests.py`, three runs: 73 run, 12 skipped, errors only in `test_jobs_keeps_locks_serial_tests_and_dependencies` (three runs) and `test_jobs_runs_that_many_tests_at_a_time` (two). `main` `e18b59a5` alone: both in two runs of three. With these tests on the runner of `main` `e48ff037`, `test_required_name_checks_every_result_with_that_name` fails. - `tests/test_docs_cli_flags.py`, `tests/test_text_write_line_endings.py`, `tests/test_ctest_registration.py`, `tests/test_ci_registration.py` and `tests/test_docs_links.py`: OK. - `tests/test_tool_stdout_encoding.py` fails in `test_every_main_block_reconfigures_stdout`, as on `main` `e18b59a5` alone (three tools this change does not touch). - `compileall`, `git diff --check` and `python -I scripts/check_no_game_data.py` on the two files: clean. Earlier head `1d6ae8f4`, rebased on `main` `28a32e19`; it merged cleanly with `main` `22372d86`. Windows 11, Python 3.12.4: - `python -I -B tests/test_run_wine_tests.py`: 73 run, 12 skipped, 2 errors, in `test_jobs_keeps_locks_serial_tests_and_dependencies` and `test_jobs_runs_that_many_tests_at_a_time`. Unmodified `main` `22372d86` gives the same errors (three runs: both twice, only the second once), so they do not come from this change. - `tests/test_tool_stdout_encoding.py`, `tests/test_docs_cli_flags.py` and `tests/test_text_write_line_endings.py`: OK. - `git diff --check` and `python -I -B scripts/check_no_game_data.py scripts/run_wine_tests.py tests/test_run_wine_tests.py`: clean. Earlier heads: - `800898fe` (same patch as `e8226ee4`, on `main` `6293c1c4`), Windows 11, Python 3.12.4: `tests/test_run_wine_tests.py` 64 run, OK (9 skipped). - On `main` at `3ed8e50b`, a CTest 4.3.1-msvc1 listing with two `shared_name` entries produced one failure and one pass. With the same listing and a synthetic Wine launcher, `--require shared_name` incorrectly returned 0 and counted one pass. The focused regression failed on the same exit-code mismatch. - A synthetic CMake project with two test subdirectories generated both entries. The updated runner returned 1, counted one pass and one failure, and retained both rows in the Markdown report. - `e8226ee4`: `python -I -B tests/test_run_wine_tests.py` on Windows, Python 3.12.4, 55 passed and 9 POSIX-only skips; `python3 -I -B tests/test_run_wine_tests.py` on Debian WSL, Python 3.11.2, 64 passed, and 65 in a clean temporary merge with #919 (`3de809cf`). GPUs tested: n/a (CPU-only synthetic tests). AI-assisted: yes (Codex; the rebases on `28a32e19` and `e18b59a5` with Claude Code). ### Checklist - [x] Based on current `main` and merges cleanly. - [x] One topic. - [x] No game data, keys or decryption. --- <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#1035
No description provided.