-
Notifications
You must be signed in to change notification settings - Fork 273
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]: github.event.pull_request.head.sha
used in Gradle check does not identify force commit sha's.
#2292
Comments
[Triaged] @peterzhuamazon can you add your thoughts ? |
Maybe we should transfer this issue to OpenSearch repo since this is regarding of the gradle check workflow in that repo? |
This seems like more of a problem on github side not on us. |
@prudhvigodithi @peterzhuamazon Is there a way to inform the user to perform a dummy commit as a workaround? |
Since this is an issue on github side, we will close this for now. |
A recent update on this matter: despite a GitHub force push, the |
Yes @prudhvigodithi I think this is a small enough bug tho that is not that significant. |
The simple and quick fix here is before the git checkout -f ${git_reference}, we can run example |
Yes, we can start with this for now. It is easier just to abort the Jenkins workflow without let it goes to full FAILURE status. |
If we are allowing the user to trigger |
Using branch head have potential issues of previous trigger use next commit, due to github actions has delays. If anyone push multiple times within a short period of time, it will cause some false positives potentially. I would still suggest cancel the github action if there is a mismatch before triggering on Jenkins. Thanks. |
Describe the bug
Coming from comment: opensearch-project/OpenSearch#3481 (comment)
.pull_request.head.sha used in gradle check does not execute on force commits.
Failed build: https://build.ci.opensearch.org/job/gradle-check/121/
Existing worflow.
https://github.com/opensearch-project/OpenSearch/blob/main/.github/workflows/gradle-check.yml#L13
To reproduce
Assuming this reproducible pushing a commit with
-f
and try to execute the gradle check.Expected behavior
Handle cases even if the latest commit is done via force push.
Additional context
Some issues related to this topic:
https://github.community/t/github-actions-how-to-to-get-pr-merge-commit-sha-in-push/209044
Relevant log output
No response
The text was updated successfully, but these errors were encountered: