Skip to content

Conversation

@fuweid
Copy link
Member

@fuweid fuweid commented Jan 29, 2023

It is kind of race because sleep 1s is short live process.

See: #7965 (comment)
Fixes: #7965

Signed-off-by: Wei Fu [email protected]

@fuweid
Copy link
Member Author

fuweid commented Jan 29, 2023

cc @thaJeztah

testMultiLayeredImage = images.Get(images.VolumeCopyUp)
shortCommand = withProcessArgs("true")
longCommand = withProcessArgs("/bin/sh", "-c", "while true; do sleep 1; done")
longCommand = withProcessArgs("/bin/sh", "-c", "while true; do sleep 1d; done")
Copy link
Member Author

Choose a reason for hiding this comment

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

Side note: the longCommand applies to unix build flags.

It is kind of race because `sleep 1s` is short live process.

See: containerd#7965 (comment)
Fixes: containerd#7965

Signed-off-by: Wei Fu <[email protected]>
Copy link
Member

@samuelkarp samuelkarp 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!

@fuweid fuweid merged commit aef75c4 into containerd:main Jan 29, 2023
@fuweid fuweid deleted the fix-7965 branch January 29, 2023 11:00
@thaJeztah
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

easy-to-review Easy to review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TestContainerPids failed. It seems unrelated.

4 participants