Skip to content

Commit

Permalink
Merge pull request #6355 from MinaProtocol/retry_all_exitcodes_1_once
Browse files Browse the repository at this point in the history
ensure single retry of all buildkite jobs exiting w/ code 1 (common error)
  • Loading branch information
O1ahmad authored Oct 14, 2020
2 parents 0301f8b + 2be1ee2 commit de6a31e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions buildkite/src/Command/Base.dhall
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,13 @@ let build : Config.Type -> B/Command.Type = \(c : Config.Type) ->
Natural/toInteger
retry.limit
})
-- per https://buildkite.com/docs/agent/v3#exit-codes, ensure automatic retries on -1 exit status (infra error)
([Retry::{ exit_status = -1, limit = Some 2 }] #
-- per https://buildkite.com/docs/agent/v3#exit-codes:
([
-- ensure automatic retries on -1 exit status (infra error)
Retry::{ exit_status = -1, limit = Some 2 },
-- automatically retry on 1 exit status (common/flake error)
Retry::{ exit_status = +1, limit = Some 1 }
] #
-- and the retries that are passed in (if any)
c.retries)
in
Expand Down

0 comments on commit de6a31e

Please sign in to comment.