test(input): the pads-after-menu check takes Sprint's constants from nn_hid.c #2215
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
5 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Longshot!2215
Loading…
Reference in a new issue
No description provided.
Delete branch "dazemc/Longshot:fix/pads-after-menu-sprint-l3"
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
This pull request's original purpose is already on
main.fe1c437c(#2213) madetests/test_pads_after_menu.pycompile and pass: line 87 now carries the hand-copiedenum { SPRINT_KEY = 1, SPRINT_PAD = 2, SPRINT_L3 = 4 }, and line 119 assertssprint_now == (SPRINT_PAD | SPRINT_L3), matchinghost/nn_hid.c:1200andpad_sprint_down()'sSPRINT_PAD | (p == HOS_PAD_LSTICK ? SPRINT_L3 : 0)(line 1211).fe1c437cis an ancestor of this branch's base,8aa5ab87, and of currentmain(8f7300756).The earlier Summary and its 911/23 → 912/22 table were measured against
main @ a2dc5385, before #2213 merged; they no longer describemainor this head.What is left: the check stops hand-copying Sprint's enum. It cuts
host/nn_hid.c's own (SPRINT_KEY,SPRINT_PAD,SPRINT_L3) the way it already cuts theHOS_*enums fromgpu/vk/vk_api.h, so the next constant added for Sprint cannot drift from the check. That is a drift guard, not a fix for a red check: a mismatch still fails the check's compile, as #2038's did. Test-only,tests/test_pads_after_menu.pyonly (4 lines added, 1 removed).The branch's commits still carry their original messages; squash them into one with this description when it is next pushed.
Rebase status (2026-11-25, current):
c24abdca3→55444d6e2ontomain @ 8f7300756701b7c9a278e576bb075ac20e622a32. Stable patch-ide4719c92c0782aa74647f8095914feb6cdb4ec4fis 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, not55444d6e2.Testing
Rebase (2026-11-25). Rebased onto
origin/mainbe663a08a30fa953420104d3cef6877bed6674a2. Old heade8fb91c4796d5845699838f93ad58e290088265e→ new headc24abdca333d099aaaca3e74f5d56ea88beb6136.git diff -U0 8aa5ab87..e8fb91c4andgit diff -U0 be663a08a3..c24abdcahold the identical changed-line set (5 added/removed lines, 0 differing), so the rebase changed none of this PR's content. Main's new commits touch neither the onetests/test_pads_after_menu.pythis PR changes norhost/nn_hid.c(the intersection is empty), so the suite below still describes this check; it was taken ate8fb91c4and this rebase is the only change since. No suite re-run is owed.Tested: the strict suite at head
e8fb91c4on this PC,942 passed, 19 failed, 18 skipped in 406 s (linux, 5 at once); all 19 failing ids are CORE under AMENDMENT 1 with their baseline exception classes, andtests/test_pads_after_menu.pyispass. Logprrefresh-logs/2215.log, sha2564b30734a0f6b30197b713a4eeed075021a88a1a9732b8fd927982d0f6ae95370. No game run applies: the change is a check undertests/and no game path changes.Still to test: the red
Guide screenshotscheck's review of the guide images and local UI source, by hand; it also fails onmain @ 21d5bdf9and is not this change.Measurements
Nothing to measure: test-only, no source the game runs changes; the suite run above is what verifies the check.
Risks
A test-only change: nothing the game runs changes. If
nn_hid.c's enum is renamed or changes shape, the check's cut fails loudly; if it gains a constant, the check takes it with no edit. No assertion is removed.#152(open) edits the same file a few lines above, addingpad_count_nownear line 165; this change removes line 87 and adds the cut near line 168, so no line is changed by both.Checklist
Ready for review
main; the title is a Conventional Commit. — Rebased head55444d6e2is directly onmain @ 8f7300756701b7c9a278e576bb075ac20e622a32; the preserved diff is the single topic described in Summary.git diff --name-only 8aa5ab87..e8fb91c4names onlytests/test_pads_after_menu.py— nothing undergpu/,host/,nx2/,assets/orthird_party/— so the change is a check undertests/and no game path changes; no game run applies)mise run testpasses (any failure that also fails onmainis named). At heade8fb91c4: 942 passed, 19 failed, 18 skipped in 406 s, compared before baseline3 existed; the basis then was baseline2's 19 ids, which differs from baseline3 only bytests/test_crash_record.py— same failure set as baseline8aa5ab87(19 ids,~/.local/share/longshot-dev/goal/resume-2026-11-23/BASELINE-8AA5AB87.md) and same 18 skips.mainitself is red on those 19 ids; this PR does not pass them. Under AMENDMENT 1 every failing id is CORE with its baseline exception class, and no id outside CORE ∪ FLAKY fails. Logprrefresh-logs/2215.log, sha2564b30734a0f6b30197b713a4eeed075021a88a1a9732b8fd927982d0f6ae95370, exit 1.main, or Measurements says why there is nothing to measure. (test-only; the Verdict says why nothing is measured)third_party/untouched; nothing GPL-incompatible.When it applies
tests/that reads changed source is updated, not weakened. (the constants are cut fromnn_hid.c; no assertion removed)Assisted-by:/Co-Authored-By:trailers. (heade8fb91c4is message-only and saysAssisted-by: DeepSeek V4.1 Flash 1017 (opencode-go))Ready to merge
main, measured again or a comment says why the numbers still hold. — Awaiting CI on the current head; this update does not claim a CI run.@review
Recommendation: Approve. The change restores the check without changing player code, and the reported run shows it passing against a failing baseline. CI is still running. Nothing blocking is left. Recommend approval; not approved on the forge.
The test now takes Sprint constants from the host source and expects both bits for a left-stick press. This restores coverage of pad input after the menu without changing the game.
@fixwill do (1)Checks: Still running:
CI / Conventional Commit title (pull_request),CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request),CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request),CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request),CI / Workflow lint (actionlint) (pull_request),CI / Website build and checks (pull_request),Guide screenshots / Guide images and local UI source review (pull_request),Third-party parts / As their notes say (pull_request),Third-party parts / The same as upstream (pull_request).More: does it help, other systems, switches, what was read
Does it help: Yes: the author reports that the test changes from a compile failure on base
a2dc5385to a pass on head3d7704eb; the full suite changes from 911 passed, 23 failed and 18 skipped to 912 passed, 22 failed and 18 skipped.Other systems: The diff changes only a game-free test. It does not change gameplay, rendering, platform code, saves, audio or input handling.
Switches: None added, changed or removed.
Reviewed:
3d7704eb82againsta2dc538590: Read AGENTS.md, CONTRIBUTING.md, docs/dev/standards.md, the pull request template, both commits, the complete changed test and the relevant host input code. Skimmed the Sprint test and test runner. docs/review-checklist.md and ../Tooling/AGENTS.md were unavailable; no generated files, translations or recorded runs were changed.; nothing run (a code review).Checked and fine:
Testing: No code or tests were run, as requested. The author's baseline and head results were reviewed; the listed CI checks are still running.
Overlaps and merge order: The description identifies WIP PR #152 as editing a different hunk of the same test; it reports no textual overlap.
Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.
The
When it appliessection has noAI assistance recordedbox, and neither commit (3d7704eb,298986e4) has anAssisted-by:trailer. Add them (and theA fixbox if the updated check counts).AI-assistance box added with real evidence: head
663f0e1bis an empty, message-only commit carryingAssisted-by: DeepSeek V4.1 Flash 1017 (opencode-go); tree6280eceac7db695ff772a99326d6062393499bc4is the same object as3d7704eb's, so the runs still describe the head's tree. Pushed fast-forward, no force.@rebase
I rebased this pull request onto
main(753fb5af68): the new head isb0752f28e3.Conflicts resolved
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.
663f0e1bcbb0752f28e3Recommendation: Approve. The test now takes Sprint constants from the source and retains the correct L3 bitmask assertion. The remaining description issue is minor. Recommend approval; not approved on the forge.
Keeps the pads-after-menu test aligned with Sprint’s constants without changing game behavior. It removes a copied enum at the cost of relying on the source enum’s marker for extraction.
Should fix (1): not blocking, but worth doing before merging.
@fixcan do L1.Since the last review (on
3d7704eb82)Still open: L1 (The checklist says baseline failures are named, but the description gives only their count…)
Checks: Still running: 6 checks.
Also noticed (2; not asked for, not blocking)
More: does it help, other systems, switches, what was read
Does it help: Not a performance change. The reported earlier run passed this test, but its baseline and head precede the rebase; the current base already contains the L3 constants and bitmask expectation.
Other systems: Only the game-free test harness changes; no game, platform, GPU, input, or launcher code changes.
Switches: None.
Reviewed:
b0752f28e3against753fb5af68: Read AGENTS.md, CONTRIBUTING.md, the pull request template, the full changed test, the diff and commits, and the relevant Sprint and pad-input source excerpts. Skimmed the applicable standards and reported runs. docs/review-checklist.md is absent.; nothing run (a code review).Checked and fine:
Testing: Not run; review is read-only. The author reports a passing test and full-suite comparison before the rebase; CI is still running.
Overlaps and merge order: The description identifies #152 as editing another hunk of the same test.
Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, after its rebase. Nothing was run; a maintainer decides.
The remote head
b0752f28is already 0 behind / 3 ahead of753fb5af; the local worktree is stale and diverged, so no rebase or push was made.test(input): the pads-after-menu check follows Sprint's SPRINT_L3, in its constants and its bitmaskto WIP: test(input): the pads-after-menu check takes Sprint's constants from nn_hid.cb0752f28e3be73125b58be73125b58e8fb91c479@HumanBean — fork CI for head
e8fb91c4, please.What it is: the pads-after-menu check stops hand-copying Sprint's enum and cuts it from
host/nn_hid.c(test-only, 4 lines).Asked: approve this head's fork CI runs, and a review when you have the time.
Evidence: suite at this head
prrefresh-logs/2215.log— 942 passed / 19 failed / 18 skipped, the same 19 ids as the frozen8aa5ab87baseline (BASELINE-8AA5AB87.md).Still WIP — suites land one at a time, so this is not a merge request.
Suite at
e8fb91c4796d5845699838f93ad58e290088265e:942 passed, 19 failed, 18 skipped in 406 s (linux, 5 at once), logprrefresh-logs/2215.log, sha2564b30734a0f6b30197b713a4eeed075021a88a1a9732b8fd927982d0f6ae95370(matches),.start2026-11-23T21:43:20-08:00 /.end21:50:07-08:00 /.exit1 /.xmlpresent, sampler.pressure.logclean (no guard fired). JUnittests="979" failures="19" skipped="18" time="406.104"reconciles: 961 ran + 18 skipped = 979, and 942 + 19 = 961. The 19==== FAILblocks, the 19FAILrows and the summary agree in both directions; noTIMEOUT.Ids verdict: PASS under AMENDMENT 1. The 19 failing ids are exactly the CORE table, each with the exception class recorded for it there; no id outside CORE ∪ FLAKY fails. The 18 skips are the baseline's 18 ids with byte-identical reasons.
Head witness: there is no
.headfile and no.compare.txtfor this ticket, so no.headis claimed. The log's own frames and the JUnit name the run tree/home/daze/GitHub/Longshot-2215-e8fb91c4, whosegit rev-parse HEADise8fb91c4796d5845699838f93ad58e290088265eand whosegit status --porcelainis empty; the PR's head is the same sha. That is the witness, not a.head.Ticked
One topic(merge-base8aa5ab87= currentmain; three commits, one file,tests/test_pads_after_menu.py) andTested on my own PC(test-only: no path undergpu/,host/,nx2/,assets/,third_party/; no game path changes), and Testing now records the head run. No Ready-to-merge box touched.WIP: test(input): the pads-after-menu check takes Sprint's constants from nn_hid.cto test(input): the pads-after-menu check takes Sprint's constants from nn_hid.ce8fb91c479c24abdca33c24abdca3355444d6e2dRebased
c24abdca3to55444d6e2on main8f7300756; patch-id unchanged and intersection empty. Existing test-only suite evidence stands.Source review: no blocking findings. #2213 already fixed the Sprint L3 assertion and restored compilation. This PR still removes a duplicate declaration by pulling Sprint's enum directly from the host, while preserving the L3 and controller-release assertions. It changes one test file.
Main now also changes this fixture and its XInput source for #1349. The merge is textually clean and preserves both updates. Please rerun
tests/test_pads_after_menu.pyon the combined tree before merge. The author's Linux pass ate8fb91c4used a byte-identical fixture, and predates that combination. The exact-head description check passed. The candidate CI and Guide jobs remain blocked. Original Sprint fix · Linux suite · CI · Guide CIReviewed
55444d6e2d989e5bd1f5a134a5e743e2ac20314bagainst8f7300756701b7c9a278e576bb075ac20e622a32and checked the merge against current main1413b172907220e21ae0f9503e040d0b115bcda9.@fix
@fix
55444d6e2dba404c7b2aRecommendation: Approve. The test now takes Sprint’s constants from the production enum and preserves its assertions. The remaining description omission is minor. Recommend approval; not approved on the forge.
What
@fixchangedI changed this pull request: the new head is
ba404c7b2a. I rebased it ontomain(ed57ec5464).Conflicts resolved
Nothing was built or run: the checks run again on the new head.
The test no longer maintains a separate copy of Sprint’s constants, reducing the chance that the fixture drifts from the host code. It adds a small dependency on the enum’s source shape.
Should fix (1): not blocking, but worth doing before merging.
@fixcan do L1.Checks: they run again on this head; a failure shows on the pull request.
Also noticed (1; not asked for, not blocking)
More: does it help, other systems, switches, what was read
Does it help: Yes: the fixture reads the enum used by pad_sprint_down; the reported Linux suite passed this test. This is not a performance change.
Other systems: Only a game-free test changes; no game, platform, or hardware path changes. The reported test pass predates the current combined tree.
Switches: None.
Reviewed:
ba404c7b2aagainsted57ec5464: Read the complete changed test, its diff and commit list, AGENTS.md, CONTRIBUTING.md, the PR template, and the relevant Sprint references in host/nn_hid.c. The rest of host/nn_hid.c and recorded runs were not read in full.; nothing run (a code review).Checked and fine:
Testing: The author reports the test passed in a Linux suite at
e8fb91c4; no commands or tests were run for this review. CI has not run on the supplied head.Overlaps and merge order: The description identifies #152 as editing nearby lines; the source review also identifies a current-main fixture and XInput update from #1349.
Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, after its fix. Nothing was run; a maintainer decides.