run_wine_tests: retain all results for duplicate names (WINE-DUPLICATE-TEST-NAMES) #999
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!999
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/wine-duplicate-test-names"
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 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
--requirecheck. 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-keyedresultsmap is gone entirely:report()no longer fills it, and the Markdown rows follow the dependencyorderrather thanresults_by_index, which--jobsfills in completion order.Tested
Head
59a51c2c, rebased onmaine18b59a5, same patch as1d6ae8f4(git range-diff); it merges cleanly withmain747809e7. Windows 11, Python 3.12.4:python -I -B tests/test_run_wine_tests.py, three runs: 73 run, 12 skipped, errors only intest_jobs_keeps_locks_serial_tests_and_dependencies(three runs) andtest_jobs_runs_that_many_tests_at_a_time(two).maine18b59a5alone: both in two runs of three. With these tests on the runner ofmaine48ff037,test_required_name_checks_every_result_with_that_namefails.tests/test_docs_cli_flags.py,tests/test_text_write_line_endings.py,tests/test_ctest_registration.py,tests/test_ci_registration.pyandtests/test_docs_links.py: OK.tests/test_tool_stdout_encoding.pyfails intest_every_main_block_reconfigures_stdout, as onmaine18b59a5alone (three tools this change does not touch).compileall,git diff --checkandpython -I scripts/check_no_game_data.pyon the two files: clean.Earlier head
1d6ae8f4, rebased onmain28a32e19; it merged cleanly withmain22372d86. Windows 11, Python 3.12.4:python -I -B tests/test_run_wine_tests.py: 73 run, 12 skipped, 2 errors, intest_jobs_keeps_locks_serial_tests_and_dependenciesandtest_jobs_runs_that_many_tests_at_a_time. Unmodifiedmain22372d86gives 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.pyandtests/test_text_write_line_endings.py: OK.git diff --checkandpython -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 ase8226ee4, onmain6293c1c4), Windows 11, Python 3.12.4:tests/test_run_wine_tests.py64 run, OK (9 skipped).mainat3ed8e50b, a CTest 4.3.1-msvc1 listing with twoshared_nameentries produced one failure and one pass. With the same listing and a synthetic Wine launcher,--require shared_nameincorrectly returned 0 and counted one pass. The focused regression failed on the same exit-code mismatch.e8226ee4:python -I -B tests/test_run_wine_tests.pyon Windows, Python 3.12.4, 55 passed and 9 POSIX-only skips;python3 -I -B tests/test_run_wine_tests.pyon 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
28a32e19ande18b59a5with Claude Code).Checklist
mainand merges cleanly.Verified on exact head e8226ee49c2701aa91f988ba10fed9ccd54a937b. I ran
python3 -I -B tests/test_run_wine_tests.py(64/64 passed),scripts/check_no_game_data.pyfor both changed files, andgit diff --checkagainst origin/main. The new duplicate-name regression reproduces two entries namedshared, one failing and one passing: the summary retains both rows, reports 1 pass and 1 failure, and--require sharedexits nonzero. This validates the aggregation and required-name behavior with synthetic fixtures; I did not run Wine or Windows tests.Rebased on
main6293c1c4:e8226ee4->800898fe, same patch (git range-diff). The previous base failedtests/test_tool_stdout_encoding.py, which #948 fixed onmain, and the earlier CI run never started (action_required).tests/test_run_wine_tests.py64 run, OK (9 skipped);test_tool_stdout_encoding.py,test_docs_cli_flags.pyandtest_text_write_line_endings.pyOK;git diff --checkand the no-game-data check clean.e8226ee4.No code change in this rebase. CI on the new head is still queued.
AI-assisted: yes (Claude Code).
Rebased on
main28a32e19, where #1354 (--jobs) conflicted:800898fe->1d6ae8f4. It also merges cleanly withmain22372d86.The patch changed:
report()no longer fills the name-keyedresultsmap, which is gone, and the Markdown rows follow the dependencyorder, because--jobsfillsresults_by_indexin completion order. KernelSmoker's approval was one8226ee4, before this and the previous rebase.Windows 11, Python 3.12.4:
tests/test_run_wine_tests.py73 run, 12 skipped, 2 errors intest_jobs_keeps_locks_serial_tests_and_dependenciesandtest_jobs_runs_that_many_tests_at_a_time. Unmodifiedmain22372d86has 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 --checkand the no-game-data check pass.Rebased from
1d6ae8f4to59a51c2conmaine18b59a5, same patch (git range-diff). The old base was whytest_ci_registration.pyfailed in this pull request's CI (test_sub_co_same_operand.py); it passes on the new base. KernelSmoker's approval was given on800898fe, not on this head.Windows 11, Python 3.12.4:
test_run_wine_tests.py73 run, 12 skipped, errors only in the twotest_jobs_*cases, whichmaine18b59a5alone gives too (both in two of three runs);test_ci_registration.py16,test_ctest_registration.py5,test_docs_links.py16,test_docs_cli_flags.pyandtest_text_write_line_endings.pypass. Not from this change:test_tool_stdout_encoding.pyfails onmainalone as well, the twocs_dpp_cmp.asmcases of the old CI run are unchanged onmain(not run here: nollvm-mc), andvk_xdxr_postbuild_readbackstill returns 77 withoutSKIP_RETURN_CODEonmain(#1418).AI-assisted: yes (Claude Code)
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.txton Windows 11, Python 3.12 (venv). AI-assisted (Claude Code, Claude Opus 5.5).order, and an exception exits before the summary. Counts now include duplicate test names, as the docstring says.Merged into
main(merge commit 89ee135fe), approved by DadaCap (maintainer). Thanks!Checked before merging:
test_run_wine_tests.pyfails 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.