Skip to content
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

Evaluate actions/checkout@v2 #3881

Closed
siggy opened this issue Jan 2, 2020 · 2 comments · Fixed by #3889
Closed

Evaluate actions/checkout@v2 #3881

siggy opened this issue Jan 2, 2020 · 2 comments · Fixed by #3889

Comments

@siggy
Copy link
Member

siggy commented Jan 2, 2020

Per actions/checkout#27 (comment), our incorrect SHA issue may be resolved in actions/checkout@v2. We should test this, and if it works, we can roll back our workaround in #3602.

@alpeb
Copy link
Member

alpeb commented Jan 7, 2020

@siggy It appears github is merging the PR branch into master using the same master SHA across all jobs, that is the master HEAD at the moment the build was triggered regardless of it changing across jobs, thus fixing the issue 👍
This happens before, and is independent of the actions/checkout update. I couldn't reproduce the issue using actions/checkout@v1.

I used this test, based off of your test with some simplifications, pushing something to master during the 1 minute sleep, and still seeing the same merged ref being used before and after the sleep:
https://github.com/alpeb/linkerd2/commit/15db70a59272d55481cb1d89241627cc0c96ac7a/checks?check_suite_id=388305569

@siggy
Copy link
Member Author

siggy commented Jan 7, 2020

@alpeb Thanks for digging in. FWIW, I also was not able to reliably reproduce the issue with the contrived example above:
actions/checkout#27 (comment)
...and those observations occurred when we were definitely experiencing the issue in ci. It may be that our more complex ci workflow with lots of jobs and tasks, somehow causes the issue to manifest more reliably.

I think it's still worth rolling out actions/checkout@v2 on our full ci workflow. If the issue returns we can always roll back to our bespoke checkout code.

alpeb added a commit that referenced this issue Jan 7, 2020
alpeb added a commit that referenced this issue Jan 8, 2020
* Revert "Replace actions/checkout with actions/upload/download (#3602)"

This reverts commit 397970e.

* Upgraded actions/checkout to @v2

Reverts #3602 and Fixes #3881
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants