CI: the VideoOut display tests never run on Linux or Windows; under Xvfb they run in 10 s and caught the EOP flip regression #6899

Closed
opened 2026-10-16 17:11:11 +00:00 by hashaam1217 · 4 comments
hashaam1217 commented 2026-10-16 17:11:11 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by hashaam1217 on 2026-10-16T17:11:11Z.


What

17 VideoOut tests skip on the Linux CI job, and Windows CI skips them as well: video_out_flip_{controls,eop,eop_aftergpu,eop_main,labels,labels_main,lifetime,overlay,reopen,unopened}, video_out_frame_dump_queue, video_out_hdr_present and guest_video_out_{hdr,high_frame_rate,output_mode,resolution_status,wqhd_detection}. They use SDL_VIDEODRIVER=offscreen (the ANYPS5_VIDEO_OUT_TEST_DRIVER default from #3810), and SDL2's offscreen driver has no Vulkan surface, so each one reports no display or Vulkan device. tools/check_skips.py accepts that reason, so the job stays green.

This hides real regressions. #1202 (pipelined draws on by default) broke presentation of EOP flips from #5539: video_out_flip_eop and _eop_main fail and _eop_aftergpu times out. CI could not see it; it was found by running the tests by hand and bisecting. The fix is #6616.

Running them under Xvfb

On Ubuntu 24.04 with lavapipe (Mesa 25.2.8):

Xvfb :99 -screen 0 1920x1080x24 -nolisten tcp &
cmake -S . -B build -DANYPS5_VIDEO_OUT_TEST_DRIVER=x11
DISPLAY=:99 ANYPS5_GPU=llvmpipe ctest --test-dir build -R video_out

On main plus #6616, 16 of the 17 run and pass, in 9.9 s for all 21 video_out tests. guest_video_out_high_frame_rate still skips, because Xvfb offers no 120 Hz mode. check_skips.py already accepts that reason. On main without #6616, the three EOP tests fail as described above.

A hardware Vulkan driver cannot present on Xvfb, which has no DRI3: Intel ANV fails with No DRI3 support detected. So this works with lavapipe, which is what the Linux job already uses.

Suggestion

On the self-hosted Linux runner: install xvfb, configure with -DANYPS5_VIDEO_OUT_TEST_DRIVER=x11, and run the ctest step under xvfb-run -a (or with a started Xvfb and DISPLAY set). Once that is in place, check_skips.py could stop accepting no display on the Linux job, so a lost display shows up as a failure instead of a skip. The runner is yours to configure, so I have not opened a workflow PR. I'm happy to send one if this direction is wanted.

AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5888193779 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/6899). Originally posted by [hashaam1217](https://github.com/hashaam1217) on 2026-10-16T17:11:11Z. --- ### What 17 VideoOut tests skip on the Linux CI job, and Windows CI skips them as well: `video_out_flip_{controls,eop,eop_aftergpu,eop_main,labels,labels_main,lifetime,overlay,reopen,unopened}`, `video_out_frame_dump_queue`, `video_out_hdr_present` and `guest_video_out_{hdr,high_frame_rate,output_mode,resolution_status,wqhd_detection}`. They use `SDL_VIDEODRIVER=offscreen` (the `ANYPS5_VIDEO_OUT_TEST_DRIVER` default from #3810), and SDL2's offscreen driver has no Vulkan surface, so each one reports `no display or Vulkan device`. `tools/check_skips.py` accepts that reason, so the job stays green. This hides real regressions. #1202 (pipelined draws on by default) broke presentation of EOP flips from #5539: `video_out_flip_eop` and `_eop_main` fail and `_eop_aftergpu` times out. CI could not see it; it was found by running the tests by hand and bisecting. The fix is #6616. ### Running them under Xvfb On Ubuntu 24.04 with lavapipe (Mesa 25.2.8): ``` Xvfb :99 -screen 0 1920x1080x24 -nolisten tcp & cmake -S . -B build -DANYPS5_VIDEO_OUT_TEST_DRIVER=x11 DISPLAY=:99 ANYPS5_GPU=llvmpipe ctest --test-dir build -R video_out ``` On `main` plus #6616, 16 of the 17 run and pass, in 9.9 s for all 21 `video_out` tests. `guest_video_out_high_frame_rate` still skips, because Xvfb offers no 120 Hz mode. `check_skips.py` already accepts that reason. On `main` without #6616, the three EOP tests fail as described above. A hardware Vulkan driver cannot present on Xvfb, which has no DRI3: Intel ANV fails with `No DRI3 support detected`. So this works with lavapipe, which is what the Linux job already uses. ### Suggestion On the self-hosted Linux runner: install `xvfb`, configure with `-DANYPS5_VIDEO_OUT_TEST_DRIVER=x11`, and run the ctest step under `xvfb-run -a` (or with a started Xvfb and `DISPLAY` set). Once that is in place, `check_skips.py` could stop accepting `no display` on the Linux job, so a lost display shows up as a failure instead of a skip. The runner is yours to configure, so I have not opened a workflow PR. I'm happy to send one if this direction is wanted. AI-assisted: yes.
MarcZX10 commented 2026-10-16 19:06:39 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-16T19:06:39Z.


I’m prototyping the Linux CI change from your suggestion: configure ANYPS5_VIDEO_OUT_TEST_DRIVER=x11 and run CTest under xvfb-run, with ANYPS5_GPU=llvmpipe. The repo’s build instructions cover X11/XRandR development packages but not the self-hosted runner’s Xvfb package. Is xvfb-run already installed on the [self-hosted, linux, x64, anyps5] runner, or should the workflow install/provision it? I’m keeping this separate from the EOP production fix in #6616.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6222749267 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/6899#issuecomment-6222749267). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-16T19:06:39Z. --- I’m prototyping the Linux CI change from your suggestion: configure `ANYPS5_VIDEO_OUT_TEST_DRIVER=x11` and run CTest under `xvfb-run`, with `ANYPS5_GPU=llvmpipe`. The repo’s build instructions cover X11/XRandR development packages but not the self-hosted runner’s Xvfb package. Is `xvfb-run` already installed on the `[self-hosted, linux, x64, anyps5]` runner, or should the workflow install/provision it? I’m keeping this separate from the EOP production fix in #6616.
MarcZX10 commented 2026-10-16 19:52:39 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-16T19:52:39Z.


I opened #6932 with the Linux X11/Xvfb CI change. The workflow checks for both xvfb-run and xauth, and installs xvfb/xauth with apt if either is missing. The focused VideoOut target builds locally, but runtime assertions on my host stop at the emulator CPU feature guard; I have not claimed a local CTest pass. The PR checks are still running, with the Windows relinker CTest step pending.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6223500536 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/6899#issuecomment-6223500536). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-16T19:52:39Z. --- I opened #6932 with the Linux X11/Xvfb CI change. The workflow checks for both `xvfb-run` and `xauth`, and installs `xvfb`/`xauth` with apt if either is missing. The focused VideoOut target builds locally, but runtime assertions on my host stop at the emulator CPU feature guard; I have not claimed a local CTest pass. The PR checks are still running, with the Windows relinker CTest step pending.
MarcZX10 commented 2026-10-16 19:53:41 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-16T19:53:41Z.


Update: #6932 has now passed its PR checks, including the Linux, macOS, and Windows relinker test jobs. The full Linux/Windows build suites are skipped on pull requests by the workflow conditions; the Xvfb VideoOut configuration will be exercised by the full Linux build on main after merge. My local VideoOut test attempt remains blocked before assertions by this host’s CPU feature guard.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6223516899 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/6899#issuecomment-6223516899). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-16T19:53:41Z. --- Update: #6932 has now passed its PR checks, including the Linux, macOS, and Windows relinker test jobs. The full Linux/Windows build suites are skipped on pull requests by the workflow conditions; the Xvfb VideoOut configuration will be exercised by the full Linux build on `main` after merge. My local VideoOut test attempt remains blocked before assertions by this host’s CPU feature guard.
MayankManas commented 2026-10-20 11:05:30 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by MayankManas on 2026-10-20T11:05:30Z.


Windows results with a real display, for comparison with the Xvfb run above. ANYPS5_VIDEO_OUT_TEST_DRIVER=windows, ctest -R video_out -V with ANYPS5_GPU per device, ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1, VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation. Windows 11 Pro 26200, WinLibs GCC 15.2.0 r7, Release, main e9cc4a8ef, display in HDR.

With offscreen, 13 of the 14 video_out_flip_* tests skip (decode needs no window). With windows:

GPU Passed Skipped Failed
NVIDIA GeForce RTX 5070 Ti, driver 617.42 24 1 1: video_out_hdr_probe
Intel UHD Graphics 770, driver 32.0.101.7088 23 1 2: video_out_hdr_probe, video_out_flip_eop_aftergpu

All 14 flip tests, guest_video_out_* and video_out_hdr_present pass on the NVIDIA GPU. The skip is guest_video_out_wqhd_detection_no_vulkan. No VUID- and no was not found but was requested by env var VK_INSTANCE_LAYERS in either log.

Both failures are in the tests, not in VideoOut, and CI cannot reach either of them:

  • #8348: video_out_hdr_probe expects no Windows HDR monitor report and fails when the display is in HDR.
  • #8349: video_out_flip_eop_aftergpu's 100M-iteration busy loop runs past the Windows GPU timeout on the UHD 770, and the test aborts with VK_ERROR_DEVICE_LOST.

AI-assisted: yes

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6289443375 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/6899#issuecomment-6289443375). Originally posted by [MayankManas](https://github.com/MayankManas) on 2026-10-20T11:05:30Z. --- Windows results with a real display, for comparison with the Xvfb run above. `ANYPS5_VIDEO_OUT_TEST_DRIVER=windows`, `ctest -R video_out -V` with `ANYPS5_GPU` per device, `ANYPS5_REQUIRE_VULKAN=1`, `ANYPS5_NO_SHADER_CACHE=1`, `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`. Windows 11 Pro 26200, WinLibs GCC 15.2.0 r7, Release, `main` e9cc4a8ef, display in HDR. With `offscreen`, 13 of the 14 `video_out_flip_*` tests skip (`decode` needs no window). With `windows`: | GPU | Passed | Skipped | Failed | |---|---|---|---| | NVIDIA GeForce RTX 5070 Ti, driver 617.42 | 24 | 1 | 1: `video_out_hdr_probe` | | Intel UHD Graphics 770, driver 32.0.101.7088 | 23 | 1 | 2: `video_out_hdr_probe`, `video_out_flip_eop_aftergpu` | All 14 flip tests, `guest_video_out_*` and `video_out_hdr_present` pass on the NVIDIA GPU. The skip is `guest_video_out_wqhd_detection_no_vulkan`. No `VUID-` and no `was not found but was requested by env var VK_INSTANCE_LAYERS` in either log. Both failures are in the tests, not in VideoOut, and CI cannot reach either of them: - #8348: `video_out_hdr_probe` expects no Windows HDR monitor report and fails when the display is in HDR. - #8349: `video_out_flip_eop_aftergpu`'s 100M-iteration busy loop runs past the Windows GPU timeout on the UHD 770, and the test aborts with `VK_ERROR_DEVICE_LOST`. AI-assisted: yes
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5#6899
No description provided.