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

Closed
opened 2026-10-21 04:52:54 +00:00 by harisibrar1 · 0 comments
harisibrar1 commented 2026-10-21 04:52:54 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by harisibrar1 on 2026-10-21T04:52:54Z.


Problem

conventions.yml checks out github.event.pull_request.base.sha and runs that revision's tools/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

  • #7005 added APS5_NO_WGI (core/libs/prx/libSceVideoOut/src/VideoOutDriver.cpp:275) without a row in docs/dev/ENVIRONMENT.md. Its last Conventions run (run 39302081236) logged BASE_SHA: 07e741481 (main of 2026-10-17) and All conventions checks passed. The env-reference rule was not in that revision's checker.
  • Run locally, the checker of main at the time of that run reports APS5_NO_WGI is read here but has no row in docs/dev/ENVIRONMENT.md for the same head.
  • Main now fails its own reference check: python3 tools/env_reference.py --check reports 1 name(s) undocumented (#8657 adds the row).
  • On 2026-10-21, 785 of 812 open pull requests had a base older than the latest change to check_conventions.py / env_reference.py.
  • Comparing the stale-base checker with the current checker on 31 open pull requests: 27 are unchanged. #674 and #7275 add ANYPS5_EDITOR_SCREENSHOT and APS5_HOT_RELOAD without 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).

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5954564878 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/8891). Originally posted by [harisibrar1](https://github.com/harisibrar1) on 2026-10-21T04:52:54Z. --- ### Problem `conventions.yml` checks out `github.event.pull_request.base.sha` and runs that revision's `tools/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 - #7005 added `APS5_NO_WGI` (`core/libs/prx/libSceVideoOut/src/VideoOutDriver.cpp:275`) without a row in `docs/dev/ENVIRONMENT.md`. Its last Conventions run ([run 39302081236](https://github.com/boykopovar/AnyPS5/actions/runs/39302081236)) logged `BASE_SHA: 07e741481` (main of 2026-10-17) and `All conventions checks passed.` The env-reference rule was not in that revision's checker. - Run locally, the checker of main at the time of that run reports `APS5_NO_WGI is read here but has no row in docs/dev/ENVIRONMENT.md` for the same head. - Main now fails its own reference check: `python3 tools/env_reference.py --check` reports `1 name(s) undocumented` (#8657 adds the row). - On 2026-10-21, 785 of 812 open pull requests had a base older than the latest change to `check_conventions.py` / `env_reference.py`. - Comparing the stale-base checker with the current checker on 31 open pull requests: 27 are unchanged. #674 and #7275 add `ANYPS5_EDITOR_SCREENSHOT` and `APS5_HOT_RELOAD` without 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).
Sign in to join this conversation.
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#8891
No description provided.