-
Notifications
You must be signed in to change notification settings - Fork 546
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
fix: Use PR head commit in artifact naming instead of merge commit #1643
fix: Use PR head commit in artifact naming instead of merge commit #1643
Conversation
/hold |
/hold cancel |
The PR failed tests for 1 times with 1 individual failed tests and 5 skipped tests. totaltestcount: 1
|
.github/workflows/e2e-tests.yml
Outdated
@@ -14,5 +14,5 @@ jobs: | |||
if: ${{ failure() }} | |||
uses: actions/upload-artifact@v2 | |||
with: | |||
name: e2e-test-output-${{ github.sha }}-${{ github.run_id }} | |||
name: e2e-test-output-${{ github.event.pull_request.head.sha }}-${{ github.run_id }} |
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.
is github.event.pull_request.head
available when this workflow is run against master
?
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.
Do you mean when it is a commit instead of a PR?
We use PR for commenting purpose. Gather all the commits for a PR (by commit SHAs) and comment on the PR. If it is a commit to the master without PR, the result should be counted towards periodic report instead of PR comment. So it should be fine right? wdyt. Thanks
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.
I am not entirely understanding the question here because this PR is opened against the master.
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.
oh, I get it now, you are saying if we run this test without a PR what would happen. I have not tried it. I'll check
/hold |
The env var GITHUB_SHA shows merge commit and is not related to worflow trigger unlike the discription on GITHUB. This fix changes the variable to look at the head commit aka. the commit that actually triggers the workflow.
bbeb364
to
9cdc17c
Compare
/hold cancel the new change is able to provide commit sha for both commit and PR changes. |
Nice job! /lgtm |
/retest |
/lgtm |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Bowenislandsong, ecordell The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest |
/retest Please review the full test history for this PR and help us cut down flakes. |
4 similar comments
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
The PR failed tests for 0 times with 0 individual failed tests and 0 skipped tests. totaltestcount: 0 |
29 similar comments
The PR failed tests for 0 times with 0 individual failed tests and 0 skipped tests. totaltestcount: 0 |
The PR failed tests for 0 times with 0 individual failed tests and 0 skipped tests. totaltestcount: 0 |
The PR failed tests for 0 times with 0 individual failed tests and 0 skipped tests. totaltestcount: 0 |
The PR failed tests for 0 times with 0 individual failed tests and 0 skipped tests. totaltestcount: 0 |
The PR failed tests for 0 times with 0 individual failed tests and 0 skipped tests. totaltestcount: 0 |
The PR failed tests for 0 times with 0 individual failed tests and 0 skipped tests. totaltestcount: 0 |
The PR failed tests for 0 times with 0 individual failed tests and 0 skipped tests. totaltestcount: 0 |
The PR failed tests for 0 times with 0 individual failed tests and 0 skipped tests. totaltestcount: 0 |
The PR failed tests for 0 times with 0 individual failed tests and 0 skipped tests. totaltestcount: 0 |
The PR failed tests for 0 times with 0 individual failed tests and 0 skipped tests. totaltestcount: 0 |
The PR failed tests for 0 times with 0 individual failed tests and 0 skipped tests. totaltestcount: 0 |
The PR failed tests for 0 times with 0 individual failed tests and 0 skipped tests. totaltestcount: 0 |
The PR failed tests for 0 times with 0 individual failed tests and 0 skipped tests. totaltestcount: 0 |
The PR failed tests for 0 times with 0 individual failed tests and 0 skipped tests. totaltestcount: 0 |
The PR failed tests for 0 times with 0 individual failed tests and 0 skipped tests. totaltestcount: 0 |
The PR failed tests for 0 times with 0 individual failed tests and 0 skipped tests. totaltestcount: 0 |
The PR failed tests for 0 times with 0 individual failed tests and 0 skipped tests. totaltestcount: 0 |
The PR failed tests for 0 times with 0 individual failed tests and 0 skipped tests. totaltestcount: 0 |
The PR failed tests for 0 times with 0 individual failed tests and 0 skipped tests. totaltestcount: 0 |
The PR failed tests for 0 times with 0 individual failed tests and 0 skipped tests. totaltestcount: 0 |
The PR failed tests for 0 times with 0 individual failed tests and 0 skipped tests. totaltestcount: 0 |
The PR failed tests for 0 times with 0 individual failed tests and 0 skipped tests. totaltestcount: 0 |
The PR failed tests for 0 times with 0 individual failed tests and 0 skipped tests. totaltestcount: 0 |
The PR failed tests for 0 times with 0 individual failed tests and 0 skipped tests. totaltestcount: 0 |
The PR failed tests for 0 times with 0 individual failed tests and 0 skipped tests. totaltestcount: 0 |
The PR failed tests for 0 times with 0 individual failed tests and 0 skipped tests. totaltestcount: 0 |
The PR failed tests for 0 times with 0 individual failed tests and 0 skipped tests. totaltestcount: 0 |
The PR failed tests for 0 times with 0 individual failed tests and 0 skipped tests. totaltestcount: 0 |
The PR failed tests for 0 times with 0 individual failed tests and 0 skipped tests. totaltestcount: 0 |
The env var GITHUB_SHA shows merge commit and is not related to worflow trigger unlike the discription on GITHUB. This fix changes the variable to look at the head commit aka. the commit that actually triggers the workflow.
Description of the change:
Motivation for the change:
Reviewer Checklist
/docs