test: the checks that fail on main pass again, and two dev tool bugs they caught #2311

Merged
HumanBean merged 4 commits from pepe999/Longshot:test/main-checks-again into main 2026-11-23 19:54:33 +00:00
Contributor

Summary

Several checks fail on main @ 753fb5af. Guide screenshots runs on every push and pull request, so each one inherits its failure. The Python ones run by hand only for now (ci.yml, workflow_dispatch), so nothing shows them failing, and each pull request's author has to find out that they fail on main too. This fixes the causes; the review order is the commits'.

  • Guide screenshots (red on main's last pushes): device_policy.h (#2227, #2228) and vk_api.h (#2275) changed since the Graphics image was reviewed. Reviewed as the guide's README says: no file of the menu names what changed, so the image is kept. gpu_arch.h, which device_policy.h now includes, joins the reviewed sources. No new capture.
  • test_pipeline_state_computes: it counted two computes_plan(precompile_computes_which(), ...) calls; #2193 added a third, rightly. It now reads every call's first argument, so another right call passes, and a wrong one anywhere fails, also in compute_warm_plan, which the count did not see.
  • test_dev_packs, a dev tool bug: nx2/build.py imports chunks.py for its cut (#1431), and packs.build_scripts followed the imports inside chunks.py's other functions to oot_patches.py. A pack of a game patch was taken as a build script change (both modules built and kept), and the check stopped there, its later checks not run. Of the modules build.py imports, only what they import at their top counts now.
  • test_mise_build, a dev tool bug: with mise 2026.11, a task's arguments go at the end of its text and "$@" is empty before that, so mise run build --work X passed the development folder's --work as well. The task is now one command with the arguments last, right either way.
  • test_builtin_compute_unoptimized (g++): it read its results and made them in one call's arguments, in an order the compiler chooses. The renderer's code is not at fault.
  • test_saveload_warm_cache (clang 23, the build tools' own): three counters nothing reads, under -Werror.

Testing

Tested: Linux, no game run (nothing the game runs changes).

  • scripts/check_guide_screenshots.py --review-sources, tests/test_guide_screenshots.py and tests/test_launcher_capture.py, the Guide screenshots job's three steps: the first fails on main, all pass here. The revision formula was checked to give the previous review's hash first.
  • tests/run_all.py --strict, what mise run test runs, in a container as ci.yml sets its job up (Ubuntu 24.04, clang 18.1.3, g++ 13.3, glslang 16.6.0, spirv-val, .NET 8; no network): 937 passed, 2 failed (test_dev_packs, test_pipeline_state_computes), 18 skipped on main; 939 passed, 0 failed, 18 skipped here.
  • The whole suite on this PC (not --strict), at 753fb5af and here:
    • clang 23: 912 passed, 6 failed, 39 skipped on main; 916, 2, 39 here. The 2 (test_audio_source, test_obj_cache_size) need a sanitizer library this toolchain lacks.
    • g++: 9 of them fail on main, 5 here: test_audio_source (the same), nx2/test_mesh_first_types, test_link_skip and test_thinlto_tls (they need clang or lld on the PATH), and test_image_view_retry (g++'s -Wextra on a line of vk_texture.cpp: not changed here).
  • What they still catch: four wrong compute plans (one written as a new call, one in compute_warm_plan) each fail test_pipeline_state_computes; following every import, or none inside build.py's functions, fails test_dev_packs.
  • The mise task with mise 2026.11.10, and its text run with the arguments passed to it, as an older mise would.

Still to test:

  • An older mise: mise run build --work X reaches make_game.py with that --work alone (by hand)
  • The Python source checks job, run by hand on this head, and the Website job (this PC has no node), expecting none of the checks above to fail (by hand)

Measurements

Nothing to measure: checks, docs and dev tools only; the game, its build and its caches are unchanged.

Risks

A module build.py imports that came to import, inside a function build.py calls, another of nx2/'s would not count as a build script in a pack; none does now (the four modules this leaves out are oot_patches, poll, unpack and zbic, used by the lift and the .nup's reading). A revert is enough. Players notice nothing.

Checklist

Ready for review

  • One topic, on current main; the title is a Conventional Commit.
  • Tested on my own PC, in the game for a change the game runs, as Testing says.
  • mise run test passes (any failure that also fails on main is named).
  • Measured against main, or Measurements says why there is nothing to measure.
  • No game files, build output or hand-edited generated files; third_party/ untouched; nothing GPL-incompatible.

When it applies

  • A check under tests/ that reads changed source is updated, not weakened.
  • Docs updated.
  • AI assistance recorded with Assisted-by: / Co-Authored-By: trailers.

Ready to merge

  • Everything in Still to test has run, its results in Tested.
  • Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers").
  • Approved in review, every comment answered.
  • CI passes on the head; on current main, measured again or a comment says why the numbers still hold.

🤖 Generated with Claude Code

## Summary Several checks fail on `main` @ 753fb5af. Guide screenshots runs on every push and pull request, so each one inherits its failure. The Python ones run by hand only for now (`ci.yml`, `workflow_dispatch`), so nothing shows them failing, and each pull request's author has to find out that they fail on `main` too. This fixes the causes; the review order is the commits'. - **Guide screenshots** (red on `main`'s last pushes): `device_policy.h` (#2227, #2228) and `vk_api.h` (#2275) changed since the Graphics image was reviewed. Reviewed as the guide's README says: no file of the menu names what changed, so the image is kept. `gpu_arch.h`, which `device_policy.h` now includes, joins the reviewed sources. No new capture. - **test_pipeline_state_computes**: it counted two `computes_plan(precompile_computes_which(), ...)` calls; #2193 added a third, rightly. It now reads every call's first argument, so another right call passes, and a wrong one anywhere fails, also in `compute_warm_plan`, which the count did not see. - **test_dev_packs, a dev tool bug**: `nx2/build.py` imports `chunks.py` for its cut (#1431), and `packs.build_scripts` followed the imports inside `chunks.py`'s other functions to `oot_patches.py`. A pack of a game patch was taken as a build script change (both modules built and kept), and the check stopped there, its later checks not run. Of the modules `build.py` imports, only what they import at their top counts now. - **test_mise_build, a dev tool bug**: with mise 2026.11, a task's arguments go at the end of its text and `"$@"` is empty before that, so `mise run build --work X` passed the development folder's `--work` as well. The task is now one command with the arguments last, right either way. - **test_builtin_compute_unoptimized** (g++): it read its results and made them in one call's arguments, in an order the compiler chooses. The renderer's code is not at fault. - **test_saveload_warm_cache** (clang 23, the build tools' own): three counters nothing reads, under `-Werror`. ## Testing **Tested:** Linux, no game run (nothing the game runs changes). - `scripts/check_guide_screenshots.py --review-sources`, `tests/test_guide_screenshots.py` and `tests/test_launcher_capture.py`, the Guide screenshots job's three steps: the first fails on `main`, all pass here. The revision formula was checked to give the previous review's hash first. - `tests/run_all.py --strict`, what `mise run test` runs, in a container as `ci.yml` sets its job up (Ubuntu 24.04, clang 18.1.3, g++ 13.3, glslang 16.6.0, spirv-val, .NET 8; no network): 937 passed, 2 failed (test_dev_packs, test_pipeline_state_computes), 18 skipped on `main`; 939 passed, **0 failed**, 18 skipped here. - The whole suite on this PC (not `--strict`), at 753fb5af and here: - clang 23: 912 passed, 6 failed, 39 skipped on `main`; 916, 2, 39 here. The 2 (test_audio_source, test_obj_cache_size) need a sanitizer library this toolchain lacks. - g++: 9 of them fail on `main`, 5 here: test_audio_source (the same), nx2/test_mesh_first_types, test_link_skip and test_thinlto_tls (they need clang or lld on the PATH), and test_image_view_retry (g++'s `-Wextra` on a line of `vk_texture.cpp`: not changed here). - What they still catch: four wrong compute plans (one written as a new call, one in `compute_warm_plan`) each fail test_pipeline_state_computes; following every import, or none inside `build.py`'s functions, fails test_dev_packs. - The mise task with mise 2026.11.10, and its text run with the arguments passed to it, as an older mise would. **Still to test:** - An older mise: `mise run build --work X` reaches make_game.py with that `--work` alone (by hand) - The Python source checks job, run by hand on this head, and the Website job (this PC has no node), expecting none of the checks above to fail (by hand) ## Measurements Nothing to measure: checks, docs and dev tools only; the game, its build and its caches are unchanged. ## Risks A module `build.py` imports that came to import, inside a function `build.py` calls, another of `nx2/`'s would not count as a build script in a pack; none does now (the four modules this leaves out are `oot_patches`, `poll`, `unpack` and `zbic`, used by the lift and the .nup's reading). A revert is enough. Players notice nothing. ## Checklist ### Ready for review - [x] One topic, on current `main`; the title is a Conventional Commit. - [x] Tested on my own PC, in the game for a change the game runs, as Testing says. - [x] `mise run test` passes (any failure that also fails on `main` is named). - [x] Measured against `main`, or Measurements says why there is nothing to measure. - [x] No game files, build output or hand-edited generated files; `third_party/` untouched; nothing GPL-incompatible. ### When it applies - [x] A check under `tests/` that reads changed source is updated, not weakened. - [x] Docs updated. - [x] AI assistance recorded with `Assisted-by:` / `Co-Authored-By:` trailers. ### Ready to merge - [ ] Everything in Still to test has run, its results in Tested. - [ ] Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers"). - [ ] Approved in review, every comment answered. - [ ] CI passes on the head; on current `main`, measured again or a comment says why the numbers still hold. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
device_policy.h (#2227, #2228) and vk_api.h (#2275) changed since the last
review, so the Guide screenshots check failed on main and on every pull
request. No file of the menu names what changed. gpu_arch.h, which
device_policy.h now includes, joins the reviewed sources.

Assisted-by: Claude Code
Co-Authored-By: Claude Opus 5.5 <[email protected]>
build.py imports chunks.py for its cut (#1431), and build_scripts followed
the imports inside chunks.py's other functions too, to oot_patches.py: a
pack of a game patch built and kept both modules, and test_dev_packs stopped
there, its later checks not run. Of the modules build.py imports, only what
they import at their top counts now.

Assisted-by: Claude Code
Co-Authored-By: Claude Opus 5.5 <[email protected]>
mise 2026.11 puts a task's arguments at the end of its text, and "$@" is
empty before that: the development folder's --work went in beside the one
given. The script is now one command with the arguments last.

Assisted-by: Claude Code
Co-Authored-By: Claude Opus 5.5 <[email protected]>
test: the compute plan, built-in compute and warm cache checks pass again
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
PR description / Description follows the template (pull_request_target) Successful in 6s
CI / Conventional Commit title (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been cancelled
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
Guide screenshots / Guide images and local UI source review (pull_request) Has been cancelled
Third-party parts / As their notes say (pull_request) Has been cancelled
Third-party parts / The same as upstream (pull_request) Has been cancelled
Website / Website on Cloudflare (pull_request) Has been cancelled
4289ac3227
The compute plan check counted two calls, and #2193 added a third, as right:
it now reads every call's first argument. The built-in compute check read
its results in an order a compiler may choose, and failed with g++. The warm
cache check's counters that nothing reads failed clang 23's -Werror, the
build tools' own clang.

Assisted-by: Claude Code
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Contributor

Correction to the description as it was first: the Python source checks don't run for pull requests either, only by hand (ci.yml, workflow_dispatch), so a pull request does not inherit those failures in CI. Guide screenshots, which runs on every push and pull request, it does. My message in the room (19:56) says the same wrong thing; the correction follows there when it takes the next post.

Correction to the description as it was first: the Python source checks don't run for pull requests either, only by hand (`ci.yml`, `workflow_dispatch`), so a pull request does not inherit those failures in CI. Guide screenshots, which runs on every push and pull request, it does. My message in the room (19:56) says the same wrong thing; the correction follows there when it takes the next post.
Author
Contributor

tests/run_all.py --strict ran in a container set up as ci.yml's job: main @ 753fb5af 937 passed and 2 failed, this head 939 passed and 0 failed, 18 skipped in both (Windows, a GPU, the dump).

`tests/run_all.py --strict` ran in a container set up as `ci.yml`'s job: `main` @ 753fb5af 937 passed and 2 failed, this head 939 passed and 0 failed, 18 skipped in both (Windows, a GPU, the dump).
pepe999 changed title from WIP: test: the checks that fail on main pass again, and two dev tool bugs they caught to test: the checks that fail on main pass again, and two dev tool bugs they caught 2026-11-22 23:45:48 +00:00
Owner
@rebase
Member

I rebased this pull request onto main (d02cac0fb4): the new head is 40ef30a171.

Conflicts resolved

  • docs/user/images/guide/manifest.json: Retained both branches’ reviewed source hashes, updated the device policy hash, and recomputed the combined revision.

Nothing was built or run: read the resolution before merging.


Automated rebase by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.

I rebased this pull request onto `main` (d02cac0fb432): the new head is 40ef30a1714c. **Conflicts resolved** - docs/user/images/guide/manifest.json: Retained both branches’ reviewed source hashes, updated the device policy hash, and recomputed the combined revision. Nothing was built or run: read the resolution before merging. --- <sub>Automated rebase by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.</sub>
BeanBot force-pushed test/main-checks-again from 4289ac3227
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
PR description / Description follows the template (pull_request_target) Successful in 6s
CI / Conventional Commit title (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been cancelled
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
Guide screenshots / Guide images and local UI source review (pull_request) Has been cancelled
Third-party parts / As their notes say (pull_request) Has been cancelled
Third-party parts / The same as upstream (pull_request) Has been cancelled
Website / Website on Cloudflare (pull_request) Has been cancelled
to 40ef30a171
Some checks failed
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been skipped
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been skipped
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been skipped
Third-party parts / The same as upstream (pull_request) Has been skipped
Website / Website on Cloudflare (pull_request) Has been skipped
PR description / Description follows the template (pull_request_target) Successful in 7s
CI / Conventional Commit title (pull_request) Successful in 7s
CI / Workflow lint (actionlint) (pull_request) Successful in 12s
Guide screenshots / Guide images and local UI source review (pull_request) Failing after 12s
Third-party parts / As their notes say (pull_request) Successful in 14s
CI / Website build and checks (pull_request) Successful in 4m26s
2026-11-23 16:51:42 +00:00
Compare
BeanBot left a comment

Recommendation: Approve. The pull request combines unrelated fixes despite the repository’s one-topic rule. The guide review record also names the wrong revision. Nothing blocking is left. Recommend approval; not approved on the forge.

The change repairs several developer checks, narrows pack build-script classification, fixes build-task argument forwarding, and records a guide image source review. These changes improve developer workflows but do not change the game.

Should fix (1): not blocking, but worth doing before merging.

  • L1: This pull request combines unrelated fixes, contrary to the repository’s one-topic rule. When: The pack import classification and mise argument forwarding fix different developer tools and can be reviewed, reverted, and released independently. Do: Split the unrelated fixes into separate pull requests, with their corresponding tests and descriptions.

Nits (1): optional.

  • L2 docs/user/images/guide/source-review-81e8a6ba.md:21: The review record says the manifest revision starts with 81e8a6ba, but the manifest records 55485e13. (more on the line) Do: Correct the stated revision and the document title or filename if those are intended to identify the same revision.

@fix can do L1 and L2.

Checks: Still running: 6 checks.

More: does it help, other systems, switches, what was read

Does it help: Yes: the author reports the strict suite changing from 937 passed and 2 failed on main to 939 passed and 0 failed on this head, with 18 skipped in both. The author also reports testing the mise task with mise 2026.11.10; an older mise remains untested.

Other systems: Pack classification affects developer runtimes and Test Farm builds: the reviewed imports used by the current build remain included, while lift-only imports are excluded. The mise task affects developers on Windows and Linux; the reported task run was on Linux. No game runtime or GPU code changes.

Switches: None.

Reviewed: 40ef30a171 against d02cac0fb4: Read AGENTS.md, CONTRIBUTING.md, the pull request template, standards, the full diff and commit messages, and the changed code and its relevant callers. Skimmed the guide manifest and guide maintenance documentation. docs/review-checklist.md and the sibling Tooling checkout were absent. Large test fixtures and unrelated portions of the pack tool were skimmed.; nothing run (a code review).

Checked and fine:

  • Each commit records AI assistance.
  • The changed files contain no apparent game-derived output, generated shader changes, renderer API changes, or new game switches.
  • The current build’s imports used by chunks._cut and split_giants remain reachable by pack classification.
  • The compute fixture now obtains the result before reading its output argument.

Testing: No commands from the project or tests were run, as requested. The author reports Linux suite and mise results; the older mise run and listed CI jobs remain outstanding.

Overlaps and merge order: Unknown; the network is closed.


Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, after its rebase. Nothing was run; a maintainer decides.

**Recommendation: Approve.** The pull request combines unrelated fixes despite the repository’s one-topic rule. The guide review record also names the wrong revision. Nothing blocking is left. Recommend approval; not approved on the forge. The change repairs several developer checks, narrows pack build-script classification, fixes build-task argument forwarding, and records a guide image source review. These changes improve developer workflows but do not change the game. **Should fix (1)**: not blocking, but worth doing before merging. - **L1**: This pull request combines unrelated fixes, contrary to the repository’s one-topic rule. *When:* The pack import classification and mise argument forwarding fix different developer tools and can be reviewed, reverted, and released independently. **Do:** Split the unrelated fixes into separate pull requests, with their corresponding tests and descriptions. **Nits (1)**: optional. - **L2** `docs/user/images/guide/source-review-81e8a6ba.md:21`: The review record says the manifest revision starts with 81e8a6ba, but the manifest records 55485e13. (more on the line) **Do:** Correct the stated revision and the document title or filename if those are intended to identify the same revision. `@fix` can do L1 and L2. **Checks:** Still running: 6 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Yes: the author reports the strict suite changing from 937 passed and 2 failed on main to 939 passed and 0 failed on this head, with 18 skipped in both. The author also reports testing the mise task with mise 2026.11.10; an older mise remains untested. **Other systems:** Pack classification affects developer runtimes and Test Farm builds: the reviewed imports used by the current build remain included, while lift-only imports are excluded. The mise task affects developers on Windows and Linux; the reported task run was on Linux. No game runtime or GPU code changes. **Switches:** None. **Reviewed:** 40ef30a1714c against d02cac0fb432: Read AGENTS.md, CONTRIBUTING.md, the pull request template, standards, the full diff and commit messages, and the changed code and its relevant callers. Skimmed the guide manifest and guide maintenance documentation. docs/review-checklist.md and the sibling Tooling checkout were absent. Large test fixtures and unrelated portions of the pack tool were skimmed.; nothing run (a code review). **Checked and fine:** - Each commit records AI assistance. - The changed files contain no apparent game-derived output, generated shader changes, renderer API changes, or new game switches. - The current build’s imports used by chunks._cut and split_giants remain reachable by pack classification. - The compute fixture now obtains the result before reading its output argument. **Testing:** No commands from the project or tests were run, as requested. The author reports Linux suite and mise results; the older mise run and listed CI jobs remain outstanding. **Overlaps and merge order:** Unknown; the network is closed. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, after its rebase. Nothing was run; a maintainer decides.</sub>
@ -0,0 +18,4 @@
version caption is the original capture's, as before. No fresh rendering, pixel comparison, game run, live GPU check or
new capture is claimed.
The review revision in `manifest.json` (`sha256:81e8a6ba...`) is the SHA-256 of the sorted `<path> <sha256>` lines
Member

L2 (nit): The review record says the manifest revision starts with 81e8a6ba, but the manifest records 55485e13.

When: A maintainer using this record to identify or verify the reviewed source revision is directed to a hash that is not in the manifest.

Do: Correct the stated revision and the document title or filename if those are intended to identify the same revision.

**L2** (nit): The review record says the manifest revision starts with 81e8a6ba, but the manifest records 55485e13. *When:* A maintainer using this record to identify or verify the reviewed source revision is directed to a hash that is not in the manifest. **Do:** Correct the stated revision and the document title or filename if those are intended to identify the same revision.
HumanBean deleted branch test/main-checks-again 2026-11-23 19:54:35 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
MagicBeanDev/Longshot!2311
No description provided.