fix(tools): run the pipeline check in chunks and report oversized modules #41
No reviewers
Labels
No labels
accessibility
bug
ci
docs
documentation
duplicate
enhancement
fixes issue
good first issue
help wanted
invalid
library request
libs
needs rebase
question
relinker
stale
tools
unblocks title
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Dark3581--AnyBox!41
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/41/head"
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?
@Dark3581 on GitHub · 2026-11-22 20:11 UTC · original
Dark3581:fix/chunked-pipeline-check→main· +201 −29 · 5 files · 2 commits · merged 2026-11-22 20:13 UTCWhat
The GPU driver's compiler keeps the memory it used until the process exits, so one pipeline checker process over a whole shader set grew until it crashed with an access violation hours in.
tools/build_shaders.pynow runs the checker once per chunk of index entries (--start/--count), the way the translator's own notes recommend:--pipeline-chunk N(default 500,ANYBOX_PIPELINE_CHUNKin CMake;0runs one process). Every chunk seeds from and saves to the same pipeline cache.build.jsonrecords every chunk, and for a failed one its exit code and the last compile the checker named as still running.--recheckchecks them all again. Logs are one file per chunk inshaders/pipelines/.--pipeline-max-bytes N(ANYBOX_PIPELINE_MAX_BYTES) passes the checker's--max-bytes: larger modules are reported asBIG SKIPby name instead of compiled, so a module that needs more memory than the PC can commit no longer takes the rest of its chunk down. The check still fails while anything is skipped.shaders_pipelinespasses only when every entry was covered and every chunk completed.Tested
Windows 10, MinGW build, RTX 3070 Ti (driver 621.14), 31.8 GB RAM.
tools/tests: 80 tests pass, including new ones for chunk ranges, combining chunks, a crashed chunk (others still run, culprit named), reuse,--recheck, a changed checker, and the size limit.ctest: 60 of 60 pass.python tools/check_conventions.py: ok.Checklist
main; no other open PR implements the same functionspython tools/check_conventions.pypasses (no comments in code, one declaration per export, Conventional Commit subjects)AbxNotImplemented/AbxUnsupported); silent stubs are listed under Silent stubs through a debt fragmentdocs/dev/debt/changes/<branch>.md(none: build tooling only)--start,--countand--max-bytesoptions and its documented chunked runs