fix(ci): the Rust and website checks pass on main again: rustfmt, the end-to-end test's game folder, the settings page's wording #2799
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
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Longshot!2799
Loading…
Reference in a new issue
No description provided.
Delete branch "llun/Longshot:style/host-sources-tests-fmt"
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
Two of CI's jobs fail on every pull request that changes code or docs, on
main(01d6878b3, and still onf14a5664d), for three reasons. Each comes frommain, not from the pull requests that show it; found in the jobs' logs on #2796, #2797 and this one.rustfmtstep:Diff in …/builder/crates/build-compile/src/host_sources_tests.rs:110. TheInputsliteral there fits on one line, and rustfmt 1.10.0 (the pinned toolchain) with the repository'srustfmt.tomlwants it there. Reformatted, with rustfmt's own output and nothing else.the game folder has no image.binatbuilder/crates/synthetic-game/tests/end_to_end.rs:396. The build now organizes the game folder: the image (build-driverbuild.rs:313) and the romfs index (build.rs:907) are indata/, asbuild_core::game_layout::datagives them. The test still looked for them at the top, and so did the synthetic host it runs (synthetic_host.c, which then stopped withromfs_index_bad, as futondestroyer found). Both now look indata/for those two; the host's change is BeanBot's (@fix, asked for by HumanBean). The program, the record and the version file stay at the top./settings/: game branding remains in published text. #2779 added "Deku Sticks, Deku Nuts, … Deku Seeds" to the Debug tab's paragraph ofdocs/user/graphics-and-controls.md, which the site publishes as/settings/, andwebsite/scripts/check-site.tsrefuses game names in published prose (GAME_BRANDING). The paragraph now says sticks, nuts, bombs, bombchus, seeds or arrows, and a bomb bag, seed bag or quiver. #2771 fixed an earlier break of this job; this one came after it.The guide-screenshot job's failure, the third one these pull requests show, was #2793's, now merged; this branch is on
mainafter it (01539efd2). The runs below were onb61db06c3, the same commits onf14a5664d, one commit (#2790, the profiler's stack walk) before.To see them on
main:mise exec -- cargo fmt --all --checkmise exec -- bash scripts/website_check.shRead first: the five diffs, each a few lines.
Testing
Tested: Windows 11 (build 26300) and Ubuntu 24.04 (WSL 2). Not run in the game: these are a Rust test of the builder (
#[cfg(test)]), the synthetic game's end-to-end test and host, and a page of the user docs, none built into the game. The pull request was opened with--forcefor that reason, at the request of the person I work for.mise exec -- cargo fmt --all --check:main@01d6878b3athost_sources_tests.rs:110, also withmain's file exactly as committed (LF), so it isn't a line-ending effect of the Windows checkout.rustfmtstep passed; clippy andcargo testpassed too.LONGSHOT_E2E=1 cargo test --workspace --locked --test end_to_end -- --ignored --nocapture), on Ubuntu 24.04 in WSL 2, Rust 1.99.1, Ubuntu's clang and lld 18.1.3, on this head (b61db06c3):test result: ok. 1 passed. It builds, plays (synthetic: romfs index of 5 files,image.bin, 77824 bytes,result 0x97e000453d25eac4), builds again one unit (compiled {"lifted_80000000.ll"}) and plays again. The same passes with its folder at~/e2e-ünïcødé-游戏(LONGSHOT_E2E_SCRATCH), the host's paths in UTF-8.mise exec -- bash scripts/website_check.sh:mainfails/settings/: game branding remains in published text;Site check passed: 21 pages, 1362 local links and assets, their anchors and edit links.main:save-scrub.test.ts's zip listing, where Python on Windows ends lines with\r\n. It passes in CI on Linux.mise run test(llvm-mingw on PATH,CC=clang,CXX=clang++), on the first commit: 625 passed, 224 failed, 46 skipped, the same 224 as onmain@01d6878b3. None new.mise run test-changedon this head: 9 passed, 1 failed,tests/test_camera_speed.py, which fails the same way onmain@f14a5664dhere.Still to test: None (CI's Rust and Website jobs are the checks).
Measurements
Nothing to measure: a test's formatting, the synthetic test and host's paths, and a paragraph of the docs.
Risks
None for players: nothing the game runs changes. A revert is enough.
Checklist
Ready for review
main; the title is a Conventional Commit.mise run testpasses (any failure that also fails onmainis named).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./proc/self/exeandmmap, built only by the Linux-only end-to-end test: built and run on Linux, from a UTF-8 folder too; there is no Windows build of it.)Assisted-by:/Co-Authored-By:trailers.Ready to merge
main, measured again or a comment says why the numbers still hold.🤖 Generated with Claude Code
WIP: test(builder): host_sources_tests.rs formatted as rustfmt wants, so the Rust check passes againto test(builder): host_sources_tests.rs formatted as rustfmt wants, so the Rust check passes again@review
Recommendation: Request changes. The change preserves the test’s behavior and the reported formatter run shows it fixes the targeted formatting failure. CI has two head-only failures and other checks are still running, so it is not ready to merge. (It stands on L1: The check
CI / Third-party parts and guide screenshots (pull_request)fails on this head and passes on the base branch: Failing after 12s.)Reformats one test fixture so the Rust formatting check can pass; it makes no runtime or builder behavior change.
Blocking (2): must change before merging.
CI / Third-party parts and guide screenshots (pull_request)fails on this head and passes on the base branch: Failing after 12s.CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request)fails on this head and passes on the base branch: Failing after 4m11s.@fixcan do L1 and L2.Checks: Cancelled on this head (no result):
PR description / Title and description (pull_request_target). Still running: 5 checks.More: does it help, other systems, switches, what was read
Does it help: Yes: the author reports that cargo fmt --all --check fails at this literal on base
01d6878b3and passes on the pull request using the pinned toolchain.Other systems: The literal is in a test-only module; its values and calls are unchanged. No game, platform, rendering or builder output behavior changes.
Switches: None.
Reviewed:
063a8cc0a3against01d6878b3f: Read AGENTS.md, CONTRIBUTING.md, docs/dev/standards.md, the pull request template, the full changed test file, the diff and commit, and the relevant Inputs and plan_host code. Rechecked the changed file and its source references. docs/review-checklist.md and the adjacent Tooling checkout were unavailable.; nothing run (a code review).Checked and fine:
Testing: No commands from the project or tests were run during this read-only review. CI reports two head-only failures, which the review bot handles, and five checks still running.
Overlaps and merge order: Not checked; the network is closed.
Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.
test(builder): host_sources_tests.rs formatted as rustfmt wants, so the Rust check passes againto fix(ci): the Rust and website checks pass on main again: rustfmt, the end-to-end test's game folder, the settings page's wordingUpdated after the review (L1, L2). The Rust job's log on this head showed rustfmt, clippy and
cargo testpassing, and the last step, the synthetic game end to end, failing withthe game folder has no image.bin(end_to_end.rs:396). That'smain's too: on #2796 and #2797 the same step fails as well as rustfmt. The test now finds the image and the romfs index indata/, where the build puts them. The Website job fails onmainwith/settings/: game branding remains in published text, from #2779's Debug-tab paragraph; reworded,scripts/website_check.shpasses locally.main's:REVIEW REQUIRED: settings-graphics.png: game/oot_cheat_items.h changed since reviewed revision 3c74597ein this job's log, the same on #2796 and #2797, since #2785; #2793 fixes it.Recommendation: Request changes. The formatting and website fixes work. The synthetic program still opens the old game layout after the updated assertions pass.
The exact-head Rust job passes rustfmt, Clippy, and Cargo tests. The separately invoked synthetic end-to-end run now reaches the executable and fails there with
romfs_index_badand exit 2.builder/crates/synthetic-game/game/host/synthetic_host.c:108still opens the RomFS index at the game root. Its image lookup also uses the root, although the Builder puts both files indata/for this run. Update the synthetic host to resolve both using the game layout, then rerun the Linux ignored end-to-end fixture through build, play and rebuild. Rust CIThe website job is green on this head. The Guide failure points to
game/oot_cheat_items.hand has its own repair in #2793. Same-base sibling runs show the same game-free failures. Reviewed all three changed files, the Builder layout and synthetic host at07fb19cea051c4c25a67fcaa329b0271bd624e11against01d6878b. No source or test run in this review. Website CI@ -397,0 +399,4 @@for f in ["longshot", "longshot_build.json", "longshot_version.txt"] {assert!(game.join(f).is_file(), "the game folder has no {f}");}for f in ["image.bin", "longshot_romfs.idx"] {[P2] The synthetic host still opens longshot_romfs.idx and image.bin at the root. This assertion now passes, but exact-head CI exits 2 from the executable with romfs_index_bad. Update both synthetic host lookups to use the installed layout and rerun the Linux end-to-end fixture.
@fix
07fb19cea02963602b43Recommendation: Approve. The synthetic host now looks for both files where the builder installs them. The Linux end-to-end fixture failed before this fix, and CI has not yet run on the fixed head. Nothing blocking is left. Recommend approval; not approved on the forge.
What
@fixchangedI changed this pull request: the new head is
2963602b43. I rebased it ontomain(1413b17290). I edited its description to match the change.Changed
Nothing was built or run: the checks run again on the new head.
The change repairs Rust and website checks by updating test formatting, synthetic-game paths and guide wording. It changes no player runtime code.
Checks: they run again on this head (
CI / Third-party parts and guide screenshots (pull_request),CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request),CI / Game-free checks (run_all.py, part 1/2) (pull_request),CI / Game-free checks (run_all.py, part 2/2) (pull_request)failed on the last one); a failure shows on the pull request.Also noticed (3; not asked for, not blocking)
More: does it help, other systems, switches, what was read
Does it help: Unproven for the complete fix: the earlier head passed formatting and website checks but the synthetic executable failed; the corrected host has not yet been run.
Other systems: The synthetic host and end-to-end fixture are Linux-only and are not used by player builds. The documentation change affects the published settings page.
Switches: None.
Reviewed:
2963602b43against1413b17290: Read the repository rules, pull request template, standards, full diff, synthetic host and end-to-end fixture, and the relevant builder layout and output paths. Skimmed the guide manifest and recorded CI results. The Tooling AGENTS.md and docs/review-checklist.md were unavailable.; nothing run (a code review).Checked and fine:
Testing: No commands or tests were run. The pending Rust CI job needs to pass its ignored synthetic end-to-end fixture on this head; the website and guide checks also await their head results.
Overlaps and merge order: #2793 addresses the guide screenshot failure and its manifest change is included in this branch.
Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, after its fix. Nothing was run; a maintainer decides.
2963602b43b61db06c3aThanks @futondestroyer, you were right: the assertions passed and the program itself still looked at the top. BeanBot's
@fix(asked for by HumanBean) moved both of the synthetic host's lookups todata/. I kept that commit as it is and rebased the branch ontomain@f14a5664d.The end-to-end fixture, rerun on Linux as you asked: on Ubuntu 24.04 in WSL 2, with Rust 1.99.1 and Ubuntu's clang and lld 18.1.3, using CI's step as it is (
LONGSHOT_E2E=1 cargo test --workspace --locked --test end_to_end -- --ignored --nocapture), on this headb61db06c3:synthetic: romfs index of 5 files,synthetic: image.bin, 77824 bytes,synthetic: result 0x97e000453d25eac4.compiled {"lifted_80000000.ll"}) and plays again (result 0x97e000453d269374).test result: ok. 1 passed.~/e2e-ünïcødé-游戏(LONGSHOT_E2E_SCRATCH), it passes too.pr status's host-code hint: added and ticked, with what applies. The synthetic host is Linux-only (/proc/self/exe,mmap), and only the Linux-only end-to-end test builds it, so there's no Windows build to check. It's built and run on Linux, and the run above covers UTF-8 paths.Also:
cargo fmt --all --checkpasses on this head.mise run test-changed: 9 passed. The one failure,test_camera_speed.py, fails the same way onmainhere.mainunder this branch.b61db06c3accf23b10bfccf23b10bfd10d130ea9d10d130ea96a01fbd004@review
Recommendation: Request changes. The reported Linux run shows the synthetic fixture building, playing and rebuilding successfully with the corrected paths. The current head’s CI is still running, and its guide-screenshot check has failed. (It stands on L1: The check
CI / Third-party parts and guide screenshots (pull_request)fails on this head and passes on the base branch: Failing after 12s.)The change repairs CI checks for Rust formatting, the synthetic game’s installed data layout and published settings wording. It changes tests and documentation rather than player runtime code.
Blocking (1): must change before merging.
CI / Third-party parts and guide screenshots (pull_request)fails on this head and passes on the base branch: Failing after 12s.@fixcan do L1.Since the last review (on
2963602b43)Still open: L1 (The check
CI / Third-party parts and guide screenshots (pull_request)fails on this head…); L2 (The checkCI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request)fails on th…); L4 (The checkCI / Game-free checks (run_all.py, part 1/2) (pull_request)fails on this head…); L5 (The checkCI / Game-free checks (run_all.py, part 2/2) (pull_request)fails on this head…)Checks: Still running: 7 checks.
More: does it help, other systems, switches, what was read
Does it help: Yes: the author reports the synthetic end-to-end test passing through build, play and rebuild, where it previously failed, and the website check passing after the wording change. This is not a performance change.
Other systems: The synthetic host is used by the Linux-only end-to-end fixture; the author also reports a successful run from a UTF-8 path. The changed documentation is published on the settings page. Player builds and game runtime code are unchanged.
Switches: None.
Reviewed:
6a01fbd004againste4801d6a55: Read the diff, commit list, repository rules and pull request template; inspected the changed files and searched the builder’s layout writers and synthetic fixture references. The combined full-file output was truncated, so not all changed-file content was read in full. Tooling’s AGENTS.md was unavailable in the adjacent checkout.; nothing run (a code review).Checked and fine:
Testing: No commands from the project were run. The author reports successful local formatting, website and Linux end-to-end checks; current-head Rust and website CI are still running, and the guide-screenshot check is reported failing.
Overlaps and merge order: The author identifies #2793 as the guide-screenshot repair and reports it merged.
Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.