ci(conventions): pull requests are checked with the rules of the base they were opened on, so rules merged later never run on them #8891
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 harisibrar1 on 2026-10-21T04:52:54Z.
Problem
conventions.ymlchecks outgithub.event.pull_request.base.shaand runs that revision'stools/check_conventions.py. That SHA is the base recorded when the pull request was opened. It does not move when main moves, so a rule merged after a pull request was opened never runs on it, even on later pushes.Evidence
APS5_NO_WGI(core/libs/prx/libSceVideoOut/src/VideoOutDriver.cpp:275) without a row indocs/dev/ENVIRONMENT.md. Its last Conventions run (run 39302081236) loggedBASE_SHA: 07e741481(main of 2026-10-17) andAll conventions checks passed.The env-reference rule was not in that revision's checker.APS5_NO_WGI is read here but has no row in docs/dev/ENVIRONMENT.mdfor the same head.python3 tools/env_reference.py --checkreports1 name(s) undocumented(#8657 adds the row).check_conventions.py/env_reference.py.ANYPS5_EDITOR_SCREENSHOTandAPS5_HOT_RELOADwithout rows. #6481 and #6867 get debt-length warnings.Expected
Each run checks the pull request against the rules on the current tip of its base branch. It still diffs only the pull request's own changes (the checker already uses the merge base).