You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Three runbook assertions read raw text, so a reflow of an untouched paragraph fails them #1714
Found while reviewing the reflow in #1713, which normalised one paragraph of .github/copilot-instructions.md and left the rest of the file as it was. The reflow was safe, and the reason it was safe is narrower than it looks.
The shape
scripts/tests/test_pr_review.py:5030 reads the runbook and collapses whitespace before matching:
text=" ".join(RUNBOOK.read_text(encoding="utf-8").split())
self.assertIn("A round reporting partial coverage of the diff blocks the merge", text)
Its siblings do not. Three assertions at scripts/tests/test_pr_review.py:5004-5005, :5009-5010 and :5081-5084 read the same file raw and pin substrings that happen to sit within a single line today. spec/validate.py:1131 has the same shape, regex-matching \.github/skills/[A-Za-z0-9_-]+/SKILL\.md against raw text.
Why it matters
A pinned string only survives while the line holding it is not rewrapped. The strings in question sit on file lines 44, 45 and 51 to 53. Reflowing that range, which is exactly the operation #1713 performed on lines 57 to 66 and which any future editor of this file might perform, splits one of them across a newline and fails a test whose subject never changed.
That is a test failing for a reason unrelated to what it asserts, which is the failure mode that teaches a reader to edit the test rather than read it.
The fix
Collapse whitespace in those readers the way the one at :5030 already does. spec/validate.py:1131 needs the same treatment or an equivalent, since a regex over raw text has the identical exposure.
Nothing is broken today. This is latent, filed rather than fixed in #1713 because that pull request answers a finding on a promotion and widening it would put an unrelated change under a promotion's review.
Not reproducible as a failing test yet
Stated plainly so nobody goes looking: no current test fails. The evidence is the shape of the readers and the line positions above, and the trigger is a future edit rather than the present tree.
Activity
Unwrap the Runbook to One Paragraph Per Line (#1713)
Collapse Whitespace Before Pinning a Sentence in the Docstring Tests (#…