ci: skip jobs unrelated to the changed paths #1704

Merged
adriadam10 merged 1 commit from upstream-pr/1704 into main 2026-10-08 17:06:49 +00:00
adriadam10 commented 2026-10-08 17:02:38 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-08T17:02:38Z.


What

Pull requests only run the jobs their changed paths can affect. Pushes to main and manual runs still run everything.

  • Build: a changes job (dorny/paths-filter, some-with-excludes) decides which jobs run.
    • The three Relinker (...) jobs run when core/relinker/**, core/libs/prx/libc/src/specifics/windows/** (the only path outside core/relinker that its CMake reads), the root CMakeLists.txt or build.yml change.
    • linux and windows are skipped when a PR only changes *.md or docs/**.
    • The filter fails open: if changes fails or is skipped, every job runs.
  • Progress report (and Progress comment, which follows it) runs only when core/libs/prx/**, tools/progress.py or its own workflow change, since that's all tools/progress.py reads.

Over the last 300 merged PRs, these filters would have run the relinker jobs on 33, linux/windows on 293 and the progress report on 249. That saves 3 jobs (one of them macOS) on almost 9 in 10 PRs, while 4-5 jobs per push currently queue for up to 15 min at peak hours. No ruleset requires these checks, so a skipped job doesn't block a PR.

Tested

Checked the patterns with picomatch using the options the action passes (dot: true, same include/exclude evaluation) against the files of the last 300 merged PRs and a set of sample paths (docs/**, README.md, the PR template, build.yml, relinker and libc paths). This PR changes build.yml, so all of its own jobs run.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4790201089 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1704). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-08T17:02:38Z. --- ### What Pull requests only run the jobs their changed paths can affect. Pushes to `main` and manual runs still run everything. - `Build`: a `changes` job ([dorny/paths-filter](https://github.com/dorny/paths-filter), `some-with-excludes`) decides which jobs run. - The three `Relinker (...)` jobs run when `core/relinker/**`, `core/libs/prx/libc/src/specifics/windows/**` (the only path outside `core/relinker` that its CMake reads), the root `CMakeLists.txt` or `build.yml` change. - `linux` and `windows` are skipped when a PR only changes `*.md` or `docs/**`. - The filter fails open: if `changes` fails or is skipped, every job runs. - `Progress report` (and `Progress comment`, which follows it) runs only when `core/libs/prx/**`, `tools/progress.py` or its own workflow change, since that's all `tools/progress.py` reads. Over the last 300 merged PRs, these filters would have run the relinker jobs on 33, linux/windows on 293 and the progress report on 249. That saves 3 jobs (one of them macOS) on almost 9 in 10 PRs, while 4-5 jobs per push currently queue for up to 15 min at peak hours. No ruleset requires these checks, so a skipped job doesn't block a PR. ### Tested Checked the patterns with picomatch using the options the action passes (`dot: true`, same include/exclude evaluation) against the files of the last 300 merged PRs and a set of sample paths (`docs/**`, `README.md`, the PR template, `build.yml`, relinker and libc paths). This PR changes `build.yml`, so all of its own jobs run. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed in [TechnicalDebt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs) - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] AI-assisted: yes
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!1704
No description provided.