Repository navigation
Conversation
- test_runner_calls_all_tests: follow a comprehension over globals() that hands each test to a call, so tests/test_feature_scan.py's run_tests([...]) runner counts as dispatching every test. Its hand-kept RUNNER_SKIPS list goes away; test_out_named_like_the_optional_spirv_index() was missing from it and failed the check on main. Adds a bite check for the comprehension. - runtime.yml: list tools/conformance/** in both path filters, as runtime/CMakeLists.txt builds from tools/conformance/native/src. - compute_heap_layout_census.py: set errors="replace" on stdout at the top of its __main__ block like every other CLI tool. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Independent verification — reproduced all three failures on current
So main's consistency checks were genuinely red and this fixes all three. AI-assisted verification. |
|
Independently reproduced both sides on current Repro at current main
At the PR diff (head Notes:
Verdict: the fix does what it claims on current |
|
Tested on Windows 11, Python 3.12.10: merged 262c104 onto main at 71a769d.
Both tools landed after this PR was opened. #1837 (game_run_summary) and #1789 (stage_timeline) add the stdout guard to them. So the third check goes green only once those are merged, or this PR can cover them too. (AI-assisted test run; output checked by hand.) |
|
Verified on native Windows at head Native Windows 10 Pro 19045, CPython 3.12, AI-assisted (Claude Code). |
…jectLeonida#1561 review) - test_tool_stdout_encoding: three scripts merged since this PR opened (check_compute_journal_overlay.py and compute_workers_win.py with ProjectLeonida#2098, corpus_watch.py with ProjectLeonida#817) get the same stdout guard as the tools here. - test_runtime_paths: the runtime workflow's two path filters now include tools/conformance/**, which runtime/CMakeLists.txt names. The change is ProjectLeonida#1673's (xel1uz), carried here since ProjectLeonida#1673 duplicates this PR. With it, test_tool_stdout_encoding, test_runner_calls_all_tests and test_runtime_paths all pass on main. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks for this! Closing as a duplicate of #1561, which is merged as
AI-assisted (Claude Code, Claude Opus 5.5). |
Item ID:
CI-MAIN-CONSISTENCY, claimed in #1608 (#1608 (comment), done: #1608 (comment)). I posted the claim there after opening this PR, because I missed that #1608 had replaced the capped #14.Claimed as:
CI-MAIN-CONSISTENCY- the standard-library job fails onmain(42537e7) for three reasons that have nothing to do with any open PR, so every fork that syncsmainand every PR built on it inherits a red CI.What and why
Three repository-consistency tests fail on
mainat 42537e7. They depend on no platform, GPU or Python version:tests/test_runner_calls_all_tests.pyreportstests/test_feature_scan.py: test_out_named_like_the_optional_spirv_index()as a dead test. It is not dead: that file's__main__runner passes everytest_*torun_tests([fn for name, fn in list(globals().items()) ...]). The checker only followedforloops overglobals(), sotest_feature_scan.pykept a hand-writtenRUNNER_SKIPSlist of each test, and the newest test was never added to it. Any new test in that file would breakmainthe same way.Fix:
dispatches_tests()now also accepts a list, set or generator comprehension overglobals()/locals()/vars()that yields the loop variable straight into a call. Thetest_feature_scan.pyentry inRUNNER_SKIPSis removed. A new bite check confirms that the runner counts as dispatching, and that the same comprehension over a fixed table still reports what it misses. The existingtest_a_dropped_call_is_flaggedbite check is unchanged and passes.tests/test_runtime_paths.py:runtime/CMakeLists.txtbuilds fromtools/conformance/native/src(L2089-2091), but.github/workflows/runtime.ymldoes not listtools/conformance/**.tools/conformance/**is now added to both thepushandpull_requestpath filters, in alphabetical order, so the two lists stay identical.tests/test_tool_stdout_encoding.py:tools/compute_heap_layout_census.pywas the one CLI tool whose__main__block did not start withsys.stdout.reconfigure(errors="replace"). It now has the same guard astools/ab_control_flow.pyand the rest.Tested
python -I tests/test_runner_calls_all_tests.pyfails (1 failure).test_runtime_paths.pyandtest_tool_stdout_encoding.pyeach fail with the messages above.python -I tests/test_runner_calls_all_tests.pygives 4 tests OK,python -I tests/test_runtime_paths.pygives 5 OK, andpython -I tests/test_tool_stdout_encoding.pygives 4 OK.python -I tests/test_feature_scan.py: OK (0 failed checks, 0 failed tests).python -I tools/compute_heap_layout_census.py --helpprints its usage.git diff --checkis clean.python3 -I scripts/check_no_game_data.pyon the changed files is clean.This does not touch the GPU jobs. The
cs_imgatomic_extfailure on MoltenVK in Runtime is a separate issue.GPUs tested: n/a - repository checks only.
AI-assisted: Yes.
Checklist
main(42537e7) and merges cleanly.docs/design.md- not applicable, no translator change.🤖 Generated with Claude Code