chore(scripts): remove longshot_builder.py's program, which the release never ran #3053

Merged
HumanBean merged 1 commit from HumanBean/Longshot:chore/release-program into main 2026-12-03 07:06:39 +00:00
Owner

Summary

scripts/longshot_builder.py program repeated MagicBeanAdmin/Release's longshot.yml step by step. Its docstring said
"the release's longshot.yml may adopt it, a follow-up". Nothing calls it: not the release workflow, the launcher,
Tooling or Beanstalk. Only its own test does. This removes program (program_steps, cmd_program, its subcommand and
usage lines), the now-unused HERE, and its test class in tests/test_longshot_builder.py. The workflow stays the one
description of a release build.

Why delete it rather than adopt it: adopting would fold the workflow's separate steps into one process. That loses the
caches it saves between steps (the compiled Rust right after the builder, the downloads right after RenHDrum, which are
kept even when a later step fails) and the logs for each step. It also leaves out the steps around it (the generated
shaders, release last-objects, the dry run). And it can only be verified by running a release.

Read first: scripts/longshot_builder.py (docstring, end of file).

Testing

Tested: python3 -I tests/test_longshot_builder.py (OK), python3 -I tests/test_windows_on_linux.py (OK), ruff
and pre-commit on both files (clean), python3 -I scripts/longshot_builder.py --help (no program). The game does not
run this script.

Still to test:

  • None. The release never ran program.

Measurements

Nothing to measure: a script subcommand nobody ran is removed.

Risks

Someone who ran longshot_builder.py program by hand loses it. They can run the workflow's steps instead. This may
conflict textually with #3044 if that PR edits program_steps' RenHDrum lines: whichever lands second drops them.

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. (The game does not run it.)
  • mise run test passes (any failure that also fails on main is named). (Run once on the three after-merge branches and #3052 together: 866 passed, 12 skipped, 2 failed: test_vk_wb_cpu_words_fast, which fails on main, and test_lifter, through a build-driver lock test that fails only when everything runs at once and passes alone.)
  • 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.

🤖 Generated with Claude Code

https://claude.ai/code/session_017vw8e2fJhRpDrY7pgVx6oJ

## Summary `scripts/longshot_builder.py program` repeated MagicBeanAdmin/Release's longshot.yml step by step. Its docstring said "the release's longshot.yml may adopt it, a follow-up". Nothing calls it: not the release workflow, the launcher, Tooling or Beanstalk. Only its own test does. This removes `program` (`program_steps`, `cmd_program`, its subcommand and usage lines), the now-unused `HERE`, and its test class in tests/test_longshot_builder.py. The workflow stays the one description of a release build. Why delete it rather than adopt it: adopting would fold the workflow's separate steps into one process. That loses the caches it saves between steps (the compiled Rust right after the builder, the downloads right after RenHDrum, which are kept even when a later step fails) and the logs for each step. It also leaves out the steps around it (the generated shaders, `release last-objects`, the dry run). And it can only be verified by running a release. Read first: scripts/longshot_builder.py (docstring, end of file). ## Testing **Tested:** `python3 -I tests/test_longshot_builder.py` (OK), `python3 -I tests/test_windows_on_linux.py` (OK), `ruff` and pre-commit on both files (clean), `python3 -I scripts/longshot_builder.py --help` (no `program`). The game does not run this script. **Still to test:** - None. The release never ran `program`. ## Measurements Nothing to measure: a script subcommand nobody ran is removed. ## Risks Someone who ran `longshot_builder.py program` by hand loses it. They can run the workflow's steps instead. This may conflict textually with #3044 if that PR edits `program_steps`' RenHDrum lines: whichever lands second drops them. ## 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. (The game does not run it.) - [x] `mise run test` passes (any failure that also fails on `main` is named). *(Run once on the three after-merge branches and #3052 together: 866 passed, 12 skipped, 2 failed: `test_vk_wb_cpu_words_fast`, which fails on `main`, and `test_lifter`, through a `build-driver` lock test that fails only when everything runs at once and passes alone.)* - [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. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_017vw8e2fJhRpDrY7pgVx6oJ
chore(scripts): remove longshot_builder.py's program, which the release never ran
Some checks failed
PR description / Title and description (pull_request_target) Successful in 8s
CI / What the change needs (pull_request) Successful in 9s
CI / Third-party parts and guide screenshots (pull_request) Successful in 13s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 20s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Failing after 1m21s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 12m54s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 11m19s
CI / Website build and checks (pull_request) Successful in 1m15s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Failing after 40m3s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Successful in 47m23s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Failing after 1h0m5s
7ad27f4b3d
`program` repeated MagicBeanAdmin/Release's longshot.yml step by step ("the release's longshot.yml may adopt it, a
follow-up"). Nothing calls it: not the release, the launcher, Tooling or Beanstalk, only its own test. Adopting it
would have folded the workflow's steps into one, losing the caches it saves between them (the compiled Rust after the
builder, the downloads after RenHDrum) and the per-step logs, and could only be checked by running a release. So the
workflow stays the one description of a release build, and `program`, its test and its usage lines go.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e2fJhRpDrY7pgVx6oJ
HumanBean deleted branch chore/release-program 2026-12-03 07:06:40 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
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!3053
No description provided.