ci: fix the three repository checks that fail on main #1673
Closed
leonida/mandy
xel1uz wants to merge 0 commits from
fix/main-consistency-checks into main
pull from: fix/main-consistency-checks
merge into: leonida:main
leonida:main
leonida:github-pr/3295
leonida:beta
leonida:docs/changelog-3483-3500
leonida:github-pr/3294
leonida:github-pr/2975
leonida:github-pr/2815
leonida:feat/gate-driver-start
leonida:feat/skip-pipelines-release
leonida:perf/lazy-compare
leonida:perf/mwaitx-wait
leonida:test/prio-ceiling-main
leonida:fix/ab-cpu-stdout
leonida:fix/gate-old-crashes
leonida:diag/ab-cpu
leonida:test/main-0312
leonida:github-pr/3291
leonida:diag/indirect-clamp-census
leonida:feat/barrier-enhanced
leonida:perf/texture-frame-ceiling
leonida:perf/dstorage-threads
leonida:fix/console-queue-dma-tables
leonida:fix/port-descriptors-record-parts
leonida:fix/frame-waits-fence
leonida:fix/console-sampler-words
leonida:fix/graphics-userdata-spill
leonida:fix/xg-reserved-layout-rotation
leonida:fix/barrier-console-flags
leonida:fix/switches-wait-test-child
leonida:test/list-value-waits
leonida:test/lot-gxdk-0412
leonida:fix/bvh-compacted-size
leonida:docs/i18n-quickstarts
leonida:feat/native-pipeline-slots
leonida:fix/clippy-leonida-gpu
leonida:fix/list-value-producers
leonida:fix/descriptor-page-straddle
leonida:fix/xmem-low-window
leonida:fix/ffx-jitter-never-zero
leonida:fix/run-stdout-closed
leonida:github-pr/2892
leonida:github-pr/2896
leonida:feat/warm-save-every
leonida:github-pr/2980
leonida:github-pr/2994
leonida:github-pr/3005
leonida:github-pr/3010
leonida:github-pr/3136
leonida:github-pr/3303
leonida:github-pr/3220
leonida:github-pr/3143
leonida:github-pr/3330
leonida:github-pr/3226
leonida:github-pr/3187
leonida:carry/3395
leonida:github-pr/2946
leonida:github-pr/2947
leonida:github-pr/2945
leonida:github-pr/2983
leonida:github-pr/3001
leonida:github-pr/3372
leonida:github-pr/3128
leonida:github-pr/3296
leonida:github-pr/2588
leonida:github-pr/3119
leonida:github-pr/3378
leonida:fix/crash-diagnostics
leonida:feat/dlss-mip-bias
leonida:fix/retired-out-of-order
leonida:fix/dxr-postbuild-barrier
leonida:fix/amd-relay-default
leonida:fix/removed-report-wait
leonida:feat/heap-twin
leonida:feat/vram-margin
leonida:github-pr/2472
leonida:github-pr/3123
leonida:github-pr/3088
leonida:assets/annonce-v1
leonida:github-pr/2794
leonida:github-pr/3300
leonida:github-pr/3304
leonida:github-pr/3308
leonida:github-pr/3367
leonida:github-pr/3369
leonida:fix/launcher-dlss-diagnostics
leonida:github-pr/3269
leonida:github-pr/2957
leonida:github-pr/3205
leonida:fix/crash-zero-guard
leonida:github-pr/3185
leonida:github-pr/3099
leonida:github-pr/3104
leonida:github-pr/3348
leonida:github-pr/3379
leonida:github-pr/3377
leonida:perf/darner-title-priority-ceiling
leonida:github-pr/3376
leonida:gh-readonly-queue/main/pr-3311-b5c45b663dbc5a9c3532bb3f307e5f81b32faefa
leonida:gh-readonly-queue/main/pr-3088-af22e7847ff5808f72d1a1881c24be2fafd20b54
leonida:gh-readonly-queue/main/pr-3123-7f3fa026a94c6646e89244f28e1ce22290361867
leonida:github-pr/3373
leonida:github-pr/3368
leonida:github-pr/3198
leonida:gh-readonly-queue/main/pr-3354-637baa0b77ba47222e7280b17c1a59c6a1781d57
leonida:gh-readonly-queue/main/pr-3365-d7a0e0196a43834813014b4bd3aa5502a8263b14
leonida:gh-readonly-queue/main/pr-3361-5dfe8bbd05ed12fb2f2e1718d9af77a7c5f46fd8
leonida:gh-readonly-queue/main/pr-3366-8da9148204e9d12c585efa9ac2b7cc1ab08c7682
leonida:github-pr/3346
leonida:github-pr/3375
leonida:github-pr/2958
leonida:github-pr/3151
leonida:github-pr/3307
leonida:github-pr/3278
leonida:github-pr/3374
leonida:fix/runtime-test-conservative-fixtures
leonida:github-pr/3366
leonida:ci/shard-semantic-linux
leonida:github-pr/3354
leonida:docs/fg-limit-fps-switch
leonida:github-pr/3365
leonida:fix/read-file-hard-link
leonida:github-pr/3364
leonida:fix/book-slot-heap-never-read
leonida:github-pr/3361
leonida:github-pr/3263
leonida:github-pr/3360
leonida:github-pr/3353
leonida:github-pr/3331
leonida:fix/alias-later-queued-submissions
leonida:github-pr/3352
leonida:github-pr/3228
leonida:github-pr/3349
leonida:claude/gallant-sagan-aamatr
leonida:github-pr/3200
leonida:github-pr/3132
leonida:github-pr/3323
leonida:github-pr/3332
leonida:github-pr/3340
leonida:github-pr/3311
leonida:github-pr/3334
leonida:github-pr/3297
leonida:github-pr/3256
leonida:github-pr/2567
leonida:github-pr/2851
leonida:d3d12/agility-sdk-621
leonida:github-pr/3164
leonida:github-pr/3114
leonida:github-pr/3050
leonida:github-pr/3113
leonida:github-pr/3326
leonida:github-pr/3144
leonida:github-pr/2642
leonida:github-pr/3072
leonida:github-pr/2789
leonida:github-pr/2643
leonida:github-pr/3009
leonida:github-pr/3035
leonida:github-pr/3031
leonida:github-pr/2686
leonida:github-pr/2834
leonida:github-pr/3321
leonida:github-pr/3325
leonida:github-pr/3290
leonida:github-pr/3324
leonida:github-pr/3130
leonida:claude/fervent-curie-m19lnr
leonida:github-pr/3309
leonida:github-pr/3305
leonida:github-pr/3306
leonida:github-pr/3302
leonida:github-pr/3301
leonida:github-pr/3345
leonida:github-pr/3211
leonida:github-pr/3027
leonida:github-pr/3286
leonida:github-pr/3235
leonida:github-pr/3265
leonida:github-pr/3275
leonida:codex/skip-no-hit-ray-passes
leonida:github-pr/2823
leonida:github-pr/2911
leonida:github-pr/3262
leonida:github-pr/3125
leonida:github-pr/3206
leonida:github-pr/3250
leonida:github-pr/3238
leonida:github-pr/3188
leonida:github-pr/2952
leonida:github-pr/3217
leonida:github-pr/3168
leonida:t3/preserve-fsr-sdk-restart-path
leonida:t3/propagate-host-failure-hresult
leonida:github-pr/3209
leonida:t3/launcher-custom-parameters
leonida:github-pr/3207
leonida:github-pr/3183
leonida:github-pr/3160
leonida:github-pr/3201
leonida:ci/less-to-run
leonida:github-pr/2930
leonida:github-pr/2797
leonida:github-pr/2999
leonida:perf/native-compute-shader-forms
leonida:github-pr/3191
leonida:github-pr/3011
leonida:github-pr/3019
leonida:github-pr/2996
leonida:gh-readonly-queue/main/pr-2789-45dc41f95c1cd0dcc29c2c50582e0e9af8a77259
leonida:claude/blissful-franklin-ukp7ag
leonida:github-pr/3141
leonida:github-pr/3156
leonida:github-pr/3150
leonida:github-pr/3153
leonida:github-pr/3163
leonida:github-pr/3142
leonida:github-pr/3139
leonida:github-pr/2841
leonida:github-pr/3069
leonida:github-pr/3098
leonida:github-pr/3107
leonida:github-pr/3071
leonida:github-pr/2774
leonida:github-pr/2889
leonida:github-pr/3075
leonida:github-pr/2661
leonida:github-pr/3064
leonida:github-pr/3054
leonida:github-pr/3049
leonida:github-pr/2855
leonida:github-pr/2943
leonida:github-pr/3016
leonida:github-pr/2887
leonida:github-pr/3006
leonida:github-pr/3003
leonida:github-pr/2993
leonida:notes/card-time-and-plant-flicker
leonida:github-pr/2989
leonida:feat/vulkan-rs
leonida:github-pr/2985
leonida:github-pr/2951
leonida:github-pr/2982
leonida:github-pr/752
leonida:github-pr/792
leonida:github-pr/2877
leonida:github-pr/2654
leonida:github-pr/2893
leonida:github-pr/2948
leonida:github-pr/2944
leonida:github-pr/2919
leonida:github-pr/2915
leonida:archive/ci/less-to-run/20261202T1121Z
leonida:github-pr/2800
leonida:github-pr/2822
leonida:github-pr/2833
leonida:github-pr/2840
leonida:github-pr/2831
leonida:github-pr/2832
leonida:github-pr/2801
leonida:github-pr/2890
leonida:github-pr/2891
leonida:github-pr/2664
leonida:github-pr/2807
leonida:rt-call-trace
leonida:github-pr/2755
leonida:perf/ahead-split
leonida:github-pr/2587
leonida:github-pr/2698
leonida:github-pr/2609
leonida:github-pr/3219
leonida:docs/readme-runtime-proposal
leonida:github-pr/2017
leonida:github-pr/1741
leonida:github-pr/1667
leonida:codex/coord-claim-check-20261124-7e48
No reviewers
Assignees
Clear assignees
No assignees
Labels
Clear labels
bug
Something isn't working
dependencies
Pull requests that update a dependency file
documentation
Improvements or additions to documentation
enhancement
New feature or request
missing claim
Needs a claim in #14
needs rebase
Conflicts with the base branch: rebase it on main
needs-triage
Needs maintainer evaluation before the next triage state
question
Further information is requested
ready-for-agent
Fully specified and ready for an AFK agent
submodules
Pull requests that update submodules code
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
Projects
Clear projects
No items
No project
Milestone
Clear milestone
No items
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Reference
leonida/mandy!1673
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/main-consistency-checks"
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 closed
This pull request cannot be reopened because the branch was deleted.
Item ID:
CI-MAIN-CONSISTENCY, claimed in #1608 (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7159480485, done: https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7159487506). 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(42537e7b) 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 42537e7b. 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(42537e7b) and merges cleanly.docs/design.md- not applicable, no translator change.🤖 Generated with Claude Code
Independent verification — reproduced all three failures on current
origin/main(3f81d46ac) then confirmed fixed on this head:test_runner_calls_all_tests.pyFAILED on main (deadtest_out_named_like_the_optional_spirv_index— globals()-comprehension dispatch not recognised) → 4/4 pass on PR.test_runtime_paths.pyFAILED on main (tools/conformance/**missing from workflow path filters) → 5/5 pass on PR.test_tool_stdout_encoding.pyFAILED on main (compute_heap_layout_census.pylacked the stdout guard) → 4/4 pass on PR;test_feature_scan.pyalso OK.So main's consistency checks were genuinely red and this fixes all three. AI-assisted verification.
Independently reproduced both sides on current
main(Windows 11, python 3.14.9,python -I, CPU only).Repro at current main
3f81d46ac(the claim cites42537e7b; all three failures still measure red at the newer head, so the fix is still current):tests/test_runner_calls_all_tests.py: 3 tests, 1 FAILURE — exactlytests/test_feature_scan.py: test_out_named_like_the_optional_spirv_index()reported dead.tests/test_runtime_paths.py: 5 tests, 1 FAILURE —tools/conformance/**: missing (named in runtime/CMakeLists.txt).tests/test_tool_stdout_encoding.py: 4 tests, 1 FAILURE —compute_heap_layout_census.pyin the no-errors='replace'list.At the PR diff (head
262c104e8, applied withgit applyonto the fresh clone — applies with zero conflicts): all three files green. Test-count delta is real, not a swap:test_runner_calls_all_tests.pygoes 3 tests FAILED -> 4 tests OK (the newtest_a_globals_comprehension_dispatches_every_testexecutes and passes); the other two stay 5 OK and 4 OK as claimed.Notes:
262c104e8yet ("no checks reported"), so CI here is unmeasured rather than green; the local run above is the ground truth.dispatches_tests()comprehension rule matches only a bare loop-nameelt; a runner wrapping the function in a call inside the comprehension still falls back toRUNNER_SKIPS. That direction is safe — the checker only ever errs toward more skips, never toward hiding a dead test.gh pr list --search test_runner_calls_all_testsandCI-MAIN-CONSISTENCYreturn no other open PRs.Verdict: the fix does what it claims on current
main; ready from my side.Tested on Windows 11, Python 3.12.10: merged 262c104e8 onto main at 71a769d7d.
python -I tests/test_runner_calls_all_tests.py: OK (fails on main)python -I tests/test_runtime_paths.py: OK (fails on main)python -I tests/test_tool_stdout_encoding.py: still FAILED, with 2 tools left:['tools/game_run_summary.py', 'tools/stage_timeline.py']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
262c104e8:test_runner_calls_all_tests.py,test_tool_stdout_encoding.pyandtest_runtime_paths.pyall fail onmainand pass here;test_feature_scan.pystill passes. Note that #1561 (runner check + census stdout) and #1657 (runtime.yml path) overlap this one, so only one of them should land.Native Windows 10 Pro 19045, CPython 3.12,
py -3.12 -I, checkout under a non-ASCII profile path (C:\Users\Oğuz\..., TEMP is the 8.3 aliasC:\Users\OUZ~1\...). No game files.AI-assisted (Claude Code).
Thanks for this! Closing as a duplicate of #1561, which is merged as
f1afede5e.tools/conformance/**path filter inruntime.ymlwas whattest_runtime_pathsneeded. It's in #1561, credited to you.RUNNER_SKIPSentry) isn't carried over. It's welcome as its own PR.AI-assisted (Claude Code, Claude Opus 5.5).