-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ignore backport / autocut / dependabot branches for gradle checks on push #3816
Ignore backport / autocut / dependabot branches for gradle checks on push #3816
Conversation
Signed-off-by: Peter Zhu <[email protected]>
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me, but I have a related question...
We run the gradle check workflow when a PR is created against one of the mainstream branches, but we also run the check again when the merge is made? Is that right?
Hi @andrross, Exactly.
That is the point of this change so backport/depandabot/autocut will still trigger 1 and 2, while ignore the trigger towards those temp branches used to just create the PR. Thanks. |
Thanks @peterzhuamazon!
I know this is a bit off topic, but I'm curious about exactly how this works. Does it happen before or after the push? What happens if it fails? If there's any documentation please let me know and I can RTFM :) |
…3816) Signed-off-by: Peter Zhu <[email protected]> (cherry picked from commit 360f4f6)
…3816) Signed-off-by: Peter Zhu <[email protected]> (cherry picked from commit 360f4f6)
…3816) Signed-off-by: Peter Zhu <[email protected]> (cherry picked from commit 360f4f6)
…3816) Signed-off-by: Peter Zhu <[email protected]> (cherry picked from commit 360f4f6)
…3816) Signed-off-by: Peter Zhu <[email protected]> (cherry picked from commit 360f4f6)
Gradle Check (Jenkins) Run Completed with:
|
Hi @andrross, if people creating a PR from their fork, due to the branch used to open PR is on fork, only PR event trigger gradle check, push wont. if people creating a PR with a branch directly in this repo (aka dependabot, backport), due to those branches are created fresh, their 1st creation is considered a fresh push, thus trigger push. And since they also have PR thus trigger PR event. This means 2 gradle check and the push one is unnecessary. There is literally a workflow in this repo to remove backport branches periodically therefore no need to even run those push events on these backport/dependabot branches. Thanks. |
I'm curious about the gradle check workflow that happens upon merge into main once the PR is approved. I see that the gradle check failed for the workflow that ran after this PR was merged. How are these failures supposed to be handled? In this case it seems to be an existing flaky test (#3579) but if it was a problem caused by the merge is there any mechanism to handle it? |
…3816) (#3828) Signed-off-by: Peter Zhu <[email protected]> (cherry picked from commit 360f4f6) Co-authored-by: Peter Zhu <[email protected]>
…3816) (#3827) Signed-off-by: Peter Zhu <[email protected]> (cherry picked from commit 360f4f6) Co-authored-by: Peter Zhu <[email protected]>
…3816) (#3825) Signed-off-by: Peter Zhu <[email protected]> (cherry picked from commit 360f4f6) Co-authored-by: Peter Zhu <[email protected]>
…3816) (#3824) Signed-off-by: Peter Zhu <[email protected]> (cherry picked from commit 360f4f6) Co-authored-by: Peter Zhu <[email protected]>
…3816) (#3826) Signed-off-by: Peter Zhu <[email protected]> (cherry picked from commit 360f4f6) Co-authored-by: Peter Zhu <[email protected]>
Signed-off-by: Peter Zhu [email protected]
Description
Ignore backport / autocut / dependentbot branches for gradle checks.
These branches come and go and are not long-lived, thus no reason to even run gradle check on push.
They can run gradle check on pull_request_target event.
Issues Resolved
opensearch-project/opensearch-build#851
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.