ci(conventions): exempt cmake/SystemDeps.cmake from the system-dependency rule #2373

Merged
011010 merged 1 commit from upstream-pr/2373 into main 2026-10-11 08:26:04 +00:00
011010 commented 2026-10-09 16:47:15 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by 011010 on 2026-10-09T16:47:15Z.


What

Exempts cmake/SystemDeps.cmake from the system-dependency conventions rule, so the opt-in system resolution added by #921 can pass the Conventions check.

The exemption has to live in main: conventions.yml checks out the base SHA and runs tools/check_conventions.py from there, so the copy added inside #921 is ignored until this lands.

Tested

  • python3 -I tools/check_conventions.py --base main --head ci/conventions-systemdeps-exemption on this branch: All conventions checks passed.
  • Running the same checker over #921's head (pr921-rebased) against main: the system-dependency findings in cmake/SystemDeps.cmake drop from 6 to 0, with no new finding in any other file.

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:4803317579 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2373). Originally posted by [011010](https://github.com/011010) on 2026-10-09T16:47:15Z. --- ### What Exempts `cmake/SystemDeps.cmake` from the `system-dependency` conventions rule, so the opt-in system resolution added by #921 can pass the Conventions check. The exemption has to live in `main`: `conventions.yml` checks out the base SHA and runs `tools/check_conventions.py` from there, so the copy added inside #921 is ignored until this lands. ### Tested - `python3 -I tools/check_conventions.py --base main --head ci/conventions-systemdeps-exemption` on this branch: `All conventions checks passed`. - Running the same checker over #921's head (`pr921-rebased`) against `main`: the `system-dependency` findings in `cmake/SystemDeps.cmake` drop from 6 to 0, with no new finding in any other file. ### 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 - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed in TechnicalDebt - [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
011010 commented 2026-10-09 23:58:25 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by 011010 on 2026-10-09T23:58:25Z.


This is the prerequisite for #921: the Conventions job runs the trusted base script, so #921's own exemption is ignored until this lands in main. Could someone review/merge it so I can rebase #921 and drop the duplicate hunk there? @adriadam10

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6091319717 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2373#issuecomment-6091319717). Originally posted by [011010](https://github.com/011010) on 2026-10-09T23:58:25Z. --- This is the prerequisite for #921: the Conventions job runs the trusted base script, so #921's own exemption is ignored until this lands in `main`. Could someone review/merge it so I can rebase #921 and drop the duplicate hunk there? @adriadam10
adriadam10 commented 2026-10-10 06:17:27 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-10T06:17:27Z.


The change itself is fine: the exemption is a path match in tools/check_conventions.py, the checker passes on this head, and it is the only way #921's file can clear the base-script check.

But it carves a path out of a CONTRIBUTING rule ("Third-party code is added as a submodule under 3rdparty/ and built from source, not found on the system"), and it only makes sense if opt-in system dependencies (#921) are accepted. That is a policy call.

@boykopovar @oneandonlydean: do you want an opt-in ANYPS5_USE_SYSTEM_DEPS path at all? If yes, this exemption (and a CONTRIBUTING line saying where system resolution is allowed) can go in; if no, this and #921 should be closed. Since it changes what CI checks, the full Build should be dispatched on it before merging.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6094573673 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2373#issuecomment-6094573673). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-10T06:17:27Z. --- The change itself is fine: the exemption is a path match in `tools/check_conventions.py`, the checker passes on this head, and it is the only way #921's file can clear the base-script check. But it carves a path out of a CONTRIBUTING rule ("Third-party code is added as a submodule under `3rdparty/` and built from source, not found on the system"), and it only makes sense if opt-in system dependencies (#921) are accepted. That is a policy call. @boykopovar @oneandonlydean: do you want an opt-in `ANYPS5_USE_SYSTEM_DEPS` path at all? If yes, this exemption (and a CONTRIBUTING line saying where system resolution is allowed) can go in; if no, this and #921 should be closed. Since it changes what CI checks, the full Build should be dispatched on it before merging.
oneandonlydean commented 2026-10-10 08:06:45 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-10T08:06:45Z.


The owner already said yes to an opt-in ANYPS5_USE_SYSTEM_DEPS on #400 (https://github.com/boykopovar/AnyPS5/issues/400#issuecomment-6009745421), as long as it is off by default, fails at configure time when a package is missing, and never falls back to building from source. So this exemption can go in; whether #921 meets those three is for #921's review.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6095518353 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2373#issuecomment-6095518353). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-10T08:06:45Z. --- The owner already said yes to an opt-in `ANYPS5_USE_SYSTEM_DEPS` on #400 (https://github.com/boykopovar/AnyPS5/issues/400#issuecomment-6009745421), as long as it is off by default, fails at configure time when a package is missing, and never falls back to building from source. So this exemption can go in; whether #921 meets those three is for #921's review.
Mouhand-Kaddo commented 2026-10-10 10:05:17 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Mouhand-Kaddo on 2026-10-10T10:05:17Z.


Additional platform validation on standalone PR head 1c6e53b9bf454346c9d01b195549f0de37dfaaa8:

Windows: passed — Windows 11, supported WinLibs GCC 15.2.0 UCRT/POSIX/SEH r7; CMake 4.3.1 / Ninja.

Ran the real conventions checker against the system-dependency diff from #921, comparing the checker before and after this PR. The six intended find_package findings disappeared and no new findings appeared. This is a focused behavior check, not a full runtime build.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6096395529 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2373#issuecomment-6096395529). Originally posted by [Mouhand-Kaddo](https://github.com/Mouhand-Kaddo) on 2026-10-10T10:05:17Z. --- <!-- anyps5-platform-validation:1c6e53b9bf454346c9d01b195549f0de37dfaaa8 --> Additional platform validation on standalone PR head `1c6e53b9bf454346c9d01b195549f0de37dfaaa8`: **Windows: passed** — Windows 11, supported WinLibs GCC 15.2.0 UCRT/POSIX/SEH r7; CMake 4.3.1 / Ninja. Ran the real conventions checker against the system-dependency diff from #921, comparing the checker before and after this PR. The six intended `find_package` findings disappeared and no new findings appeared. This is a focused behavior check, not a full runtime build.
adriadam10 commented 2026-10-11 08:26:01 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T08:26:01Z.


The owner accepted the opt-in ANYPS5_USE_SYSTEM_DEPS on #400 (off by default, fails at configure time, no fallback), so this exemption is settled. Checked: main + this PR's checker passes on #921's rebased head (main's fails it with 6 system-dependency errors), and CI is green here; merging so #921 can follow.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6107114829 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2373#issuecomment-6107114829). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-11T08:26:01Z. --- The owner accepted the opt-in `ANYPS5_USE_SYSTEM_DEPS` on #400 (off by default, fails at configure time, no fallback), so this exemption is settled. Checked: main + this PR's checker passes on #921's rebased head (main's fails it with 6 system-dependency errors), and CI is green here; merging so #921 can follow.
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!2373
No description provided.