ci(conventions): exempt cmake/SystemDeps.cmake from the system-dependency rule #2373
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2373"
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 011010 on 2026-10-09T16:47:15Z.
What
Exempts
cmake/SystemDeps.cmakefrom thesystem-dependencyconventions rule, so the opt-in system resolution added by #921 can pass the Conventions check.The exemption has to live in
main:conventions.ymlchecks out the base SHA and runstools/check_conventions.pyfrom 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-exemptionon this branch:All conventions checks passed.pr921-rebased) againstmain: thesystem-dependencyfindings incmake/SystemDeps.cmakedrop from 6 to 0, with no new finding in any other file.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)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? @adriadam10Imported 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_DEPSpath 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.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_DEPSon #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.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_packagefindings disappeared and no new findings appeared. This is a focused behavior check, not a full runtime build.Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T08:26:01Z.
The owner accepted the opt-in
ANYPS5_USE_SYSTEM_DEPSon #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.