Skip to content

Fix CI/CD running full matrix on push to release branches (v3-X-test)#68057

Merged
bugraoz93 merged 1 commit into
apache:mainfrom
shahar1:fix/main-push-ci-gating
Jun 5, 2026
Merged

Fix CI/CD running full matrix on push to release branches (v3-X-test)#68057
bugraoz93 merged 1 commit into
apache:mainfrom
shahar1:fix/main-push-ci-gating

Conversation

@shahar1
Copy link
Copy Markdown
Contributor

@shahar1 shahar1 commented Jun 5, 2026

On push to release branches like v3-2-test, the full test matrix was unconditionally running because _should_run_all_tests_and_versions() didn't distinguish between push events to main vs release branches.

Release branch pushes should only run selective tests (based on changed files), while canaries (SCHEDULE) and manual triggers (WORKFLOW_DISPATCH) still get the full matrix.

Added branch-aware gating: push to release branches now returns False from _should_run_all_tests_and_versions() unless other conditions (pyproject.toml changes, etc.) require full tests.


Was generative AI tooling used to co-author this PR?
  • Yes — Claude Haiku 4.5

Generated-by: Claude Haiku 4.5 following the guidelines

On push to release branches like v3-2-test, the full test matrix was
unconditionally running because _should_run_all_tests_and_versions()
didn't distinguish between push events to main vs release branches.

Release branch pushes should only run selective tests (based on changed
files), while canaries (SCHEDULE) and manual triggers (WORKFLOW_DISPATCH)
still get the full matrix.

Added branch-aware gating: push to release branches now returns False
from _should_run_all_tests_and_versions() unless other conditions
(pyproject.toml changes, etc.) require full tests.

Includes test case validating the behavior across different event types
and branches.

Fixes: apache#68052

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
@boring-cyborg boring-cyborg Bot added area:dev-tools backport-to-v3-2-test Mark PR with this label to backport to v3-2-test branch labels Jun 5, 2026
@shahar1 shahar1 removed the backport-to-v3-2-test Mark PR with this label to backport to v3-2-test branch label Jun 5, 2026
@shahar1
Copy link
Copy Markdown
Contributor Author

shahar1 commented Jun 5, 2026

I first created the backport and then ported to current PR:
#68056

@bugraoz93 bugraoz93 merged commit 8343851 into apache:main Jun 5, 2026
143 checks passed
@shahar1 shahar1 deleted the fix/main-push-ci-gating branch June 6, 2026 04:25
shahar1 added a commit that referenced this pull request Jun 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants