mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:10:51 +01:00
[PR #1722] tests/run_wine_tests: one timing log per child, so --jobs tests pass on Windows (TEST-WINE-JOBS-TIMING-WINDOWS) #1737
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1737
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1722
Author: @kurrutako
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:test/wine-jobs-timing-windows📝 Commits (1)
67b81fetests/run_wine_tests: one timing log per child, so --jobs tests pass on Windows (TEST-WINE-JOBS-TIMING-WINDOWS)📊 Changes
1 file changed (+10 additions, -5 deletions)
View changed files
📝
tests/test_run_wine_tests.py(+10 -5)📄 Description
Claimed in the coordination issue as: TEST-WINE-JOBS-TIMING-WINDOWS (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7158675336)
What and why
On native Windows,
test_jobs_runs_that_many_tests_at_a_timeandtest_jobs_keeps_locks_serial_tests_and_dependenciesin
tests/test_run_wine_tests.pyfail on every run, withIndexError(a span with no end) orValueError(two linesmerged into one) in
intervals().The
timed()child processes all append to one sharedtiming.logat the same time. Appends from several processesto one file are not atomic on Windows, so lines are lost or merged. Reproduced outside the test: six processes doing
the same two appends to one file left 11 lines instead of 12.
The fix is in the test only: each child writes its own
timing/<name>.log, andintervals()reads them all.scripts/run_wine_tests.pyis unchanged.Tested
Windows 11, Python 3.14, on
main3de22a1:python -I tests/test_run_wine_tests.py: before,FAILED (errors=2, skipped=12)on every run; after,OK (skipped=12)on 4 of 4 runs.python -I tests/test_text_write_line_endings.py: OK.Not run on Linux; the change does not depend on the platform.
GPUs tested: n/a
AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a)🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.