Skip to content

ATLAST-5335 - Restrict trigger push branch for GitHub Workflow#687

Open
apupier wants to merge 1 commit into
apache:masterfrom
apupier:ATLAS-5335-restrictTriggerPushBranch
Open

ATLAST-5335 - Restrict trigger push branch for GitHub Workflow#687
apupier wants to merge 1 commit into
apache:masterfrom
apupier:ATLAS-5335-restrictTriggerPushBranch

Conversation

@apupier

@apupier apupier commented Jun 30, 2026

Copy link
Copy Markdown

Feature branches rarely need their own CI runs: the code is already tested when a pull request is opened against a release branch. If the push trigger has no branch restriction and pull_request is also configured, every push to a branch with an open PR runs the workflow twice: once for the push and once for the PR synchronisation.

Always give the push trigger an explicit list of branches: this stops branches created from a release branch from inheriting its workflow runs.

see https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=430408443#GitHubActionsRecommendedPractices-Restrictthepushtriggertospecificbranches

What changes were proposed in this pull request?

(Please fill in changes proposed in this fix. Create an issue in ASF JIRA before opening a pull request and
set the title of the pull request which starts with
the corresponding JIRA issue number. (e.g. ATLAS-XXXX: Fix a typo in YYY))

How was this patch tested?

(Please explain how this patch was tested. Ex: unit tests, manual tests)
(If this patch involves UI changes, please attach a screenshot; otherwise, remove this)

Feature branches rarely need their own CI runs: the code is already
tested when a pull request is opened against a release branch. If the
push trigger has no branch restriction and pull_request is also
configured, every push to a branch with an open PR runs the workflow
twice: once for the push and once for the PR synchronisation.

Always give the push trigger an explicit list of branches: this stops
branches created from a release branch from inheriting its workflow
runs.

see https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=430408443#GitHubActionsRecommendedPractices-Restrictthepushtriggertospecificbranches

Signed-off-by: Aurélien Pupier <apupier@ibm.com>
@apupier

apupier commented Jun 30, 2026

Copy link
Copy Markdown
Author

error is unrelated:

2026-06-30T10:52:45.9754321Z [ERROR] Tests run: 202, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 205.4 s <<< FAILURE! -- in TestSuite
2026-06-30T10:52:45.9761591Z [ERROR] org.apache.atlas.examples.QuickStartV2IT.testProcessIsAdded -- Time elapsed: 0.051 s <<< FAILURE!
2026-06-30T10:52:45.9763171Z java.lang.AssertionError: expected [ae0c448b-80ac-4945-8295-2d40ce751e75] but found [15968b77-42d4-4328-88a6-e49420463db1]

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