PS-111-mirrors use withTimeout that will cancel after expiry#3007
Draft
SorchaAbel wants to merge 1 commit intomainfrom
Draft
PS-111-mirrors use withTimeout that will cancel after expiry#3007SorchaAbel wants to merge 1 commit intomainfrom
SorchaAbel wants to merge 1 commit intomainfrom
Conversation
DrJosh9000
reviewed
Sep 24, 2024
Contributor
DrJosh9000
left a comment
There was a problem hiding this comment.
GitMirrorsLockTimeout should already apply within updateGitMirrors, e.g.:
agent/internal/job/checkout.go
Lines 296 to 309 in 054e0bd
agent/internal/job/checkout.go
Lines 342 to 348 in 054e0bd
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.
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 ./...)