fix(tools): accept skips on displays without 120 Hz #4955

Merged
Ondra97 merged 2 commits from upstream-pr/4955 into main 2026-10-14 02:54:21 +00:00
Ondra97 commented 2026-10-13 06:23:29 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Ondra97 on 2026-10-13T06:23:29Z.


What

guest_video_out_high_frame_rate returns 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 main c2565f014:

  • The original policy reproduced the reported multiline acceptance bug.
  • The review regressions reproduced 24 baseline failing subcases, including 22 mixed/multiline false acceptances.
  • Skip checker suite: 16/16 tests pass, including stdout/stderr/skip metadata, repeated known reasons, blank lines, unrelated reasons and disabled tests.
  • Complete Python tools suite: 249/249 tests pass.
  • Conventions and whitespace checks pass.
  • Existing overlap inspection found no other PR changing these two files.

This changes only the Python policy. No runtime library change, full runtime build or title run.

Checklist

  • Based on current main; no other open PR implements the same fix
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw; no silent stub added
  • No notes, investigation Markdown files or images added to the repository
  • New third-party code is a submodule built from source: no dependency added
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Unblocks: none
  • AI-assisted: yes (Codex)
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4839262418 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4955). Originally posted by [Ondra97](https://github.com/Ondra97) on 2026-10-13T06:23:29Z. --- ### What `guest_video_out_high_frame_rate` returns 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](https://github.com/boykopovar/AnyPS5/pull/4955#issuecomment-6139635539). ### Tested Windows 11 x64, Python 3.14; rebased onto current `main` `c2565f014`: - The original policy reproduced the reported multiline acceptance bug. - The review regressions reproduced 24 baseline failing subcases, including 22 mixed/multiline false acceptances. - Skip checker suite: 16/16 tests pass, including stdout/stderr/skip metadata, repeated known reasons, blank lines, unrelated reasons and disabled tests. - Complete Python tools suite: 249/249 tests pass. - Conventions and whitespace checks pass. - Existing overlap inspection found no other PR changing these two files. This changes only the Python policy. No runtime library change, full runtime build or title run. ### Checklist - [x] Based on current `main`; no other open PR implements the same fix - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except technical debt - [x] Unimplemented paths throw; no silent stub added - [x] No notes, investigation Markdown files or images added to the repository - [x] New third-party code is a submodule built from source: no dependency added - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Unblocks: none - [x] AI-assisted: yes (Codex)
MarcZX10 commented 2026-10-13 06:25:02 +00:00 (Migrated from github.com)

Imported 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_LIMITATION uses re.MULTILINE, and skips() joins the skip reason, stdout, and stderr before searching. So this output is accepted as expected:

skipped, current display does not provide 120 Hz
unexpected failure detail

The $ plus MULTILINE anchors 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.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6139635539 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4955#issuecomment-6139635539). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-13T06:25:02Z. --- I found one gap in the “trailing unrelated text” guard. `HIGH_REFRESH_LIMITATION` uses `re.MULTILINE`, and `skips()` joins the skip reason, stdout, and stderr before searching. So this output is accepted as expected: ```text skipped, current display does not provide 120 Hz unexpected failure detail ``` The `$` plus `MULTILINE` anchors 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.
Ondra97 commented 2026-10-13 07:41:41 +00:00 (Migrated from github.com)

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.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6140766302 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4955#issuecomment-6140766302). Originally posted by [Ondra97](https://github.com/Ondra97) on 2026-10-13T07:41:41Z. --- @MarcZX100 Thanks for catching this. Fixed in [74e239408](https://github.com/boykopovar/AnyPS5/commit/74e239408b61b1a64f80314908f14cbfef865e96). 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.
coltken95 commented 2026-10-13 18:55:31 +00:00 (Migrated from github.com)

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 main 9d0a41d5a:

  • With the PR: tools/tests/test_check_skips.py passes.
  • With main's tools/check_skips.py and the PR's tests: it fails.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6152870329 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4955#issuecomment-6152870329). Originally posted by [coltken95](https://github.com/coltken95) on 2026-10-13T18:55:31Z. --- Tested on Linux x86-64 (Python 3.13), with 74e239408 (including the multiline fix) merged into main 9d0a41d5a: - With the PR: `tools/tests/test_check_skips.py` passes. - With main's `tools/check_skips.py` and the PR's tests: it fails. AI-assisted: yes (Claude Code)
Sign in to join this conversation.
No reviewers
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!4955
No description provided.