[v0.11 backport] frontend: fix testMultiStageImplicitFrom to account for busybox changes#3438
Merged
crazy-max merged 1 commit intomoby:v0.11from Dec 28, 2022
Merged
Conversation
It looks like there's some changes between `busybox:1.34.0` and up; version
1.34.0 of the image did not have a `/usr/bin` directory (only `/usr/sbin`);
docker run --rm -it busybox:1.34.0 ls -al /usr/
total 12
drwxr-xr-x 3 root root 4096 Sep 13 2021 .
drwxr-xr-x 1 root root 4096 Dec 27 14:45 ..
drwxr-xr-x 2 daemon daemon 4096 Sep 13 2021 sbin
But 1.34.1 and up do;
docker run --rm -it busybox:1.34.1 ls -al usr/
total 16
drwxr-xr-x 4 root root 4096 Dec 21 18:28 .
drwxr-xr-x 1 root root 4096 Dec 27 14:44 ..
drwxr-xr-x 2 root root 4096 Dec 21 18:28 bin
drwxr-xr-x 2 daemon daemon 4096 Dec 21 18:28 sbin
It's not immediately apparent what caused this change, or if it's in
busybox itself, or in the official image only;
mirror/busybox@1_34_0...1_34_1
But either way, this change caused a test to fail:
sandbox.go:238: time="2022-12-27T13:45:25.294022820Z" level=debug msg="> creating 4gr5bno8rj7l3k7h9jxe3jhal [/bin/sh -c mkdir /usr/bin && echo -n foo > /usr/bin/go]" span="[golang 2/2] RUN mkdir /usr/bin && echo -n foo > /usr/bin/go"
sandbox.go:238: time="2022-12-27T13:45:25.433886983Z" level=debug msg="sandbox set key processing took 70.062631ms for container 5b4o358g2ryquk4s6ami38gqo"
sandbox.go:238: mkdir: can't create directory '/usr/bin': File exists
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 34f9898)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Member
Author
|
Hm.. more to fix in this branch? Trying to find the actual error, but don't see it immediately at a glance |
Member
related to #3401 |
Member
Author
|
Ah, okay, thanks! |
crazy-max
approved these changes
Dec 27, 2022
Member
Author
|
@crazy-max this one good to go? |
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.
It looks like there's some changes between
busybox:1.34.0and up; version 1.34.0 of the image did not have a/usr/bindirectory (only/usr/sbin);But 1.34.1 and up do;
It's not immediately apparent what caused this change, or if it's in busybox itself, or in the official image only;
mirror/busybox@1_34_0...1_34_1
But either way, this change caused a test to fail:
(cherry picked from commit 34f9898)