chore(scripts): remove longshot_builder.py's program, which the release never ran #3053
No reviewers
Labels
No labels
area/accessibility
area/audio
area/input
area/install
area/menu
area/mods
area/renderer
area/saves
area/tooling
area/upscaling
beanstalk: approved
beanstalk: failed
beanstalk: needs approval
beanstalk: running
beanstalk: tested
ci: approved
good first issue
gpu/amd
gpu/igpu
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
needs measurements
platform/linux
platform/macos
platform/steam-deck
platform/windows
preview
priority
critical
priority
high
priority
low
regression
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Longshot!3053
Loading…
Reference in a new issue
No description provided.
Delete branch "HumanBean/Longshot:chore/release-program"
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?
Summary
scripts/longshot_builder.py programrepeated 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 andusage lines), the now-unused
HERE, and its test class in tests/test_longshot_builder.py. The workflow stays the onedescription 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),ruffand pre-commit on both files (clean),
python3 -I scripts/longshot_builder.py --help(noprogram). The game does notrun this script.
Still to test:
program.Measurements
Nothing to measure: a script subcommand nobody ran is removed.
Risks
Someone who ran
longshot_builder.py programby hand loses it. They can run the workflow's steps instead. This mayconflict textually with #3044 if that PR edits
program_steps' RenHDrum lines: whichever lands second drops them.Checklist
Ready for review
main; the title is a Conventional Commit.mise run testpasses (any failure that also fails onmainis 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 onmain, andtest_lifter, through abuild-driverlock test that fails only when everything runs at once and passes alone.)main, or Measurements says why there is nothing to measure.third_party/untouched; nothing GPL-incompatible.When it applies
tests/that reads changed source is updated, not weakened.Assisted-by:/Co-Authored-By:trailers.🤖 Generated with Claude Code
https://claude.ai/code/session_017vw8e2fJhRpDrY7pgVx6oJ
program, which the release never ran`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