Skip to content
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

deflake: TestContainerPids #8023

Merged
merged 2 commits into from
Jan 29, 2023
Merged

deflake: TestContainerPids #8023

merged 2 commits into from
Jan 29, 2023

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 fuweid89@gmail.com

@fuweid
Copy link
Member Author

fuweid commented Jan 29, 2023

cc @thaJeztah

@@ -30,7 +30,7 @@ var (
testImage = images.Get(images.BusyBox)
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 <fuweid89@gmail.com>
Signed-off-by: Wei Fu <fuweid89@gmail.com>
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