fix(ci): the game-free checks and lint pass again after #2286 and #2411 #2554

Merged
HumanBean merged 2 commits from HumanBean/Longshot:push-kuswyqttvqqz into main 2026-11-25 19:01:16 +00:00
Owner

Summary

Follows #2553. Its CI run (54316) still failed lint and three of the four game-free parts: the checks hadn't run anywhere since #2286 (the Rust builder) and #2411 (game code in game/). Each failure and its fix:

CI's environment (.forgejo/workflows/ci.yml)

  • Lint: no pre-commit hook failed. The ShellCheck step stopped at shellcheck: command not found: the quick runner's image has no ShellCheck. It is now installed from apt when missing.
  • test_lifter.py (not found: llvm_mc) and test_obj_cache_size.py (cannot find libclang_rt.asan-x86_64.a): scripts/ci_apt.sh installs with --no-install-recommends, which leaves out clang's sanitizer runtimes, and nothing installed llvm-mc on PATH. The tests job now installs llvm and libclang-rt-18-dev, and so does scripts/linux/checks.Dockerfile (test_checks_container keeps the two lists the same).
  • Part 1/4 (three TIMEOUTs, no FAIL line): test_lifter_semantics.py and test_log_redact.py each run cargo build --release of longshot-builder (or build-driver's redact example) from cold. They share one target folder and run beside nine other checks, so they passed the 600 s per-check limit before running anything. A cold release build takes about 3 min on 4 fast cores here, with the runner to itself. test_recorder_sync.py (445 s on CircleCI) printed ALL PASS for its stream runs and was stopped while building its broken variants. Now the part whose checks run the release builder builds it in a step before them (found with run_all.py --list --shard). The per-check limit is 900 s and the job's limit 45 min.

Stale tests (they read what #2286 / #2411 moved)

  • test_display_startup_failure.py: hos_main.c's start now calls bc_claim() (#2286's builder channel). The fixture gets a stub for it, like its other stubs.
  • test_mods_sizes.py: the long-path case needs a game folder of 60 bytes or more, and CI's /tmp/mods-sizes-XXXX/long/... is shorter. The game folder's name is now padded to that length, so the case works in any scratch folder. Same check, same 4,040-byte RomFS path.
  • test_release_workflow.py: index("upload-artifact") found the header comment that names the action, not the step. It now finds the uses: line. The cache paths were split on whitespace, and ${{ runner.temp }} has spaces. They are now split by line. Same assertions.
  • test_windows_on_linux.py: the Windows Vulkan build check was a vulkan job. It is now the package job's last step. The test checks the same things inside package: dav1d from the bundle under Wine, and only the build check gated by RELEASE_CHECKED.
  • test_title_card_strips.py: it imported nx2/oot_patches.py, which #2286 removed. Its host-side checks (the strip helpers and the HUD planner) still run. The lifted half is dropped: the patch pipeline and the pairing of its anchors across lifted files. #2286 has no counterpart for it, which is a real bug, not fixed here: no hook site calls hos_wide_title_prepare, _draw or _reset (game/hos_wide_ui.c). So the wide area title card that docs/user/graphics-and-controls.md describes is no longer drawn. ui.pictureConstants (f_815505b0+0x144) and ui.pictureDraw (f_81550720+0x20) are already at two of its three places, but their callbacks only draw the pause menu's background. There is no site at f_8156abc0, the reset. Adding sites needs the game's code for their signatures, and the fix needs a game run. It should get an issue and a PR of its own, with its hook check next to the sites, as tests/test_camera_speed.py does.

Release job names (own commit): Forgejo shows a reusable workflow's call and its inner job as two rows. The inner jobs are now longshot-builder (Linux): build and longshot-builder (Windows): build, to pair with release.yml's longshot-builder (Linux) / (Windows). Job ids, needs and outputs are unchanged, and nothing matched on the old names. releases.md's row no longer calls the Windows build check "a job of its own".

Testing

Tested: on Linux, each changed check passes locally: test_display_startup_failure, test_mods_sizes, test_release_workflow, test_windows_on_linux, test_title_card_strips, test_checks_container, test_linux_docker_packages, test_recomplauncher_json, test_renhdrum. test_lifter_semantics and test_log_redact pass once the builder is built (87 s). actionlint passes with .forgejo/actionlint.yaml. CI only, no game code changed: nothing for the game to run.

Still to test: None beyond this PR's CI (test_lifter and test_obj_cache_size need the packages that only CI installs).

Measurements

Nothing to measure: CI and tests only.

Risks

CI only. Each run of the tests part that holds test_lifter_semantics and test_log_redact takes a few more minutes for the release build. Nothing changes for players.

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.

🤖 Generated with Claude Code

## Summary Follows [#2553](https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/2553). Its CI run (54316) still failed lint and three of the four game-free parts: the checks hadn't run anywhere since #2286 (the Rust builder) and #2411 (game code in `game/`). Each failure and its fix: **CI's environment (`.forgejo/workflows/ci.yml`)** - **Lint:** no pre-commit hook failed. The ShellCheck step stopped at `shellcheck: command not found`: the `quick` runner's image has no ShellCheck. It is now installed from apt when missing. - **test_lifter.py** (`not found: llvm_mc`) and **test_obj_cache_size.py** (`cannot find libclang_rt.asan-x86_64.a`): `scripts/ci_apt.sh` installs with `--no-install-recommends`, which leaves out clang's sanitizer runtimes, and nothing installed `llvm-mc` on PATH. The tests job now installs `llvm` and `libclang-rt-18-dev`, and so does `scripts/linux/checks.Dockerfile` (test_checks_container keeps the two lists the same). - **Part 1/4 (three TIMEOUTs, no FAIL line):** test_lifter_semantics.py and test_log_redact.py each run `cargo build --release` of longshot-builder (or build-driver's `redact` example) from cold. They share one target folder and run beside nine other checks, so they passed the 600 s per-check limit before running anything. A cold release build takes about 3 min on 4 fast cores here, with the runner to itself. test_recorder_sync.py (445 s on CircleCI) printed `ALL PASS` for its stream runs and was stopped while building its broken variants. Now the part whose checks run the release builder builds it in a step before them (found with `run_all.py --list --shard`). The per-check limit is 900 s and the job's limit 45 min. **Stale tests (they read what #2286 / #2411 moved)** - **test_display_startup_failure.py:** `hos_main.c`'s start now calls `bc_claim()` (#2286's builder channel). The fixture gets a stub for it, like its other stubs. - **test_mods_sizes.py:** the long-path case needs a game folder of 60 bytes or more, and CI's `/tmp/mods-sizes-XXXX/long/...` is shorter. The game folder's name is now padded to that length, so the case works in any scratch folder. Same check, same 4,040-byte RomFS path. - **test_release_workflow.py:** `index("upload-artifact")` found the header comment that names the action, not the step. It now finds the `uses:` line. The cache paths were split on whitespace, and `${{ runner.temp }}` has spaces. They are now split by line. Same assertions. - **test_windows_on_linux.py:** the Windows Vulkan build check was a `vulkan` job. It is now the `package` job's last step. The test checks the same things inside `package`: dav1d from the bundle under Wine, and only the build check gated by `RELEASE_CHECKED`. - **test_title_card_strips.py:** it imported `nx2/oot_patches.py`, which #2286 removed. Its host-side checks (the strip helpers and the HUD planner) still run. The lifted half is dropped: the patch pipeline and the pairing of its anchors across lifted files. #2286 has no counterpart for it, which is a **real bug, not fixed here:** no hook site calls `hos_wide_title_prepare`, `_draw` or `_reset` (`game/hos_wide_ui.c`). So the wide area title card that docs/user/graphics-and-controls.md describes is no longer drawn. `ui.pictureConstants` (f_815505b0+0x144) and `ui.pictureDraw` (f_81550720+0x20) are already at two of its three places, but their callbacks only draw the pause menu's background. There is no site at f_8156abc0, the reset. Adding sites needs the game's code for their signatures, and the fix needs a game run. It should get an issue and a PR of its own, with its hook check next to the sites, as tests/test_camera_speed.py does. **Release job names (own commit):** Forgejo shows a reusable workflow's call and its inner job as two rows. The inner jobs are now `longshot-builder (Linux): build` and `longshot-builder (Windows): build`, to pair with release.yml's `longshot-builder (Linux)` / `(Windows)`. Job ids, needs and outputs are unchanged, and nothing matched on the old names. releases.md's row no longer calls the Windows build check "a job of its own". ## Testing **Tested:** on Linux, each changed check passes locally: test_display_startup_failure, test_mods_sizes, test_release_workflow, test_windows_on_linux, test_title_card_strips, test_checks_container, test_linux_docker_packages, test_recomplauncher_json, test_renhdrum. test_lifter_semantics and test_log_redact pass once the builder is built (87 s). actionlint passes with `.forgejo/actionlint.yaml`. CI only, no game code changed: nothing for the game to run. **Still to test:** None beyond this PR's CI (test_lifter and test_obj_cache_size need the packages that only CI installs). ## Measurements Nothing to measure: CI and tests only. ## Risks CI only. Each run of the tests part that holds test_lifter_semantics and test_log_redact takes a few more minutes for the release build. Nothing changes for players. ## 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. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
- lint: the quick runner's image has no ShellCheck; installed from apt
- tests: llvm (llvm-mc, test_lifter.py) and libclang-rt-18-dev (the ASan runtime,
  test_obj_cache_size.py), which --no-install-recommends left out; the same in
  scripts/linux/checks.Dockerfile
- tests: the release longshot-builder (and build-driver's redact example) built
  before the checks in the part that runs them; --timeout 900 (test_recorder_sync)
- test_display_startup_failure: a stub for bc_claim, which main now calls
- test_mods_sizes: the long path's case pads its game folder, so /tmp's short
  scratch folder still makes the path too long
- test_release_workflow: the upload-artifact step, not the header comment naming
  it; cache paths split by line (${{ runner.temp }} has spaces)
- test_windows_on_linux: the Vulkan build check is a step of the package job now
- test_title_card_strips: nx2/oot_patches.py is gone; its host checks kept. The
  title card's hooks have no hook site since #2286 (a bug, not fixed here)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
ci(release): the builds' jobs are named to pair with the release's jobs that call them
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website preview, build (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
Third-party parts / The same as upstream (pull_request) Has been skipped
CI / Conventional Commit title (pull_request) Successful in 28s
CI / What the change needs (pull_request) Successful in 29s
CI / Workflow lint (actionlint) (pull_request) Successful in 44s
Guide screenshots / Guide images and local UI source review (pull_request) Successful in 47s
Third-party parts / As their notes say (pull_request) Successful in 55s
CI / Lint (pre-commit, ShellCheck) (pull_request) Successful in 6m2s
CI / Website build and checks (pull_request) Successful in 1m13s
CI / Rust (rustfmt, clippy, cargo test) (pull_request) Successful in 2m59s
CI / longshot-builder end to end (synthetic game) (pull_request) Successful in 2m21s
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Successful in 37s
CI / Game-free checks (run_all.py, part 1/4) (pull_request) Successful in 6m48s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Successful in 2m7s
PR description / Description follows the template (pull_request_target) Failing after 22s
CI / Game-free checks (run_all.py, part 3/4) (pull_request) Successful in 8m3s
CI / Game-free checks (run_all.py, part 2/4) (pull_request) Successful in 10m6s
CI / Game-free checks (run_all.py, part 4/4) (pull_request) Failing after 18m45s
efd3262117
Forgejo lists a reusable workflow's call and its inner job as two rows: the inner
jobs are now "longshot-builder (Linux): build" and "longshot-builder (Windows): build"
(ids, needs and outputs unchanged). releases.md: the Windows back end's build check
is the package job's last step, no longer a job of its own.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Member

Possibly related, for context:

  • PR #2539 fix(tests): main's title-card and display-startup checks pass again — Overlaps stale title-card and display startup test fixes
Possibly related, for context: - PR #2539 fix(tests): main's title-card and display-startup checks pass again — Overlaps stale title-card and display startup test fixes
HumanBean changed title from WIP: fix(ci): the game-free checks and lint pass again after #2286 and #2411 to fix(ci): the game-free checks and lint pass again after #2286 and #2411 2026-11-25 18:59:33 +00:00
HumanBean deleted branch push-kuswyqttvqqz 2026-11-25 19:01:17 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 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!2554
No description provided.