ci: skip jobs unrelated to the changed paths #1704
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1704"
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 adriadam10 on 2026-10-08T17:02:38Z.
What
Pull requests only run the jobs their changed paths can affect. Pushes to
mainand manual runs still run everything.Build: achangesjob (dorny/paths-filter,some-with-excludes) decides which jobs run.Relinker (...)jobs run whencore/relinker/**,core/libs/prx/libc/src/specifics/windows/**(the only path outsidecore/relinkerthat its CMake reads), the rootCMakeLists.txtorbuild.ymlchange.linuxandwindowsare skipped when a PR only changes*.mdordocs/**.changesfails or is skipped, every job runs.Progress report(andProgress comment, which follows it) runs only whencore/libs/prx/**,tools/progress.pyor its own workflow change, since that's alltools/progress.pyreads.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 changesbuild.yml, so all of its own jobs run.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)