fix(tools): accept skips on displays without 120 Hz #4955
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4955"
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 Ondra97 on 2026-10-13T06:23:29Z.
What
guest_video_out_high_frame_ratereturns CTest skip code 77 when the display cannot provide 120 Hz, after checking that configuring the unsupported mode is rejected. The checker previously treated its diagnostic as unexpected in Linux and Windows jobs.Accept the known display limitation only when every nonempty normalized reason from JUnit skip metadata, stdout and stderr matches it. Blank lines and repeated copies of the same reason are allowed; any additional diagnostic, including on another line or in another output channel, is rejected. Other device policies and disabled-test handling retain their behaviour.
This also addresses the multiline gap identified in review.
Tested
Windows 11 x64, Python 3.14; rebased onto current
mainc2565f014:This changes only the Python policy. No runtime library change, full runtime build or title run.
Checklist
main; no other open PR implements the same fixImported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-13T06:25:02Z.
I found one gap in the “trailing unrelated text” guard.
HIGH_REFRESH_LIMITATIONusesre.MULTILINE, andskips()joins the skip reason, stdout, and stderr before searching. So this output is accepted as expected:The
$plusMULTILINEanchors the known reason to one line, but does not require it to be the entire output; the current negative test only adds unrelated text on the same line. Could you add a multiline negative case and require the recognized diagnostic to be the only nonempty skip/output reason? Otherwise an unrelated diagnostic emitted by the skipped test can be hidden by the accepted display line.Imported from boykopovar/AnyPS5. Originally posted by Ondra97 on 2026-10-13T07:41:41Z.
@MarcZX100 Thanks for catching this. Fixed in 74e239408.
The 120 Hz exception now requires every nonempty normalized reason from skip metadata, stdout and stderr to match the known diagnostic. Blank lines and repeated copies of that same reason are allowed; any additional diagnostic is rejected.
The regressions cover your multiline example and mixed output/metadata cases in both jobs. Validation on Windows 11 with Python 3.14: 16/16 skip-checker tests and 249/249 Python tools tests passed.
Imported from boykopovar/AnyPS5. Originally posted by coltken95 on 2026-10-13T18:55:31Z.
Tested on Linux x86-64 (Python 3.13), with
74e239408(including the multiline fix) merged into main9d0a41d5a:tools/tests/test_check_skips.pypasses.tools/check_skips.pyand the PR's tests: it fails.AI-assisted: yes (Claude Code)