Skip to content

Commit f6c4234

Browse files
authored
[rayci] auto retries of test flakiness (#235)
As we move now save cost with periodic run, microcheck and have automation to decide if a test is flaky enough to be a release blocker, i'm thinking about auto retrying test flakiness, to avoid issues when a test blocks a release when it is not flaky enough let's discuss Test: - CI Signed-off-by: can <[email protected]>
1 parent ce9e1da commit f6c4234

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

raycicmd/bk_pipeline.go

+4-3
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,12 @@ func makeRayDockerPlugin(
143143
}
144144

145145
// makeAutomaticRetryConfig creates the retry configuration for rayci pipelines.
146-
// The retry configuration is to retry once for any unknown exit status, and
147-
// to retry 3 times for known exit statuses.
146+
// The retry configuration is to retry once for any unknown exit status or test failures,
147+
// and to retry 3 times for known exit statuses.
148148
func makeAutomaticRetryConfig(exitStatus []int) []any {
149149
m := []any{
150-
map[string]int{"exit_status": 1, "limit": 1},
150+
map[string]int{"exit_status": 1, "limit": 1}, // unknown exist status
151+
map[string]int{"exit_status": 42, "limit": 1}, // test failures
151152
}
152153
for _, s := range exitStatus {
153154
m = append(m, map[string]any{"exit_status": s, "limit": 3})

0 commit comments

Comments
 (0)