Repository navigation
Reap semantic test children that race cancellation (SEMANTIC-RUNNER-REGISTER-CANCEL) - #2073
alexandersato0830 wants to merge 1 commit into
Conversation
|
Tested on Windows 11, Python 3.12.10, with this PR merged onto current upstream main.
(AI-assisted test run; output checked by hand.) |
|
Thanks for this fix! It passed our maintainer testing (local release candidate, Windows 11: translator and Python suites with no new failure, game runs with no regression), but it now conflicts with To get this merged, a rebase on
Once it's rebased we'll re-run the tests and merge. AI-assisted (Claude Code), posted for DadaCap (maintainer). |
|
Duplicate check (diff reading only, no build): not a duplicate of #2201. This PR closes the race between Ctrl+C cancellation and a worker still inside Suggest keeping both: this one first once rebased ( AI-assisted (Claude Code). |
aslan2142
left a comment
There was a problem hiding this comment.
Reviewed against current main: closing the cancellation/registration race for semantic test children in scripts/run_semantic_tests.py looks solid (and distinct from #2201), but this branch conflicts with main and has no green CI run. Please rebase onto current main so CI runs cleanly.
(AI-assisted review.)
|
Closing this PR because the legacy C++ Vulkan runtime (and legacy Python shader compiler) is now considered deprecated in favor of the new Rust Vulkan runtime (in progress) and the Rust DX12 runtime ( |
Claimed in the coordination issue as: SEMANTIC-RUNNER-REGISTER-CANCEL
What and why
The parallel runner can report cancellation while a worker is between launching its subprocess and registering it. The cancellation snapshot then misses the child. Share a cancellation event with workers and check it before launch and under the registration lock. A late child is terminated and reaped by its worker. The regression holds a real subprocess launch at that boundary with thread events.
Tested
e18b59aprintedinterruptedand returned 130, then the held child reported normal completion. The regression passed with the fix.py -3.14 -I tests/test_run_semantic_tests.pyran 27 cases successfully with the POSIX signal case skipped.test_library_compute_forms.pypassed (12 tests).git merge-treeconfirmed this patch applies alongside Cancel Windows semantic test subprocess trees (SEMANTIC-RUNNER-WINDOWS-CHILD-CANCEL) #2071.git diff --checkand the source-only check.GPUs tested: n/a.
AI-assisted: yes.
main.