integration-cli: update TestCreateWithWorkdir for Hyper-V isolation#39876
Merged
cpuguy83 merged 1 commit intomoby:masterfrom Sep 20, 2019
Merged
integration-cli: update TestCreateWithWorkdir for Hyper-V isolation#39876cpuguy83 merged 1 commit intomoby:masterfrom
cpuguy83 merged 1 commit intomoby:masterfrom
Conversation
Member
Author
|
@StefanScherer @vikramhh ptal |
vikramhh
reviewed
Sep 10, 2019
vikramhh
left a comment
There was a problem hiding this comment.
Is it possible that on some [slow or heavily loaded] machines, the container may not stop in time for the next check in line 321?
Member
Author
# container runs a shell to mimic a slow stopping container (will ignore SIGTERM, and be SIGKILL'd after 10 seconds)
docker run -dit --rm --name foobar busybox
# time how long it takes to stop; you can see it waits for 10 seconds+
time -p docker stop foobar
real 10.67
user 0.03
sys 0.01 |
StefanScherer
approved these changes
Sep 10, 2019
Member
|
This is funny because I believe we use |
tiborvass
approved these changes
Sep 12, 2019
Member
|
Looks like we have a flakey unit test: |
Member
|
And one on Windows, unrelated: |
cpuguy83
reviewed
Sep 12, 2019
bb39cd5 to
b83c505
Compare
Hyper-V isolated containers do not allow file-operations on a running container. This test currently uses `docker cp` to verify that the WORKDIR was automatically created, which cannot be done while the container is running. ``` FAIL: docker_cli_create_test.go:302: DockerSuite.TestCreateWithWorkdir assertion failed: Command: d:\CI-7\CI-f3768a669\binary\docker.exe cp foo:c:\home\foo\bar c:\tmp ExitCode: 1 Error: exit status 1 Stdout: Stderr: Error response from daemon: filesystem operations against a running Hyper-V container are not supported Failures: ExitCode was 1 expected 0 Expected no error ``` Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
b83c505 to
ac9ef84
Compare
Member
Author
|
@cpuguy83 updated; ptal |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
(taken from #39846)
Hyper-V isolated containers do not allow file-operations on a running container. This test currently uses
docker cpto verify that the WORKDIR was automatically created, which cannot be done while the container is running.