Skip to content

Upgrade to buildkit v0.11-rc3. - #4296

Merged
sipsma merged 1 commit into
dagger:mainfrom
sipsma:buildkit-v0.11
Jan 4, 2023
Merged

sipsma merged 1 commit into
dagger:mainfrom
sipsma:buildkit-v0.11

Conversation

@sipsma

@sipsma sipsma commented Jan 4, 2023

Copy link
Copy Markdown
Contributor

Signed-off-by: Erik Sipsma [email protected]

Related to #4293

We should still update to the official v0.11 once it's out, but it's unlikely there will be many more substantial updates needed, so may as well get this out of the way now.

Main changes:

  1. There were some fixes upstream to cleanup directories that were only created for mounts, so one of our test cases needed tweaking to explicitly create a dir instead of relying on it implicitly being created when used as a mountpoint
  2. The fsutil code in our repo is removed since we get it from upstream now
  3. opentelemetry deps are aligned with those in buildkit, otherwise I was getting an error from an otel lib (cannot merge resource due to conflicting Schema URL) but only in the dind test for some reason...

@sipsma
sipsma requested a review from vito January 4, 2023 02:19

@vito vito left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm! Looking forward to having a shiny new Buildkit.

Comment on lines +1602 to +1606
require.Equal(t, []string{"/mnt/tmp"}, execRes.Container.From.WithDirectory.WithMountedTemp.Mounts)
require.Equal(t, []string{"/mnt/tmp", "/mnt/dir"}, execRes.Container.From.WithDirectory.WithMountedTemp.WithMountedDirectory.Mounts)
require.Equal(t, "some-dir\nsome-file\n", execRes.Container.From.WithDirectory.WithMountedTemp.WithMountedDirectory.WithExec.Stdout)
require.Equal(t, "", execRes.Container.From.WithDirectory.WithMountedTemp.WithMountedDirectory.WithExec.WithoutMount.WithExec.Stdout)
require.Equal(t, []string{"/mnt/tmp"}, execRes.Container.From.WithDirectory.WithMountedTemp.WithMountedDirectory.WithExec.WithoutMount.Mounts)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Out of curiosity, how did this fail before? Would it be equally correct to update the assertion?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

We got an error when trying to run the exec because we try to run ls on a dir that didn't exist. So just updating the assertion wasn't in the cards I don't think.

@sipsma
sipsma merged commit 298f21a into dagger:main Jan 4, 2023
@sipsma sipsma mentioned this pull request Jan 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants