Repository navigation
Conversation
All workflow runs share one remote terraform state. When several PRs merged within minutes, their merge-push runs collided on it and "Create repositories" failed with "workspace already locked" (run 34815869804, and likely 27335334287). Every generate job needs `repos`, so they were all skipped, and since a lib is only generated on the merge push that touches it, the two Talos libs (#650, #651) were never published. Waiting up to 10m on plan and apply lets concurrent runs take turns on the lock. A `concurrency` group was not used: GitHub keeps at most one pending run per group and cancels older pending ones, which would drop the cancelled run's merge-push generation and recreate the same problem.
Contributor
Author
|
Unfortunately don't have bandwidth to work on this right now, closing. |
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.
Related:
All workflow runs share one remote terraform state. When several PRs merged within minutes, their merge-push runs collided on it and
Create repositoriesfailed withworkspace already locked(run 34815869804, likely also 27335334287). Every generate job needsrepos, so all of them were skipped, and the two Talos libs were never published.-lock-timeout=10mtoterraform planandterraform applyin bothreposandrepos_with_pages, so concurrent runs wait for the lock instead of failing.No
concurrencygroup: GitHub keeps at most one pending run per group and cancels older pending ones, which would drop the cancelled run's merge-push generation and recreate the same problem.Note:
-lock-timeoutretry behavior against the remote backend is untested.