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

Merged
TheGeogeo merged 1 commit from upstream-pr/999 into main 2026-11-28 08:05:28 +00:00
TheGeogeo commented 2026-11-24 16:43:05 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by TheGeogeo on 2026-11-24T16:43:05Z.


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.
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5476404720 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/999). Originally posted by [TheGeogeo](https://github.com/TheGeogeo) on 2026-11-24T16:43:05Z. --- 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.
KernelSmoker commented 2026-11-24 16:57:19 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by KernelSmoker on 2026-11-24T16:57:19Z.

Review: APPROVED


Verified on exact head e8226ee49c2701aa91f988ba10fed9ccd54a937b. I ran python3 -I -B tests/test_run_wine_tests.py (64/64 passed), scripts/check_no_game_data.py for both changed files, and git diff --check against origin/main. The new duplicate-name regression reproduces two entries named shared, one failing and one passing: the summary retains both rows, reports 1 pass and 1 failure, and --require shared exits nonzero. This validates the aggregation and required-name behavior with synthetic fixtures; I did not run Wine or Windows tests.

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6043705555 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/999#pullrequestreview-6043705555). Originally posted by [KernelSmoker](https://github.com/KernelSmoker) on 2026-11-24T16:57:19Z. **Review:** APPROVED --- Verified on exact head e8226ee49c2701aa91f988ba10fed9ccd54a937b. I ran `python3 -I -B tests/test_run_wine_tests.py` (64/64 passed), `scripts/check_no_game_data.py` for both changed files, and `git diff --check` against origin/main. The new duplicate-name regression reproduces two entries named `shared`, one failing and one passing: the summary retains both rows, reports 1 pass and 1 failure, and `--require shared` exits nonzero. This validates the aggregation and required-name behavior with synthetic fixtures; I did not run Wine or Windows tests.
TheGeogeo commented 2026-11-24 21:22:29 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by TheGeogeo on 2026-11-24T21:22:29Z.


Rebased on main 6293c1c4: e8226ee4 -> 800898fe, same patch (git range-diff). The previous base failed tests/test_tool_stdout_encoding.py, which #948 fixed on main, and the earlier CI run never started (action_required).

  • Windows 11, Python 3.12.4, after the rebase: tests/test_run_wine_tests.py 64 run, OK (9 skipped); test_tool_stdout_encoding.py, test_docs_cli_flags.py and test_text_write_line_endings.py OK; git diff --check and the no-game-data check clean.
  • The approval here was made before the rebase, on e8226ee4.

No code change in this rebase. CI on the new head is still queued.

AI-assisted: yes (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7144845414 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/999#issuecomment-7144845414). Originally posted by [TheGeogeo](https://github.com/TheGeogeo) on 2026-11-24T21:22:29Z. --- Rebased on `main` `6293c1c4`: `e8226ee4` -> `800898fe`, same patch (`git range-diff`). The previous base failed `tests/test_tool_stdout_encoding.py`, which #948 fixed on `main`, and the earlier CI run never started (action_required). - Windows 11, Python 3.12.4, after the rebase: `tests/test_run_wine_tests.py` 64 run, OK (9 skipped); `test_tool_stdout_encoding.py`, `test_docs_cli_flags.py` and `test_text_write_line_endings.py` OK; `git diff --check` and the no-game-data check clean. - The approval here was made before the rebase, on `e8226ee4`. No code change in this rebase. CI on the new head is still queued. AI-assisted: yes (Claude Code).
TheGeogeo commented 2026-11-24 23:11:05 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by TheGeogeo on 2026-11-24T23:11:05Z.


Rebased on main 28a32e19, where #1354 (--jobs) conflicted: 800898fe -> 1d6ae8f4. It also merges cleanly with main 22372d86.

The patch changed: report() no longer fills the name-keyed results map, which is gone, and the Markdown rows follow the dependency order, because --jobs fills results_by_index in completion order. KernelSmoker's approval was on e8226ee4, before this and the previous rebase.

Windows 11, Python 3.12.4: 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 has the same errors (the first one intermittently). test_tool_stdout_encoding.py, test_docs_cli_flags.py, test_text_write_line_endings.py, git diff --check and the no-game-data check pass.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7147110406 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/999#issuecomment-7147110406). Originally posted by [TheGeogeo](https://github.com/TheGeogeo) on 2026-11-24T23:11:05Z. --- Rebased on `main` `28a32e19`, where #1354 (`--jobs`) conflicted: `800898fe` -> `1d6ae8f4`. It also merges cleanly with `main` `22372d86`. The patch changed: `report()` no longer fills the name-keyed `results` map, which is gone, and the Markdown rows follow the dependency `order`, because `--jobs` fills `results_by_index` in completion order. KernelSmoker's approval was on `e8226ee4`, before this and the previous rebase. Windows 11, Python 3.12.4: `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` has the same errors (the first one intermittently). `test_tool_stdout_encoding.py`, `test_docs_cli_flags.py`, `test_text_write_line_endings.py`, `git diff --check` and the no-game-data check pass.
TheGeogeo commented 2026-11-25 19:50:19 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by TheGeogeo on 2026-11-25T19:50:19Z.


Rebased from 1d6ae8f4 to 59a51c2c on main e18b59a5, same patch (git range-diff). The old base was why test_ci_registration.py failed in this pull request's CI (test_sub_co_same_operand.py); it passes on the new base. KernelSmoker's approval was given on 800898fe, not on this head.

Windows 11, Python 3.12.4: test_run_wine_tests.py 73 run, 12 skipped, errors only in the two test_jobs_* cases, which main e18b59a5 alone gives too (both in two of three runs); test_ci_registration.py 16, test_ctest_registration.py 5, test_docs_links.py 16, test_docs_cli_flags.py and test_text_write_line_endings.py pass. Not from this change: test_tool_stdout_encoding.py fails on main alone as well, the two cs_dpp_cmp.asm cases of the old CI run are unchanged on main (not run here: no llvm-mc), and vk_xdxr_postbuild_readback still returns 77 without SKIP_RETURN_CODE on main (#1418).

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7172830815 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/999#issuecomment-7172830815). Originally posted by [TheGeogeo](https://github.com/TheGeogeo) on 2026-11-25T19:50:19Z. --- Rebased from `1d6ae8f4` to `59a51c2c` on `main` `e18b59a5`, same patch (`git range-diff`). The old base was why `test_ci_registration.py` failed in this pull request's CI (`test_sub_co_same_operand.py`); it passes on the new base. KernelSmoker's approval was given on `800898fe`, not on this head. Windows 11, Python 3.12.4: `test_run_wine_tests.py` 73 run, 12 skipped, errors only in the two `test_jobs_*` cases, which `main` `e18b59a5` alone gives too (both in two of three runs); `test_ci_registration.py` 16, `test_ctest_registration.py` 5, `test_docs_links.py` 16, `test_docs_cli_flags.py` and `test_text_write_line_endings.py` pass. Not from this change: `test_tool_stdout_encoding.py` fails on `main` alone as well, the two `cs_dpp_cmp.asm` cases of the old CI run are unchanged on `main` (not run here: no `llvm-mc`), and `vk_xdxr_postbuild_readback` still returns 77 without `SKIP_RETURN_CODE` on `main` (#1418). AI-assisted: yes (Claude Code)
OreoFR commented 2026-11-27 19:42:29 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-27T19:42:29Z.


Merge test and review, taken from the pool PRs MoonEyes had not checked yet. Main ec91d695c merged without conflict; the PR's test files run with the pins of tests/requirements.txt on Windows 11, Python 3.12 (venv). AI-assisted (Claude Code, Claude Opus 5.5).

  • Tests: with the PR 61 passed, 12 skipped; against main: 1 failed. The fix is shown.
  • No KeyError possible: the serial and parallel paths both record a result for every index in order, and an exception exits before the summary. Counts now include duplicate test names, as the docstring says.
  • Merges cleanly with #1015.
<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7226792112 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/999#issuecomment-7226792112). Originally posted by [OreoFR](https://github.com/OreoFR) on 2026-11-27T19:42:29Z. --- Merge test and review, taken from the pool PRs MoonEyes had not checked yet. Main ec91d695c merged without conflict; the PR's test files run with the pins of `tests/requirements.txt` on Windows 11, Python 3.12 (venv). AI-assisted (Claude Code, Claude Opus 5.5). - **Tests:** with the PR 61 passed, 12 skipped; against main: 1 failed. The fix is shown. - No KeyError possible: the serial and parallel paths both record a result for every index in `order`, and an exception exits before the summary. Counts now include duplicate test names, as the docstring says. - Merges cleanly with #1015.
DadaCap commented 2026-11-28 08:05:31 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by DadaCap on 2026-11-28T08:05:31Z.


Merged into main (merge commit 89ee135fe), approved by DadaCap (maintainer). Thanks!

Checked before merging: test_run_wine_tests.py fails on main (failures=1, errors=1) and passes with this PR. The merge was pinned to the head commit that was tested (59a51c2c7).

AI-assisted (Claude Code), posted for DadaCap.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7236356988 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/999#issuecomment-7236356988). Originally posted by [DadaCap](https://github.com/DadaCap) on 2026-11-28T08:05:31Z. --- Merged into `main` (merge commit 89ee135fe), approved by DadaCap (maintainer). Thanks! Checked before merging: `test_run_wine_tests.py` fails on main (failures=1, errors=1) and passes with this PR. The merge was pinned to the head commit that was tested (59a51c2c7). _AI-assisted (Claude Code), posted for DadaCap._
Sign in to join this conversation.
No reviewers
No labels
No milestone
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.

Reference
ProjectLeonida/mandy!999
No description provided.