fix(scripts): the pipeline tour's copy message allows for a full drive, and --keep says romfs/ is shared #1757
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
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Longshot!1757
Loading…
Reference in a new issue
No description provided.
Delete branch "jabbaxipil/Longshot:fix/tour-copy-messages"
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
A follow-up to #898 (merged): its review left three notes that did not block it, and this takes all three. Only wording changes, plus a test for the new line.
copy_game()inscripts/pipeline_tour.pyprinted "no reflinks on this drive" whatever the reason, becausecp's own error text is hidden. The review's example: on a nearly full btrfs drive the clone fails for lack of room and the line blames the file system. It now saystour: the reflink copy failed (no reflinks on this drive, or no room): .... The fallback is unchanged: it checks the free space itself.--keep's help says a kept copy that was not reflinked has the game folder's ownromfs/files, hard-linked, so a later write into eitherromfs/in place changes both.docs/dev/reference/pipeline-states.md(where #1802 moved the tour's docs fromdocs/development.md) gives the copy as about 12 GB; #898 measured 12.3 GB.game_copy()intests/test_pipeline_tour.pyforced the fallback but never read its line, so the old wording would still pass. It now captures the line and asks for "the reflink copy failed" and "no room".To see it on main: run
python3 -I scripts/pipeline_tour.py tourwhere the reflink copy fails for a reason other than the file system; the line blames the drive.See #898.
Testing
Tested: Linux (Ubuntu 26.04.1, kernel 7.0.0-43, ext4), RTX 4070 (NVIDIA 615.71.09), Ryzen 7 5800X3D. No tour was run in the game: the copy's code path is the one #898 ran, and only its line differs.
python3 -I -B tests/test_pipeline_tour.pyat this head (be79a40d, on BeanBot's rebase onto main @f6913dd5): exit 0,... renderer profile and game copy ok.scripts/pipeline_tour.pyput back: exit 1,pipeline tour: the fallback's line does not allow for a full drive: 'tour: no reflinks on this drive: /tmp/.../game-tour gets romfs/ hard-linked and 0.0 GB copied\n'.python3 -I scripts/pipeline_tour.py tour --helpat this head: the--keepentry shows the new text.python3 -I -B tests/run_all.py --strict --jobs 8(whatmise run testruns) at this head and on main @f6913dd5in the same sitting: 834 passed, 105 failed, 18 skipped on both, the same 105 failing. 103 of them are--strictrefusing for test tools this PC lacks (vulkan_headers,spirv_headers,spirv_val,glslang,zstandard,unicorn,dav1d); the other two,test_dev_packsandtest_pipeline_state_computes, fail on main too.f6913dd5; none of its commits touch this PR's files ortests/test_pipeline_tour.py.Still to test:
Measurements
Nothing to measure: two strings of a developer script, one number in the docs and a test.
Risks
Anything that reads the tour's output for the old words "no reflinks on this drive:"; nothing in the repository does (searched
scripts/,tests/,docs/,README.md). A revert is enough; nothing changes for a player.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
mainand passes here.tests/that reads changed source is updated, not weakened.Assisted-by:/Co-Authored-By:trailers.Ready to merge
main, measured again or a comment says why the numbers still hold.@rebase
I rebased this pull request onto
main(f6913dd55f): the new head isa45a21b564.Conflicts resolved
docs/dev/reference/pipeline-states.mdNothing 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.
e6de7691d2a45a21b564Recommendation: Request changes. The revised message addresses the reported ambiguity, but the existing test would also pass with the misleading message restored. The repository requires a fix to have a game-free regression test that fails on the base.
The tour now allows for a full drive in its fallback message, warns that a kept copy can share romfs files, and updates the documented copy size. The changes are small, but the message fix lacks a regression assertion.
Blocking (1): must change before merging.
scripts/pipeline_tour.py:546: The message fix has no regression assertion, although the repository requires fixes to have a game-free test that fails on the base. (more on the line) Do: Capture the fallback output in the game-copy test and assert that it reports the failed reflink without attributing the failure solely to unsupported reflinks.Nits (1): optional.
@fixcan do L1 and L2.Checks: they run again on this head; a failure shows on the pull request.
More: does it help, other systems, switches, what was read
Does it help: Yes: the reported test output shows the revised message on the fallback path. The existing test does not assert that message, so it would not catch its return to the old wording.
Other systems: The tour is Linux-only developer tooling. The diff changes no copying, game, rendering, or platform behavior.
Switches: --keep remains off by default; only its help changes. No switches were added or removed.
Reviewed:
a45a21b564againstf6913dd55f: Read AGENTS.md, CONTRIBUTING.md, the pull request template, the diff and commit, the changed reference page, the tour script and the copy test. Reviewed relevant standards and searched callers and references. The requested docs/review-checklist.md and adjacent Tooling checkout were absent. No recorded runs, translations or generated files changed.; nothing run (a code review).Checked and fine:
Testing: No commands from the project or tests were run, as requested. The author reports the tour test and help output passing; CI has not run on this head.
Overlaps and merge order: None found in the supplied review context; network access was unavailable.
Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, after its rebase. Nothing was run; a maintainer decides.
@ -544,3 +544,3 @@raise SystemExit("pipeline_tour: copying %s besides its romfs/ needs %.1f GB and %.1f GB more for the runs; %.1f GB ""free" % (game, need / 2 ** 30, COPY_SPARE / 2 ** 30, free / 2 ** 30))print("tour: no reflinks on this drive: %s gets romfs/ hard-linked and %.1f GB copied" % (copy, need / 2 ** 30), flush=True)print("tour: the reflink copy failed (no reflinks on this drive, or no room): %s gets romfs/ hard-linked and %.1f GB copied"L1 (blocking): The message fix has no regression assertion, although the repository requires fixes to have a game-free test that fails on the base.
When: The existing game_copy test forces the fallback but never captures or checks its output. Restoring the old message that blames the filesystem would still pass that test.
Do: Capture the fallback output in the game-copy test and assert that it reports the failed reflink without attributing the failure solely to unsupported reflinks.
Thanks for the rebase and the review. Both points are taken, in
be79a40don top of the rebase:game_copy()intests/test_pipeline_tour.pynow captures the fallback's line and asks for "the reflink copy failed" and "no room". With main'sscripts/pipeline_tour.pyput back it fails:the fallback's line does not allow for a full drive: 'tour: no reflinks on this drive: ...'. At this head it passes.docs/dev/reference/pipeline-states.md, and it is rewritten to the new template from #1802, which the description check was failing on.The whole
run_all.py --strictgives the same results on this head as on main @f6913dd5(details under Testing). The Guide screenshots check fails on main too, on files this PR does not touch.@review
Recommendation: Approve. The fallback message now allows for a full drive, and the added game-free test checks the wording and is reported to fail on the base. The description also names the correct documentation page. Recommend approval; not approved on the forge.
The tour gives developers a less misleading copy-failure message, warns that a kept fallback copy shares romfs files, and documents the approximate copy size. The change is limited to wording and a regression test.
Since the last review (on
a45a21b564)Resolved: L1 (The message fix has no regression assertion, although the repository requires fixes to hav…); L2 (The pull request says the size update is in docs/development.md, but the changed page is d…)
Checks: Still running: 10 checks.
More: does it help, other systems, switches, what was read
Does it help: Yes: the reported test passes at
be79a40dand fails with the base script's old message. This is not a performance change.Other systems: The copy and free-space logic are unchanged; the changed output could affect external consumers that match the old message. The game, renderer and launcher are unaffected.
Switches: No switches added, changed or removed.
Reviewed:
be79a40d14againstf6913dd55f: Read AGENTS.md, CONTRIBUTING.md, docs/dev/standards.md, the pull request template, the full diff, the copy implementation and its test. The remaining portions of the changed code files were skimmed; the combined file output was truncated. The adjacent 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 for this review. The author reports the targeted test passing on this head and failing with the base script, and identical strict-suite failures on the head and base. CI is still running.
Overlaps and merge order: None found in the supplied information.
Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.