fix(tools): let a debt fragment allow comments in check_conventions #21200
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/21200"
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 B-Howell on 2026-11-15T23:35:12Z.
What
CONTRIBUTING now records debt only through a fragment in
docs/dev/debt/changes/, butcheck_conventions.pystill lifted thecommentrule (and skipped shader and assembly comment checks) only when a pull request changed a debt file itself. A pull request that follows the new rule therefore fails on the comments a debt change allows, such as the// Derived from <path>@<commit>line ported WebKit code must carry (ruling). Seen on #19835 and #19828: each passes with its entry inlibSceNKWebKit.mdand fails with the same entry moved to a fragment.The three checks now ask one helper,
changes_debt(), which counts a changed fragment the same as a changed debt file.Tested
Windows 11, Python 3.12.
test_debt_fragment_allows_comments: a commit adding a// Derived fromline and only a fragment. It fails on main ([comment] unexpectedly found) and passes with this change.python3 -m unittest tools.tests.test_check_conventions_comments: 98 tests OK.test_check_conventions_debt_fragments,test_check_conventions_debt_labels,test_check_conventions_debt_length,test_debt_fold,test_debt_reportandtest_debt_split: all OK.check_conventions.py --base origin/mainpasses on this branch.5960f17cb4merged into main (report): no failures beyond those on main on the same machine.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-16T04:16:56Z.
Review: APPROVED
Reviewed — looks good
The change makes debt fragments trigger the same comment and shader/assembly exemptions as debt files, and the inspected implementation and regression test support merging at head
5960f17cb43a15b13d974e05d2a9204d7f18718d.What I ran
No commands were run. I read the prepared description, commit list, manifest, diff, and both changed files through
repo_read.py; I also read the relevant debt-path predicates and fragment validation code. The PR description reports tests and platform checks, but I did not run them.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
I did not run the reported test suite or convention checker.
files.jsonwas not available through the reader; the manifest lists two changed files, both marked included, and both were read. The prepared bundle’sfiles/contents and any excluded files were not separately inspected.To get this to a good state
Nothing is required.