ci: scope push trigger to main to drop redundant PR runs#802
Open
abnobdoss wants to merge 1 commit into
Open
Conversation
zhjwpku
approved these changes
Jul 3, 2026
zhjwpku
left a comment
Collaborator
There was a problem hiding this comment.
Reasonable, thanks for keeping improve the CI workflows :-)
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.
Change
Make push triggers more consistent by having the test workflows run branch pushes only on
main. Pull requests still run the same checks, and tag builds are unchanged.The duplicate-run case is narrow: it only happens for branches pushed directly to the Apache repo, so it mostly affects committers and bots rather than normal fork-based contributors. Pull request checks cover those branch updates; direct
mainruns still give us post-merge CI and warm caches.Also cleans up nearby
on:sections so the triggers are easier to compare, including removingzizmor's redundant all-branches pull request filter.Validation
Checked that all workflow YAML files still parse.
Remaining Trigger Inconsistencies
These are intentional or out of scope, so this PR leaves them alone:
rconly runs on release-candidate tags.pre-commitstill runs on regular branch pushes because it is cheap.docs,cpp-linter,license_check, andcodeqlkeep their narrower rules.Related discussion: #799.