ci: skip the heavy unit-tests suite for docs-only pull requests - #15699
Queued
Maffooch wants to merge 1 commit into
Queued
ci: skip the heavy unit-tests suite for docs-only pull requests#15699Maffooch wants to merge 1 commit into
Maffooch wants to merge 1 commit into
Conversation
A pull request that only touches docs/ triggered the full unit-tests matrix (docker builds, REST framework, UI/integration, k8s, performance) on every push. Add paths-ignore: ['docs/**'] to the pull_request trigger so an exclusively-docs PR skips it. A PR that touches any code alongside docs still runs the full suite. This is scoped to the pull_request trigger only. The merge_group trigger stays unfiltered because GitHub ignores paths/paths-ignore for merge_group events, so a docs-only PR is still built and tested in full when it reaches the merge queue and the required `Unit Tests Complete` check is still produced there. The PR-level required check `ruff-linting` runs from its own workflow and is unaffected. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
blakeaowens
approved these changes
Aug 18, 2026
devGregA
approved these changes
Aug 18, 2026
Maffooch
added this pull request to the merge queue
Aug 18, 2026
Any commits made after this event will not be merged.
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Aug 18, 2026
Maffooch
added this pull request to the merge queue
Aug 18, 2026
Any commits made after this event will not be merged.
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Aug 18, 2026
Maffooch
added this pull request to the merge queue
Aug 18, 2026
Any commits made after this event will not be merged.
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.
[sc-14594]
Problem
A pull request that changes only
docs/still triggers the entireunit-testsmatrix — docker image builds, REST framework tests, the full UI/integration suite, k8s deployment, and performance tests — and re-runs it on every push. That is a large amount of runner time spent on changes that cannot affect any of those tests.Fix
Add
paths-ignore: ['docs/**']to thepull_requesttrigger ofunit-tests.yml. Becausepaths-ignoreonly skips a PR whose changes are entirely underdocs/, a PR that touches any code alongside docs still runs the full suite — this never under-tests real changes.Why this is safe (required checks)
pull_requesttrigger only. Themerge_grouptrigger is left unfiltered, and GitHub ignorespaths/paths-ignoreformerge_groupevents, so a docs-only PR is still built and tested in full when it enters the merge queue, and the requiredUnit Tests Completecheck is still produced there. No "skipped but required" check hangs the PR.ruff-lintingruns from its own workflow (ruff.yml), unaffected by this change.Net effect: docs-only PRs skip redundant per-push runs during review, and are still fully tested at merge time via the queue. No test coverage is lost.
🤖 Generated with Claude Code