-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Support OOMKilled
with container-set. Fixes #10063
#11484
fix: Support OOMKilled
with container-set. Fixes #10063
#11484
Conversation
Signed-off-by: Alex Collins <[email protected]>
Tagging @isubasinghe. Can you check this PR accounting for the expected changes you might push with your container set work? |
Signed-off-by: Alex Collins <[email protected]>
@@ -70,24 +70,38 @@ func NewEmissaryCommand() *cobra.Command { | |||
return fmt.Errorf("failed to unmarshal template: %w", err) | |||
} | |||
|
|||
// setup signal handlers | |||
signals := make(chan os.Signal, 1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved from lower in the file.
@@ -7,6 +7,10 @@ import ( | |||
"github.com/argoproj/argo-workflows/v3/util/errors" | |||
) | |||
|
|||
var ( | |||
Term = os.Interrupt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is to os.Term
because Windows does not have that. We fake it.
Signed-off-by: Alex Collins <[email protected]>
Signed-off-by: Alex Collins <[email protected]>
Signed-off-by: Alex Collins <[email protected]>
cmd/argoexec/commands/emissary.go
Outdated
data, err := os.ReadFile(filepath.Clean(varRunArgo + "/ctr/" + y + "/exitcode")) | ||
if os.IsNotExist(err) { | ||
time.Sleep(time.Second) | ||
continue | ||
} | ||
exitCode, err := strconv.Atoi(string(data)) | ||
if err != nil { | ||
return fmt.Errorf("failed to read exit-code of dependency %q: %w", y, err) | ||
} | ||
if exitCode != 0 { | ||
return fmt.Errorf("dependency %q exited with non-zero code: %d", y, exitCode) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need a rebase here
Can you resolve conflicts? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested manually myself, verified to fix #10063.
Approved
…rset-is-oom-killed Signed-off-by: Alex Collins <[email protected]>
@alexec Hi Alex! I'm not sure if you saw, but @terrytangyuan posted about difficulty merging this into the patch release branch. (see notes below from the cherry-pick release ticket) Are you able to look into this and submit a PR to the v3.4.11 release branch? Thanks again for pushing this fix! Since users had wanted it in 3.4.10, we wanted to see if it's possible to squeeze into 3.4.11.
|
Fixes #10063