PS-111-mirrors use withTimeout that will cancel after expiry #3007
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.
Description
There is an error (intermittently) mirror fails when a node trying to acquire the lock and checkout
agent/internal/job/checkout.go
Lines 491 to 493 in dd959ad
Ideally the customer wants a new exit code for the git mirror failure so they can retry on that
or
any time element so the lock would get auto-released after a certain period
This PR attempts the latter but I could be way off
Context
Plain: https://app.plain.com/workspace/w_01J0T5SBKJHGBT6FZZHAMH3GRB/thread/th_01J80NPYZRCDEGXAVPNYRD5NT1/
Coda:
https://coda.io/d/Escalations-Feedback_dHnUHNps1YO/Pipelines-Escalations_suQ4B7FT#Pipelines-Escalations-Board_tu66S__K/r711&view=modal
Linear
https://linear.app/buildkite/issue/PS-111/new-exit-code-when-lock-for-git-mirrors
Changes
Testing
go test ./...
). Buildkite employees may check this if the pipeline has run automatically.go fmt ./...
)