fix(tests): main's title-card and display-startup checks pass again #2539
No reviewers
Labels
No labels
area/accessibility
area/audio
area/input
area/install
area/menu
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!2539
Loading…
Reference in a new issue
No description provided.
Delete branch "dazemc/Longshot:fix/main-green-baseline"
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
On
maintoday, no suite can be green: two game-free checks fail every run, and neither id is in CORE or FLAKY. Both fail identically on clean7eb53d1a0(the#2536CI fix touches neither file).To see the first bug, run
python -I -B tests/run_all.py --exact tests/test_title_card_strips.py: the check importsnx2.oot_patches, but#2286deletednx2/wholesale, so it dies withModuleNotFoundErrorbefore asserting anything. Its subject, the text patch that emitted three-strip C into the lifted file, no longer exists: the Rust lift owns that, and the behaviour is already asserted against the live host code bytests/test_title_card_reveal.pyplusgame/hos_wide_ui.c. This deletes the stale check and ports the assertions only it held — the prepared frame's choice surviving a live option change (and its retained/reset state), and the large frame's full-picture reaches on Screen's edges and Custom — intotest_title_card_reveal.py, againstgame/hos_wide_ui.c. Itsoot_patchesanchor-pairing warnings are dropped with the dead text matcher; there is no live equivalent to assert.To see the second, run
... --exact tests/test_display_startup_failure.py: it compileshost/hos_main.c'smain, which callsbc_claim()(declared inhost/builder_channel.c:62), and the harness had neither a stub nor a declaration, so the generated.incfails withuse of undeclared identifier 'bc_claim'. The harness now has a counter stub with the same signature and requires exactly one claim on every startup path, so the call is still exercised rather than removed.Files to read first:
tests/test_title_card_reveal.py(the ported fixtures and their docstring) andtests/display_startup_failure_test.cpp(the stub and theclaims == 1requirement).Fixes #2540. See #2532, whose body is the only record of the
tests/test_title_card_strips.pybreakage this removes. Nothing here runs in the game: tests only.Rebase status (2026-11-25, current):
4655f3bb7→e4ff8cae1ontomain @ 8f7300756701b7c9a278e576bb075ac20e622a32. Stable patch-id04816341324672fa9e33f70fac2f92a388afc169is unchanged and main's old-base→new-main file intersection with this PR is empty. The evidence already named below (suite, platform, in-game and measurement, as applicable) therefore still stands at the historical heads that produced it. Earlier rebase notes are history; where they say "this head", they mean the evidence commit named beside that run, note4ff8cae1.Testing
Tested: on this PC (Linux), game-free checks only (this changes no game code), at
4655f3bb7on7eb53d1a0:Before, both ids failed:
After, both pass, and so do their neighbours:
Still to test: None.
Measurements
Nothing to measure: two game-free tests changed; no game code, shader, build path or default moved.
Risks
None for players: tests only, nothing the game runs. The deleted check was already dead on main (it failed at import); the behaviour it uniquely covered now runs against the same
game/hos_wide_ui.cintest_title_card_reveal.py. The display check keeps its call exercised and now also forbids zero or duplicate claims. A revert brings both failures back.Checklist
Ready for review
main; the title is a Conventional Commit. — Rebased heade4ff8cae1is directly onmain @ 8f7300756701b7c9a278e576bb075ac20e622a32; the preserved diff is the single topic described in Summary.mise run testpasses (any failure that also fails onmainis named). Suite at4655f3bb7b489c2b1688307dd918e71f95b8f5ff: 834 passed, 0 failed, 8 skipped in 491 s (linux, 5 at once), 842 checks, exit 0; logprrefresh-logs/suite-2539-4655f3bb.log, sha2562606fa9a9f025b321c8dbf3b97200a88875b856ad50a86d0b001918956e2bdf6,.head= that sha,.start/.end/.exitand JUnit beside it. Strict gate CLEAR 09:14:58 (queuerunning:empty, norun_all.py, nomise run test, 3 samples over 30 s),RX_CPM=/home/daze/GitHub/Hookshot/build-linux/deps/cpm, sampler 18 samples with no guard and no foreign load. Zero failing ids: the two base failures (tests/test_display_startup_failure.py,tests/test_title_card_strips.py) that Amendment 2 exempted for heads onbe663a08apass here, so a head rebased past this fix must show zero failures and an Amendment 2 exemption claimed then would be wrong.main, or Measurements says why there is nothing to measure.third_party/untouched; nothing GPL-incompatible.When it applies
mainand passes here. (both ids and their outputs are in Testing)tests/that reads changed source is updated, not weakened. (the stale check is replaced by the same assertions against the live host file, plus the planner's reaches)Assisted-by:/Co-Authored-By:trailers.Description: Testing names the machine instead of a distribution; no other change.
WIP: fix(tests): main's title-card and display-startup checks pass againto fix(tests): main's title-card and display-startup checks pass again4655f3bb7be4ff8cae14Rebased
4655f3bb7toe4ff8cae1on main8f7300756; patch-id unchanged and intersection empty, so the 834/0/8 suite evidence stands. Body records the rebase.View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.