fix(tools): report pipelines skipped by size as not checked, and record the final count #77

Manually merged
github merged 1 commit from gh-pr/77/head into gh-pr/77/base 2026-11-26 19:18:00 +00:00
Owner

@⁠Dark3581 on GitHub · 2026-11-23 07:17 UTC · original
Dark3581:fix/pipeline-size-skip-summary → main · +41 −6 · 3 files · 1 commits · merged 2026-11-23 07:20 UTC

What

The full pipeline check of one title's 26,503 shaders finished. This PR records the result and fixes how the chunked check (#41) reported modules skipped by size.

The bug. A module over --pipeline-max-bytes is reported by the checker as BIG SKIP, and the chunk's exit code is 0. build_shaders.py didn't count those as skipped. It marked the chunk holding one as failed and summarized the run as:

build_shaders: pipelines 26501 ok, 0 failed, 0 skipped; modules 0 failed; 2 of 54 chunks failed
build_shaders: the pipeline check did not pass

That reads as if two chunks broke.

Now:

  • A chunk counts as failed only for failed pipelines or modules, a non-zero exit or an incomplete log.
  • Size skips appear on the chunk line (, 1 over the size limit) and in the summary, with each module named.
  • When size skips are the only problem, the error says the check is incomplete, not failed.
  • The check still doesn't pass while any module goes unchecked, as the option's help already says.

On the finished run:

build_shaders: pipelines 26501 ok, 0 failed, 0 skipped, 2 not checked (over the size limit); modules 0 failed; 0 of 54 chunks failed
build_shaders:   not checked: Jindirect_diffuse_lighting_CS_ScreenProbes_ActivateProbes_9083c094_Wrapped
build_shaders:   not checked: Pindirect_diffuse_lighting_CS_ScreenProbes_ActivateProbesTarget_534f271f_Wrapped
build_shaders: the pipeline check is incomplete: 2 modules over --pipeline-max-bytes were not checked; ...

README. The "Every pipeline created by the driver" row gives the final count: 26,501 of 26,503 created (9,282 mesh, 12,101 pixel, 2,687 compute, 2,236 vertex and 195 geometry shaders), none failed. The 2 compute modules of 43 MiB each (about 75 GB to compile, more than this PC can commit) were not checked. The row is marked ⚠️, not ✅, for those two.

Tested

  • New test_size_skips_leave_the_check_incomplete_not_failed: a fake checker reports one BIG SKIP. The chunk line shows 1 over the size limit; exit 0 without FAILED, the summary shows 1 not checked and 0 of 1 chunks failed and names the module, and the run exits 1 with "is incomplete", not "did not pass". The existing test for a real pipeline failure still gets "did not pass". 16 of 16 build tool tests pass.
  • Re-summarized the real run from its 54 chunk logs with the fixed tool; output above.
  • python tools/readme_docs.py --check and python tools/check_conventions.py: ok.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • python tools/check_conventions.py passes (no comments in code, one declaration per export, Conventional Commit subjects)
  • Unimplemented paths stop (AbxNotImplemented / AbxUnsupported); silent stubs are listed under Silent stubs through a debt fragment
  • Known gaps added, changed or removed through docs/dev/debt/changes/<branch>.md
  • Generic behaviour, not specific to one title
  • No game files, keys, notes or logs added to the repository
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • Source of behaviour: n/a
  • AI-assisted: yes
**@⁠Dark3581** on GitHub · 2026-11-23 07:17 UTC · [original](https://github.com/Dark3581/AnyBox/pull/77) `Dark3581:fix/pipeline-size-skip-summary` → `main` · +41 −6 · 3 files · 1 commits · merged 2026-11-23 07:20 UTC ### What The full pipeline check of one title's 26,503 shaders finished. This PR records the result and fixes how the chunked check (#41) reported modules skipped by size. **The bug.** A module over `--pipeline-max-bytes` is reported by the checker as `BIG SKIP`, and the chunk's exit code is 0. `build_shaders.py` didn't count those as skipped. It marked the chunk holding one as failed and summarized the run as: ``` build_shaders: pipelines 26501 ok, 0 failed, 0 skipped; modules 0 failed; 2 of 54 chunks failed build_shaders: the pipeline check did not pass ``` That reads as if two chunks broke. **Now:** - A chunk counts as failed only for failed pipelines or modules, a non-zero exit or an incomplete log. - Size skips appear on the chunk line (`, 1 over the size limit`) and in the summary, with each module named. - When size skips are the only problem, the error says the check is **incomplete**, not failed. - The check still doesn't pass while any module goes unchecked, as the option's help already says. On the finished run: ``` build_shaders: pipelines 26501 ok, 0 failed, 0 skipped, 2 not checked (over the size limit); modules 0 failed; 0 of 54 chunks failed build_shaders: not checked: Jindirect_diffuse_lighting_CS_ScreenProbes_ActivateProbes_9083c094_Wrapped build_shaders: not checked: Pindirect_diffuse_lighting_CS_ScreenProbes_ActivateProbesTarget_534f271f_Wrapped build_shaders: the pipeline check is incomplete: 2 modules over --pipeline-max-bytes were not checked; ... ``` **README.** The "Every pipeline created by the driver" row gives the final count: 26,501 of 26,503 created (9,282 mesh, 12,101 pixel, 2,687 compute, 2,236 vertex and 195 geometry shaders), none failed. The 2 compute modules of 43 MiB each (about 75 GB to compile, more than this PC can commit) were not checked. The row is marked ⚠️, not ✅, for those two. ### Tested - New `test_size_skips_leave_the_check_incomplete_not_failed`: a fake checker reports one `BIG SKIP`. The chunk line shows `1 over the size limit; exit 0` without `FAILED`, the summary shows `1 not checked` and `0 of 1 chunks failed` and names the module, and the run exits 1 with "is incomplete", not "did not pass". The existing test for a real pipeline failure still gets "did not pass". 16 of 16 build tool tests pass. - Re-summarized the real run from its 54 chunk logs with the fixed tool; output above. - `python tools/readme_docs.py --check` and `python tools/check_conventions.py`: ok. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] `python tools/check_conventions.py` passes (no comments in code, one declaration per export, Conventional Commit subjects) - [x] Unimplemented paths stop (`AbxNotImplemented` / `AbxUnsupported`); silent stubs are listed under Silent stubs through a debt fragment - [x] Known gaps added, changed or removed through `docs/dev/debt/changes/<branch>.md` - [x] Generic behaviour, not specific to one title - [x] No game files, keys, notes or logs added to the repository - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] Source of behaviour: n/a - [x] AI-assisted: yes
Chunks holding a module over --pipeline-max-bytes were marked failed although they exited 0; they now count it as not checked, name it, and report the run as incomplete rather than failed. The README gives the finished check: 26,501 of 26,503 pipelines created, none failed, 2 not checked.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 19:17:58 +00:00
github manually merged commit ec34a0a521 into gh-pr/77/base 2026-11-26 19:18:00 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.