fix(ci): Stop running multiple full syncs on different branches #6664
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.
Motivation
We are accidentally running about 8 simultaneous full syncs on testnet, which is slowing down testnet.
Specifications
https://docs.github.com/en/actions/using-jobs/using-concurrency
https://docs.github.com/en/actions/learn-github-actions/contexts#needs-context
Solution
Fix long job concurrency:
Fix cache-using job conditions:
Related fixes:
Review
This is urgent because we're putting a lot of load on testnet.
See my comment about manual testing of this fix below.
Reviewer Checklist
Follow Up Work
I'm going to cancel all the extra jobs now, and just leave the one in this PR, the release PR #6632, and the one that's about to finish.