Skip to content

ci: skip test suite for release-* bump PRs#151

Merged
clemsgrs merged 1 commit into
mainfrom
ci-skip-bump-pr
Jun 22, 2026
Merged

ci: skip test suite for release-* bump PRs#151
clemsgrs merged 1 commit into
mainfrom
ci-skip-bump-pr

Conversation

@clemsgrs

Copy link
Copy Markdown
Owner

What

Skip the docker-test job when the PR head branch starts with release-.

release.py opens the version bump as a PR from a release-<version> branch that only edits pyproject.toml. Running the full Docker build + test suite (60-min job) on a version-string-only change is costly and adds no signal.

How

Extends the existing job-level if (the fork guard) with && !startsWith(github.head_ref, 'release-').

  • github.head_ref is populated only for pull_request events; it's empty for workflow_dispatch, so manual runs still fire.
  • A job skipped via if reports as skipped, which counts as success for branch protection — it won't block the bump PR from merging.

Targeted, reversible, no behavior change for normal feature PRs.

release.py opens the version bump as a PR from a release-<version> branch
that only edits pyproject.toml; running the full Docker test suite on it is
costly and adds no signal. Gate docker-test off when github.head_ref starts
with release- (head_ref is empty for workflow_dispatch, so manual runs still
fire; a skipped job counts as success for branch protection).
@clemsgrs
clemsgrs merged commit 928aeac into main Jun 22, 2026
1 check passed
@clemsgrs
clemsgrs deleted the ci-skip-bump-pr branch June 22, 2026 19:19
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