vendor buildkit 6861f17f15364de0fe1fd1e6e8da07598a485123#41601
vendor buildkit 6861f17f15364de0fe1fd1e6e8da07598a485123#41601tiborvass merged 7 commits intomoby:masterfrom
Conversation
|
Failures look related; |
|
Created a list of diffs per dependency:
|
There was a problem hiding this comment.
this is downgrading to an older version; could you update the version in buildkit instead?
|
I know containerd doesn't have a stable Go API (yet); still trying to see what chances we have to stay on release branches / released versions, so that we can have bug- and security fixes backported upstream, and to make our dependency graph more |
|
Sorry this is not ready, I need to fix things still. |
@ktock Could we reorganize the package structure not to require this dependency? (Not a blocker for merging this PR) |
👍 yes, if we don't need it in this code, that would be better of course! |
|
Some upstream buildit PRs were opened;
|
1a08597 to
cd50e5b
Compare
|
@thaJeztah @tonistiigi updated. I will open a separate PR for sync-ing vendoring hashes. |
945d99b to
b12df87
Compare
There was a problem hiding this comment.
Can you combine the "use buildkit dockerignore" with the vendor commit? (edit: so that it's clear these files moved?)
Also should add a "deprecated.go" that deprecated it, but aliases it to to the new location (to help the transition); there's quite some consumers of it; https://grep.app/search?current=2&q=github.com/docker/docker/builder/dockerignore
There was a problem hiding this comment.
This is not pkg/ but fine
There was a problem hiding this comment.
Does it make a difference? afaik the pkg/ prefix was a convention, but now discouraged and deprecated
|
This failure looks related; I suspect my changes in moby/buildkit#1559 broke that test. Looks like it was added in eaf0b57 (#27873), but AFAICS that was testing a bare (non-escaped) |
Signed-off-by: Tibor Vass <[email protected]>
Signed-off-by: Tibor Vass <[email protected]>
Signed-off-by: Tibor Vass <[email protected]>
Signed-off-by: Tibor Vass <[email protected]>
Signed-off-by: Tibor Vass <[email protected]>
This old test is failing after an edge-case change in dockerfile parsing considered a bugfix: moby/buildkit#1559 Instead of fixing the test, I suggest removing it as there are already tests for it in BuildKit. Signed-off-by: Tibor Vass <[email protected]>
|
@thaJeztah @tonistiigi it's updated and the s390x failure seems unrelated. |
|
Thanks!
… On 14 Nov 2020, at 07:32, Tibor Vass ***@***.***> wrote:
@thaJeztah @tonistiigi it's updated and the s390x failure seems unrelated. --cache-from works for both inline cache local, inline-cache remote, and with remote cache exported with mode=max.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
|
Building buildkit:master with this PR: From output you can see |
diff --git a/builder/builder-next/adapters/containerimage/pull.go b/builder/builder-next/adapters/containerimage/pull.go
index d0891cb598..62977675bd 100644
--- a/builder/builder-next/adapters/containerimage/pull.go
+++ b/builder/builder-next/adapters/containerimage/pull.go
@@ -93,7 +93,11 @@ func (is *Source) resolveRemote(ctx context.Context, ref string, platform *ocisp
dgst digest.Digest
dt []byte
}
- res, err := is.g.Do(ctx, ref, func(ctx context.Context) (interface{}, error) {
+ p := platforms.DefaultSpec()
+ if platform != nil {
+ p = *platform
+ }
+ res, err := is.g.Do(ctx, "getconfig::"+ref+"::"+platforms.Format(p), func(ctx context.Context) (interface{}, error) {
res := resolver.DefaultPool.GetResolver(is.RegistryHosts, ref, "pull", sm, g)
dgst, dt, err := imageutil.Config(ctx, ref, res, is.ContentStore, nil, platform)
if err != nil {
@@ -247,7 +251,7 @@ func (p *puller) resolveLocal() {
}
func (p *puller) resolve(ctx context.Context, g session.Group) error {
- _, err := p.is.g.Do(ctx, "", func(ctx context.Context) (_ interface{}, err error) {
+ _, err := p.is.g.Do(ctx, "resolve::"+p.ref+"::"+platforms.Format(p.platform), func(ctx context.Context) (_ interface{}, err error) {
resolveProgressDone := oneOffProgress(ctx, "resolve "+p.src.Reference.String())
defer func() {
resolveProgressDone(err)
|
|
@tonistiigi updated |
|
I don't see how TestInspect failure would be related to this PR. Probably a flakey test. |
cpuguy83
left a comment
There was a problem hiding this comment.
Is there a summary of changes in this bump?
|
|
||
| } | ||
|
|
||
| func (s *DockerSuite) TestBuildContChar(c *testing.T) { |
There was a problem hiding this comment.
I don't like that we are removing the test.
Even if it is tested in buildkit, this is more of an end-to-end test, and we make sure it doesn't break regardless of builder.
There was a problem hiding this comment.
@cpuguy83 who writes a \ as the last character of a Dockerfile? I am of the opinion that it's such an edge case that I'm prioritizing removing legacy tests that are useless. But if you feel strongly about this I can fix the test.
Signed-off-by: Tibor Vass <[email protected]>
Signed-off-by: Tibor Vass [email protected]