test: test_vcore_fs_open and test_vcore_video_acquire build again with env_on #2380
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!2380
Loading…
Reference in a new issue
No description provided.
Delete branch "test/vcore-video-acquire-env-on"
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?
What this is for: main's game-free checks pass again. Since #2042 met #2301 and #2322 on main today,
tests/test_vcore_fs_open.pyandtests/test_vcore_video_acquire.pyno longer compile, sotests/run_all.pyfails on main (#1929). What is measured: the two tests with g++ and clang++ on this branch and on main without it, each test against the source from before the fix it guards, and the whole oftests/run_all.pyon Arch Linux. Not measured: the Windows runners (llvm-mingw clang++, MSVC).Problem
env_on()ingpu/vk/compat/hookshot_env.hthe rule for on/off switches. Among others it changed OpenFile'sHOS_NO_MOVIESread inhost/nn_fs.canddec_acquire'sHOS_VIDEO_NO_CATCHUPread inhost/nn_video.cfromgetenv()toenv_on(). It also gave every test that cuts code out of the sources the header, with-include.49f75dc8, before #2042, where those lines still usedgetenv. Neither pull request's head had #2042 in it, and only the title check ran on either of them. #2042's own run could not have caught it either: neither test existed yet.env_on, and neither fixture declares it:(g++:
error: 'env_on' was not declared in this scope, at the same lines.)What changed
tests/test_vcore_fs_open.py,tests/test_vcore_video_acquire.py:ENV_ON_Hand"-include", ENV_ON_Hin the compile command. These are the same two lines #2042 added to the other tests that cut code out of the sources (tests/test_multiwait_wake.py,tests/test_guest_copies.pyand others). Nothing else changed, and no source file.How it was tested
Arch Linux, kernel 7.2.15, g++ 16.2.1, clang++ 23.1.3, 2026-11-11. Branch head
f7fb1d3aon mainb744b1ec.ok.b744b1ec, without this commit, with both compilers: the compile errors above.nn_fs.cofb75f2c1b(before #2301):FAIL: host_path (where a prompt file is built at its first open) runs without the core. Onnn_video.cofaab7daf2(before #2322):FAIL: the decoding runs without the coreand seven more.tests/test_vcore_escape.py(#2302, now on main),tests/test_invalidate_vcore.pyandtests/test_multiwait_wake.py. So does #2340'stests/test_import_buffer_binding.py.tests/run_all.py, run on this commit before its rebase ontob744b1ec(it was onf9286c45then): 373 passed, 2 failed, 10 skipped. The two failures fail on this machine whatever the change:test_updater_asset_digest.py(only the .NET 10 SDK is installed here, and the fixture needs net8.0) andtest_wayland_libdecor_hint.py(clang 23's-Wunused-but-set-globalunder-Werror). After the rebase I rantest_vcore_fs_open.py,test_vcore_video_acquire.py,test_vcore_escape.pyandtest_invalidate_vcore.pyagain with both compilers.Not tested
-includeof this header is the same one #2042 gave the other tests.Risks
Fixes #2379.
Assisted-by: Claude Opus 5.5
Co-Authored-By: Claude Opus 5.5 [email protected]
Tested
f7fb1d3aon Windows with llvm-mingw Clang: both fixtures compile and pass. Both also still reject their pre-fix production source (nn_fs.catb75f2c1b,nn_video.cataab7daf2) after compiling successfully, so the causal checks remain effective.I reproduced the missing-
env_onerrors on clean main too. This covers the gap I was investigating; I'll leave the fix here rather than open another PR. MSVC and game/runtime behavior were not tested.Thanks @Arkex-ai, that is the Windows run I couldn't do here. MSVC is still untested, as you say.
Looks good. #2301 and #2322 are both merged, and main (
b744b1ec) still has neither-includein these two tests, so the fix is needed on main as it stands.The diff is just the
ENV_ON_Hconstant and-include ENV_ON_Hin the compile line of both tests, the same as #2042 gave the other tests that cut code out of the sources.Pathis already imported before the constant. Nothing is weakened: no assertions, fixtures or sources changed, and Arkex-ai's Windows llvm-mingw run (plus the author's causal checks against the pre-fix sources) shows both tests still reject the old code. MSVC remains untested, as noted.CI: the appimage failure is the runner not resolving archive.ubuntu.com (apt), unrelated to this change. The rest was still pending when I looked.
github-sync referenced this pull request2026-11-12 06:22:54 +00:00