Skip to content

IntegrationTest: skip aggregate gate on draft PRs#109

Merged
mtfishman merged 1 commit intomainfrom
mf/integrationtest-draft-skip
May 7, 2026
Merged

IntegrationTest: skip aggregate gate on draft PRs#109
mtfishman merged 1 commit intomainfrom
mf/integrationtest-draft-skip

Conversation

@mtfishman
Copy link
Copy Markdown
Member

Summary

  • Make the IntegrationTest aggregate gate inherit the matrix-leg's draft predicate so it appears as Skipped (not Failure) on draft PRs with run-on-draft: false (the default).
  • Update README.md's "Draft PR behavior" section to reflect this.

The matrix-driven integration-test job skips when draft && !run-on-draft. The gate job ran with if: always() and its script's "matrix all-skipped" branch — designed for the unexpected all-skipped case — fired with Integration matrix unexpectedly all skipped, turning the IntegrationTest check Red on every draft PR. Non-draft and run-on-draft: true paths are unchanged; the unexpected-all-skipped error path remains for genuine matrix scheduling flukes.

The matrix-driven `integration-test` job already skips on `draft + run-on-draft=false`,
but the aggregate `gate` job ran unconditionally (`if: always()`) and its
script's `RESULT=skipped` + non-empty `pkgs` branch — designed for the unexpected
all-skipped case — fired with `Integration matrix unexpectedly all skipped`,
turning the `IntegrationTest` check Red on every draft PR.

Mirror the matrix-leg's draft predicate on the gate so the gate is itself
Skipped on draft + `run-on-draft=false`. The check appears as Skipped (not
Failure) on the PR view, which matches the intent of the draft skip — no
signal expected, no error reported. Non-draft PRs are unaffected.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@mtfishman mtfishman merged commit 81440a1 into main May 7, 2026
4 checks passed
@mtfishman mtfishman deleted the mf/integrationtest-draft-skip branch May 7, 2026 00:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant