Skip to content

Fix semantic of Fail to not care about exit code#3565

Merged
djdongjin merged 1 commit intocontainerd:mainfrom
apostasie:helpers-fail-behavior
Oct 17, 2024
Merged

Fix semantic of Fail to not care about exit code#3565
djdongjin merged 1 commit intocontainerd:mainfrom
apostasie:helpers-fail-behavior

Conversation

@apostasie
Copy link
Copy Markdown
Contributor

This is a small change broken out of #3550 which is pending review (will rebase once this is in).

Fail() is not expected to verify the exitcode, just that the task fail.
This is specifically important as Docker often returns 127 instead of 1 in certain conditions.

Signed-off-by: apostasie <spam_blackhole@farcloser.world>
@apostasie apostasie mentioned this pull request Oct 17, 2024
Copy link
Copy Markdown
Member

@djdongjin djdongjin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks

@djdongjin djdongjin added this to the v2.0.0 milestone Oct 17, 2024
@djdongjin djdongjin merged commit 7748f15 into containerd:main Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants