fix(ci): skip absent overlap reports #4534

Closed
MiniRML wants to merge 2 commits from upstream-pr/4534 into main
MiniRML commented 2026-10-12 14:55:28 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MiniRML on 2026-10-12T14:55:28Z.


What

When the overlap report directory contains no Markdown reports, Bash leaves *.md unexpanded. The workflow then requests issues/*/comments, causing a 404 and a failed run on forks with no open PRs. Skip entries that are not files before accessing GitHub. Existing reports still follow the same comment update path.

Tested

Windows 11, Python 3.13 and Git for Windows Bash. The new workflow regression executes the actual comment-processing script with local GitHub/jq substitutes: empty and non-Markdown-only directories fail on the base, then pass with the fix; a real report still reads and creates its comment. No network calls are made by the regression.

  • Focused test_pr_overlap.py: 7 tests passed.
  • Complete tools suite: 201 tests, 199 passed and 2 symlink tests skipped because creating their links is unavailable on this Windows setup.
  • Conventions and whitespace checks passed. Merge simulation against #988 was clean; it adds reporting rather than addressing the empty glob.
  • No title or PS5 hardware needed: this fixes the workflow's handling of an empty report directory. No emulator runtime behavior changed.

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 runtime stubs changed
  • No notes, investigation files or images added to the repository
  • New third-party code is a submodule built from source; none added
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Unblocks: none
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4831145659 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4534). Originally posted by [MiniRML](https://github.com/MiniRML) on 2026-10-12T14:55:28Z. --- ### What When the overlap report directory contains no Markdown reports, Bash leaves `*.md` unexpanded. The workflow then requests `issues/*/comments`, causing a 404 and a failed run on forks with no open PRs. Skip entries that are not files before accessing GitHub. Existing reports still follow the same comment update path. ### Tested Windows 11, Python 3.13 and Git for Windows Bash. The new workflow regression executes the actual comment-processing script with local GitHub/jq substitutes: empty and non-Markdown-only directories fail on the base, then pass with the fix; a real report still reads and creates its comment. No network calls are made by the regression. - Focused `test_pr_overlap.py`: 7 tests passed. - Complete tools suite: 201 tests, 199 passed and 2 symlink tests skipped because creating their links is unavailable on this Windows setup. - Conventions and whitespace checks passed. Merge simulation against #988 was clean; it adds reporting rather than addressing the empty glob. - No title or PS5 hardware needed: this fixes the workflow's handling of an empty report directory. No emulator runtime behavior changed. ### 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 runtime stubs changed - [x] No notes, investigation files or images added to the repository - [x] New third-party code is a submodule built from source; none added - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Unblocks: none - [x] AI-assisted: yes
xXPBSXx commented 2026-10-13 13:17:54 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-13T13:17:54Z.


Windows test note: this branch (base 2a5eca11c) no longer merges onto current main 0f2683cb7; git merge-tree reports a conflict in .github/workflows/pr-overlap.yml, so I could not run its checks on a merged tree. A rebase onto current main would allow a Windows run.

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6146445871 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4534#issuecomment-6146445871). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-10-13T13:17:54Z. --- Windows test note: this branch (base `2a5eca11c`) no longer merges onto current `main` `0f2683cb7`; `git merge-tree` reports a conflict in `.github/workflows/pr-overlap.yml`, so I could not run its checks on a merged tree. A rebase onto current `main` would allow a Windows run. AI-assisted (Claude Code).
adriadam10 commented 2026-10-13 14:14:20 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-13T14:14:20Z.


Closing as obsolete: current main already has shopt -s nullglob before the for file in "$out"/*.md loop in .github/workflows/pr-overlap.yml, so an empty report directory no longer iterates and no issues/*/comments request is made. The branch also conflicts with that workflow now, and the new test extracts the script from the old version of it.

Feel free to reopen rebased if you can show a case that still fails on current main.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6147562020 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4534#issuecomment-6147562020). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-13T14:14:20Z. --- Closing as obsolete: current `main` already has `shopt -s nullglob` before the `for file in "$out"/*.md` loop in `.github/workflows/pr-overlap.yml`, so an empty report directory no longer iterates and no `issues/*/comments` request is made. The branch also conflicts with that workflow now, and the new test extracts the script from the old version of it. Feel free to reopen rebased if you can show a case that still fails on current `main`.

Pull request closed

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!4534
No description provided.