You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
on pull request, checkout@v2 built some ref other than the one that was claimed #237
Under the step "Run actions/checkout@v2", "Checking out the ref",
HEAD is now at e7eef6f0c Merge 6dfe9ab606352b36f8d295b250ac7118c459618b into 2d7cf4b792afa1b6755b9575b84cae4b65ae7ab9
6dfe9ab represents another revision of the code that was apparently replaced by force-push with the later value 75be728:
@jepler force-pushed the jepler:rgbmatrix-stm branch from 6dfe9ab to e5be728 7 days ago
Reacted by Zois Pagoulatos, dawg, Jonathan Cornaz, Urs Joss, Chris Smowton, Jonathan Jouty, Massimiliano Culpo, Mariusz Nowak, Dominik Roszkowski, Mubelotix and 1 more
It looks like ${{ github.sha }} is the old merge commit.
[edit]: The commit message should read: Merge e5be728c1c8a3a455b7095c9dab9e758c5016191 into 2d7cf4b792afa1b6755b9575b84cae4b65ae7ab9 (since e5be7 is the "after" sha)
Thanks @iheanyi for digging into this! We dug into this a bit and are unable to reproduce. This may be due to replication lag (received previous merge commit). Going forward we'll add more telemetry to the checkout step. So if this happens again we will be able to detect from telemetry.
Hi, I just ran in to this same issue here: PhotonVision/photonvision@f2305bb
The SHA for the commit is f2305bb501ec200d022a1bac4bac8ee316f68e54 but the workflow ran with commit 2e69b3e24b82faefc3702fc946834c61b31d8c4
Here are more details based on the build 866142019.
I'm pushing my changes using ad-m/github-push-action@master as per:
Push changes (PR) >
directory: .
Run ad-m/github-push-action@master
with:
branch: refs/heads/v1.079-dev
github_token: ***
directory: .
Started: bash /home/runner/work/_actions/ad-m/github-push-action/master/start.sh
Push to branch refs/heads/v1.079-dev
To https://github.com/EA31337/EA31337.git
7173d15..7efcedf HEAD -> v1.079-dev
So my HEAD changed from 7173d15 to 7efcedf (which is clearly visible above), however the checkout action (I assume) have added extra merge commit BETWEEN them, so my list of 3 last commits (instead of 2) looks like:
"My triggering commit" SHA:7173d15
"Merge 7173d15 into e24c723" SHA:8b7e516 (unwanted merge commit appearing out of blue)
"Pushed action's commit" SHA:7efcedf
Where e24c723 is origin/master merge commit, whereas I've requested to checkout PR HEAD (ref: refs/heads/${{ github.head_ref }}).
Activity
ericsciple commentedon May 7, 2020
Thanks! I'll loop in some folks.
Indeed something looks wrong.
From the
mpy-cross-maccheck run, the step "Dump GitHub context" reveals some key info:Yet appears to contradict the
git log -1output at the end of the step "Run actions/checkout@v2":It looks like
${{ github.sha }}is the old merge commit.[edit]: The commit message should read:
Merge e5be728c1c8a3a455b7095c9dab9e758c5016191 into 2d7cf4b792afa1b6755b9575b84cae4b65ae7ab9(since e5be7 is the "after" sha)ericsciple commentedon May 12, 2020
@andymckay have you heard of any similar occurrences?
The workflow payload contained the wrong merge commit.
iheanyi commentedon May 19, 2020
👋🏾 Will be taking a look into this today and tomorrow.
ericsciple commentedon May 19, 2020
Thanks @iheanyi for digging into this! We dug into this a bit and are unable to reproduce. This may be due to replication lag (received previous merge commit). Going forward we'll add more telemetry to the checkout step. So if this happens again we will be able to detect from telemetry.
Only use Docker Hub
Bankst commentedon Jul 7, 2020
Hi, I just ran in to this same issue here:
PhotonVision/photonvision@f2305bb
The SHA for the commit is f2305bb501ec200d022a1bac4bac8ee316f68e54 but the workflow ran with commit 2e69b3e24b82faefc3702fc946834c61b31d8c4
https://github.com/PhotonVision/photonvision/pull/18/checks?check_run_id=844516246
Hopefully this can somehow help, having another known occurence
[build] Switch to checkout@v1 for github workflows.
[build] Switch to checkout@v1 for github workflows.
kenorb commentedon Jul 13, 2020
Same happens when using with
ad-m/github-push-action, related:kenorb commentedon Jul 13, 2020
My configuration is like:
Despite I'm checking out the right HEAD, I see some extra merge commits:
kenorb commentedon Jul 13, 2020
Here are more details based on the build 866142019.
I'm pushing my changes using
ad-m/github-push-action@masteras per:So my HEAD changed from
7173d15to7efcedf(which is clearly visible above), however the checkout action (I assume) have added extra merge commit BETWEEN them, so my list of 3 last commits (instead of 2) looks like:7173d157173d15intoe24c723" SHA:8b7e516(unwanted merge commit appearing out of blue)7efcedfWhere
e24c723isorigin/mastermerge commit, whereas I've requested to checkout PR HEAD (ref: refs/heads/${{ github.head_ref }}).23 remaining items
MoSattler commentedon Aug 6, 2020
It still does not work for me.
I had to change the checkout to v1 for codecov to report properly
Downgrade checkout action to v1 for codecov compatibility
Revert "Downgrade to checkout@v1 to work around actions/checkout#237"
Merge pull request #294 from smowton/smowton/admin/reenable-checkout-v2
workflow/dockerbuild: require actions/checkout v2.3.4
workflow/dockerbuild: use actions/checkout v1
yurishkuro commentedon Feb 26, 2021
@andymckay it would be good to update this issue with the exact version number of checkout@v2 where the issue was fixed.
Mubelotix commentedon Jan 27, 2022
@andymckay This is re-occuring. My whole CI is completely broken and corrupted. Help
Edit: I was wrong it was another issue
andymckay commentedon Jan 28, 2022
@Mubelotix I would recommend you contact customer support here: https://support.github.com/
Or you can open a new issue on this repository with as much information as you've got so the team can take a look.
ci: fixed actions/checkout#237
docs: update docs to v0.8.8 (#139)
fix: ensure correct commit-id is fetched during a PR build
fix: ensure correct commit-id is fetched during a PR build
fix: ensure correct commit-id is fetched during a PR build (#2513)
ci: fixed actions/checkout#237