Skip to content

Commit 2a3db4b

Browse files
authored
chore(ci): Handle exit code 143 during reset within CMX (#2597)
Signed-off-by: Kyle Squizzato <[email protected]>
1 parent 458ad01 commit 2a3db4b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

e2e/cluster/cmx/cluster.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,8 +343,8 @@ func runCommandOnNode(node Node, line []string, envs ...map[string]string) (stri
343343
cmd.Stderr = &stderr
344344
err := cmd.Run()
345345

346-
if exitErr, ok := err.(*exec.ExitError); ok && exitErr.ExitCode() == 255 {
347-
// check if this is a reset-installation command that resulted in exit code 255
346+
if exitErr, ok := err.(*exec.ExitError); ok && (exitErr.ExitCode() == 255 || exitErr.ExitCode() == 143) {
347+
// check if this is a reset-installation command that resulted in exit code 255 or 143
348348
// as this is expected behavior when the node reboots and the ssh connection is lost
349349
if strings.Contains(strings.Join(line, " "), "reset-installation") {
350350
return stdout.String(), stderr.String(), nil

0 commit comments

Comments
 (0)