video_out_flip_controls failed once on the fork's linux CI job: the VideoOut tests rewrite the same app0/sce_sys/param.json in one working directory under ctest --parallel 4 #2520
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Imported from boykopovar/AnyPS5. Originally posted by SleglJan on 2026-10-10T00:40:57Z.
What
A fork Build run of fork PR #20 (libSceAmpr only, nothing in VideoOut) merged into
maina291ae0f(run 38008483069, linux job):video_out_flip_controlsfailed in 0.01 s with(
core/libs/prx/libkernel/AppMetadata/src/ParamJsonParser.cppL47). The log order isStart 462: guest_video_out_wqhd_detection, thenTest #460: video_out_flip_controls ***Failed, then the wqhd test's skip;video_out_flip_decodeandvideo_out_flip_lifetimehad started just before, so the timestamps point at the wqhd test as the writer, not prove it.The tests registered in
core/libs/prx/libSceVideoOut/CMakeLists.txtshare one working directory (build/core/libs/prx/libSceVideoOut, noWORKING_DIRECTORY), and the flip tests (core/libs/prx/libSceVideoOut/tests/Flip.cppL549, all three modes) andcore/libs/tests/GuestVideoOutWqhdDetection.cpp(L39) each truncate and rewriteapp0/sce_sys/param.jsonwhen they start; the linux job runsctest --parallel 4(.github/workflows/build.yml).DisplayWindow::createreads the title from that file (GetAppTitle_nid_postfix,core/libs/prx/libSceVideoOut/src/DisplayWindow.cppL60) beforeSDL_CreateWindow(L63), so a half-written file fails the parse before theVulkan supporterror thatFlip.cppL566 turns into a skip. In the six other fork linux runs tonight the test skipped.core/libs/tests/GuestAppContent.cppwrites the same relative path but creates its own directory and changes into it first (L35–39).guest_video_out_resolution_statusaborted in the same run as in every linux run since #1714 (#2509). Open #2514 gives it the guard and makes the flip tests print their skip line; it does not change the shared directory or the writes.libkernel's tests with their own files run in their own directory (core/libs/prx/libkernel/CMakeLists.txtL89). Not opening a PR under the intake pause.AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by arcwiser on 2026-10-10T01:14:02Z.
I prepared and Windows-tested a broader isolation fix on
arcwiser:fix/videoout-test-isolation, commit7e982a52.Instead of serialising the tests or assigning static CTest directories, it adds a reusable
VideoOutTestEnvironmentfixture. Every process now:/app0app0/sce_sys/param.jsonThe flip modes and both guest VideoOut metadata tests use the same fixture. This also removes a hidden execution-order dependency in
guest_video_out_resolution_status: that test readparam.jsonbut never created it, so it only worked when another test had left the shared file behind.Windows 10.0.26200.0, WinLibs GCC 15.2.0/Ninja, Release:
git diff --check, and test-registration checks passedI have not opened a PR because the repository is currently enforcing the contributor intake pause. The branch is ready for an eligible maintainer/contributor to review or carry when appropriate.
AI-assisted: yes.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-10T09:35:37Z.
Independent validation on latest upstream
mainI reapplied
arcwiser:fix/videoout-test-isolation(7e982a52) to upstreammainata29ef5921in a detached local worktree. The four-file change applies cleanly.guest_video_out_resolution_status_tests,guest_video_out_wqhd_detection_tests,video_out_flip_tests(Linux Release)maingit diff --checkanyps5-video-out-*directories after testsvideo_out_flip_decoderan and passed. The skipped cases do not exercise display/Vulkan behavior; the Windows repeated parallel runs in the implementation report remain the runtime evidence for that environment. The changed files did not differ between the previously validated3afc7846anda29ef5921, but I rebuilt and reran all seven affected CTests on the latest base.I also checked the original Linux run linked in this issue:
video_out_flip_controlsfailed withunexpected end of param.jsonasguest_video_out_wqhd_detectionstarted. Giving each process a unique temporary working directory removes that shared-file race across independently running test jobs, including jobs that do not share CTest's resource lock.This validates arcwiser's patch; I have not copied or submitted it as my own. The issue remains open and intake still requires 20 merged PRs; my account has 15.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-10T17:19:46Z.
Fix submitted for review: #2878
The fix gives each VideoOut test process a unique temporary working directory and creates its own
app0/sce_sys/param.jsonbefore calling VideoOut APIs. It also creates the fixture forguest_video_out_resolution_status, which previously depended on a file left by another test.anyps5-video-out-*directories remainedArcwiser's original Windows validation in the earlier comment covers 50 consecutive four-way-parallel CTest runs. The PR preserves the original commit author and links to that candidate.