tests: fix four source checks broken on main (PREPARE fixture; ini_key renames; long-path out-of-space folder; DrawParameters Ctx) #1793
No reviewers
Labels
No labels
accessibility
autorelease: pending
autorelease: tagged
bug
dependencies
documentation
duplicate
enhancement
github_actions
good first issue
help wanted
invalid
question
testing wanted
wontfix
No milestone
No assignees
1 participant
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Hookshot!1793
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/main-tests-prepare-ini-keys"
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?
Main's Python source checks fail on two tests since today's merges. Every open PR's run shows it, #1625 included:
test_lift_cleanup_error: it runsmake_game.py'ssay/failin its own namespace.say()now reads the globalPREPARE(#1102's--prepare), which raisesNameError: name 'PREPARE' is not defined. The fixture now definesPREPARE=False, its value at the start.test_recomplauncher_json: it only allowedoutput_resas a row whose saved key isn't its name.ini_keyalso savesresolution(Render resolution),upscaling(Upscaler) anddlss, and the manifest usesresolutionandupscaling. The test now reads those renames fromini_keyitself.Tests only, no product change. Both pass locally on main
d71739d2.🤖 Generated with Claude Code
Verified
172d56c556in a clean detached worktree on Windows 11 / Python 3.14.7:python -I -B tests/test_lift_cleanup_error.py: 8 passed.python -I -B tests/test_recomplauncher_json.py: 3 passed.These address the same PREPARE and saved-key failures in the source checks on our rebased PRs. The
upscalingkey is valid:ini_keypreserves it when the menu row is renamed. No product behavior change or full-suite result is claimed by this focused check.One additional Windows baseline failure on main
2ea6386:nx2/test_nup_out_of_space.pycompares the mockedshutil.disk_usage(path)call's path literally. After #1497, the actual path has the Windows extended-length\\?\prefix while the expected path does not. This is separate from this PR's two fixes; the existing main/candidate runs reproduce it equally. The fixture should preserve the identity of the directory being measured, the single call and the check that the partial file still exists at measurement time, as well as its later cleanup assertions.Correction to my original note: this records
disk_usage, notrmtree; I rechecked theusagespy in the source.I am leaving that fix with the current main/CI owners to avoid a duplicate. My masked-clear candidate adds no failure relative to that baseline (267 passed/5 failed/20 skipped versus266/5/20 on Windows).
Tested both commits from this PR on main
ae082989(which now contains #1819), using validation-only head4d13196f30de180da327b0d3eb63b44134ae80a1.Combined source CI: Windows source checks, native F2I lowering, SPIR-V lowering and actionlint passed. Ubuntu finished with 289 passed, 1 failed, 9 skipped. The three fixtures fixed here and both renderer fixtures pass.
The remaining Ubuntu failure is
nx2/test_draw_parameters.py: its extracted production capability block now readsctx.mesh_fallback, but the modeledCtxonly provideswants_mesh_first. Compiler error:no member named 'mesh_fallback' in 'Ctx'. This is a separate fixture dependency; no production failure or all-green result claimed. Sharing the exact integration result rather than opening overlapping CI work.One new main CI fixture issue after #1839: on exact main
692e87df,test_wayland_libdecor_hint.pyfails with Windows LLVM-Mingw:Complete local main suite:290 passed/4 failed/20 skipped; the other three failures are the already recorded NUP path/disk-usage and local SDK limitations. The same four occur on our candidate, so this is baseline scope. Sharing with the existing CI-repair thread rather than mixing it into a renderer feature. No warning/assertion suppression proposed.
Updated onto main (19:00Z, after #1858). Main has since fixed test_lift_cleanup_error and test_recomplauncher_json on its own, so those are taken as main has them. This PR now fixes the four tests still failing on main:
nx2/test_draw_parameters.py: the fixture'sCtxgetsmesh_fallback{}.nx2/test_nup_out_of_space.py: strips the\?\prefix before comparing, on Windows.tests/test_antilag.py: checks Anti-Lag's present stage inpresent_out. That'spresent_image's end since present ahead (#1720/#1858), and the test failed on main after #1858.tests/test_wayland_libdecor_hint.py: skipped on Windows. Its harness compiles host/posix/display_sdl.c with POSIXsetenv, and failed on windows-2022.