Repository navigation
Keep a late pull request run from cancelling the run of main - #193
Merged
Merged
Conversation
A pull request that was merged before its run started got a run with the ref of the base branch. That run joined the concurrency group of main and cancelled the run of the merge commit (merge of splitbrain#192), so no image was built for it. The run then failed, because its token could not write the build cache. Pull request runs are now grouped by their number, and a refused write to the cache of GitHub Actions no longer fails the image build.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR #192 was merged 20 seconds after it was opened, before GitHub started its
pull_requestrun. With its merge ref gone, that run got the ref of the base branch,refs/heads/main. It joined the concurrency grouppublish-refs/heads/mainand cancelled the run of the merge commit ("Canceling since a higher priority waiting request for publish-refs/heads/main exists"). So no image was built for the merge. The late run then failed in the image build, because its token could not write the cache of GitHub Actions ("cache write denied: token has no writable scopes").Changes:
publish-${{ github.event.pull_request.number || github.ref }}. A push to main keepspublish-refs/heads/main.type=ghacache exports of pull request runs setignore-error=true, so a refused cache write does not fail the build.The cancelled run of the merge of #192 (44345270485) still needs a re-run on main.