archive: refactor race fixing logic to prevent potential deadlock#39920
archive: refactor race fixing logic to prevent potential deadlock#39920tiborvass wants to merge 2 commits intomoby:masterfrom
Conversation
fcc61bb to
70492a5
Compare
|
Added a test for the deadlock, thanks @tonistiigi |
|
The test is rightfully failing for me when only taking the first commit (without the fix) |
|
@tiborvass failures look related; https://ci.docker.com/public/job/moby/job/PR-39920/3/execution/node/207/log/ https://ci.docker.com/public/job/moby/job/PR-39920/3/execution/node/212/log/ https://ci.docker.com/public/job/moby/job/PR-39920/3/execution/node/217/log/ |
|
ping @tiborvass - what's the status on this one? |
|
ping @tiborvass |
|
@tiborvass when you get a chance, rebase this to get the latest tests run on this change |
|
ping @tiborvass |
|
ping @tiborvass PTAL |
1 similar comment
|
ping @tiborvass PTAL |
The following currently fails ``` GO111MODUEL=off go test -run TestCmdStreamDeadlock ./pkg/archive ``` and is fixed by the next commit. Signed-off-by: Tibor Vass <teabee89@gmail.com>
Signed-off-by: Tibor Vass <teabee89@gmail.com>
70492a5 to
a47c090
Compare
|
@thaJeztah Rebased |
|
Hm... something's either broken (I've seen this error on another PRs, so might not be related), or there was a glitch that we hit. Let me kick CI again. |
Signed-off-by: Tibor Vass tibor@docker.com
Follow up to #39860
cc @tonistiigi @cpuguy83 @kolyshkin
modeled after https://github.com/tonistiigi/copy/blob/go-copy/detect/detect.go#L85