-
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
[BUG] Gradle Check reported as null even though step is executing in background causing multiple orphaned runs and busy fleet #15609
[BUG] Gradle Check reported as null even though step is executing in background causing multiple orphaned runs and busy fleet #15609
Comments
[Triage] Adding to this there is an open PR opensearch-project/opensearch-build-libraries#485 that will handle the force push scenario (more details on this issue opensearch-project/opensearch-build#2292) where the workflow will not even trigger the gradle check build for the orphaned (force push) commits. Thanks |
@prudhvigodithi I think there is some misunderstanding around the issue shared here. The issue is that when gradle check is scheduled, and the GH action gets a null response (as it didn't start execution but just got queued), the builds continue to run even though they don't add to the PR result due to being orphaned. The issue you've mentioned
Even in such cases, existing builds against the PR should be canceled, and only new commit/force push should execute. |
Recent related thread https://opensearch.slack.com/archives/C04UM4D6XN2/p1725454723121789 |
I see, in that case we need to have service/mechanism in between GitHub and Jenkins that can trigger and abort the jobs. This layer in between GitHub and Jenkins can have the information about the PR's and its commits and can trigger a build for new commit or abort the job if a build for the same PR is already running and start a new build with latest commit. This layer can also handle null response scenarios, when during the Jenkins queue is filled (the limit reached) it can wait and re-trigger back again with the same commit. With this we can even handle force push to not even trigger the build. |
@peterzhuamazon Does the PR opensearch-project/opensearch-build#4993 address concerns laid out here? |
@mgodwan Yes it should. It will now keep polling jenkins queue till it returns a submitted build job url. There is a 2-hr time-out which should be more than sufficient to return the build number. |
Yes @mgodwan it should resolve this now. Thanks. |
Closing now as it is resolved. Thanks. |
Describe the bug
Related component
Build
Expected behavior
We need a way to cancel the ongoing gradle check, or modify our integration to not fail fast and wait for queued step to execute instead of marking step as failed in PRs.
Additional Details
No response
The text was updated successfully, but these errors were encountered: