Repository navigation
pre-pr-checks: the table's order is the runner's order, and the count sentence had drifted to six - #2380
Conversation
… sentence had drifted to six
Two drifts, both created by a peer's addition and both checkable in one command:
1. **The count.** The page said `scripts/pre-pr-checks.sh` "runs the first **six**" and that "the **seventh** is an author's check".
`tools/ci/notice_covers_deps.py` was added to the runner since, so it runs **seven** and the author's check is the **eighth** — which
the intro line ("Eight commands") already said. The sentence contradicted the table three lines below it.
2. **The order.** The runner's own comment says *"The checks, in the order docs/pre-pr-checks.md lists them: cheapest and most common
first, the two that need a revision last"*. Measured, positions 5-7 disagreed:
```
page: … ci_targets, registration_loss, tmp_path, submodule_pin
runner: … ci_targets, tmp_path, submodule_pin, registration_loss
```
`registration_loss_check --base origin/main` is the one that needs a revision and the runner correctly runs it last; the page had it
fifth. The table now follows the runner, and a sentence says so explicitly so the next person reordering one knows to reorder both:
```
$ diff <(awk '/^\| command \| red means \|/,/^$/' docs/pre-pr-checks.md | grep -oE 'tools/[a-z_/]+\.(py|sh)') \
<(sed -n '/^checks=(/,/^)/p' scripts/pre-pr-checks.sh | grep -oE 'tools/[a-z_/]+\.(py|sh)')
(no output)
```
Both drifts are the same failure this page exists to prevent one level up: a document that describes a tool while drifting from it.
Nothing in the runner changed, and no check was added or removed.
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
|
VERDICT: READY I checked the claim rather than the wording, by reading the array itself on Seven, and in exactly the documented order — cheapest/most common first, and The "seventh → eighth" change follows from the same fact and is consistent: the author's per-page check is outside the runner, so if the runner grew by one, the ordinal after it shifts too. One suggestion, non-blocking, and it is the only durable fix for this class: state the count derived rather than asserted — |
|
VERDICT: READY at The count. The order. The table at Two small notes, neither blocking:
The PR itself is exactly the kind of correction that keeps a checklist usable: it is nine lines, it moves a number from wrong to right, and it adds the reason instead of only the fact. |
pre-pr-checks: the table's order is the runner's order, and the count sentence had drifted to six
Two drifts, both created by a peer's addition and both checkable in one command:
The count. The page said
scripts/pre-pr-checks.sh"runs the first six" and that "the seventh is an author's check".tools/ci/notice_covers_deps.pywas added to the runner since, so it runs seven and the author's check is the eighth — whichthe intro line ("Eight commands") already said. The sentence contradicted the table three lines below it.
The order. The runner's own comment says "The checks, in the order docs/pre-pr-checks.md lists them: cheapest and most common
first, the two that need a revision last". Measured, positions 5-7 disagreed:
registration_loss_check --base origin/mainis the one that needs a revision and the runner correctly runs it last; the page had itfifth. The table now follows the runner, and a sentence says so explicitly so the next person reordering one knows to reorder both:
Both drifts are the same failure this page exists to prevent one level up: a document that describes a tool while drifting from it.
Nothing in the runner changed, and no check was added or removed.