Repository navigation
ci(tests): plan-only pull requests run only invariant tests - #2871
Merged
Merged
Conversation
…s-invariant-tests
…s-invariant-tests
Owner
Author
Test results
Review findingsFixed:
Not fixed: none. |
dan-petty
marked this pull request as ready for review
October 31, 2026 14:04
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
A pull request that only adds a plan under
openspec/changes/<issue>-<slug>/now runstests/invariantsand nothing more of the suite. The jobTests & Coveragefinds such a pull request withdorny/paths-filter. Every other pull request, push and manual run still gets the full gate. The stepChanged-Line Coveragedoes not run for a plan-only pull request.The filter runs only for a pull request with fewer than 3000 changed files. The REST list of the files holds 3000 files at most and gives no sign of a cut, so a larger pull request gets the full gate.
Why
Plan pull requests ran the full suite for 297 s to 371 s, and they change no line that the suite tests. AGENTS.md rule 5 treats a check that averages more than 5 minutes as a P0 bug. The job keeps its name and its place, so the required check reports success. A workflow contract test holds each part of the rule.
Closes #2860