pull/2005/merge
Justin Chadwell 2 years ago committed by GitHub
commit 906dcf5ca8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -6,7 +6,7 @@ ARG XX_VERSION=1.2.1
ARG DOCKER_VERSION=24.0.2 ARG DOCKER_VERSION=24.0.2
ARG GOTESTSUM_VERSION=v1.9.0 ARG GOTESTSUM_VERSION=v1.9.0
ARG REGISTRY_VERSION=2.8.0 ARG REGISTRY_VERSION=2.8.0
ARG BUILDKIT_VERSION=v0.11.6 ARG BUILDKIT_VERSION=master
# xx is a helper for cross-compilation # xx is a helper for cross-compilation
FROM --platform=$BUILDPLATFORM tonistiigi/xx:${XX_VERSION} AS xx FROM --platform=$BUILDPLATFORM tonistiigi/xx:${XX_VERSION} AS xx

@ -9,6 +9,7 @@ import (
"strings" "strings"
"github.com/docker/buildx/util/gitutil" "github.com/docker/buildx/util/gitutil"
bkgitutil "github.com/moby/buildkit/util/gitutil"
specs "github.com/opencontainers/image-spec/specs-go/v1" specs "github.com/opencontainers/image-spec/specs-go/v1"
"github.com/pkg/errors" "github.com/pkg/errors"
) )
@ -49,7 +50,7 @@ func getGitAttributes(ctx context.Context, contextPath string, dockerfilePath st
wd, _ = filepath.Abs(filepath.Join(cwd, contextPath)) wd, _ = filepath.Abs(filepath.Join(cwd, contextPath))
} }
gitc, err := gitutil.New(gitutil.WithContext(ctx), gitutil.WithWorkingDir(wd)) gitc, err := gitutil.New(bkgitutil.WithDir(wd))
if err != nil { if err != nil {
if st, err := os.Stat(path.Join(wd, ".git")); err == nil && st.IsDir() { if st, err := os.Stat(path.Join(wd, ".git")); err == nil && st.IsDir() {
return res, errors.New("buildx: git was not found in the system. Current commit information was not captured by the build") return res, errors.New("buildx: git was not found in the system. Current commit information was not captured by the build")
@ -57,14 +58,14 @@ func getGitAttributes(ctx context.Context, contextPath string, dockerfilePath st
return return
} }
if !gitc.IsInsideWorkTree() { if !gitc.IsInsideWorkTree(ctx) {
if st, err := os.Stat(path.Join(wd, ".git")); err == nil && st.IsDir() { if st, err := os.Stat(path.Join(wd, ".git")); err == nil && st.IsDir() {
return res, errors.New("buildx: failed to read current commit information with git rev-parse --is-inside-work-tree") return res, errors.New("buildx: failed to read current commit information with git rev-parse --is-inside-work-tree")
} }
return res, nil return res, nil
} }
if sha, err := gitc.FullCommit(); err != nil && !gitutil.IsUnknownRevision(err) { if sha, err := gitc.FullCommit(ctx); err != nil && !gitutil.IsUnknownRevision(err) {
return res, errors.Wrapf(err, "buildx: failed to get git commit") return res, errors.Wrapf(err, "buildx: failed to get git commit")
} else if sha != "" { } else if sha != "" {
checkDirty := false checkDirty := false
@ -73,7 +74,7 @@ func getGitAttributes(ctx context.Context, contextPath string, dockerfilePath st
checkDirty = v checkDirty = v
} }
} }
if checkDirty && gitc.IsDirty() { if checkDirty && gitc.IsDirty(ctx) {
sha += "-dirty" sha += "-dirty"
} }
if setGitLabels { if setGitLabels {
@ -84,7 +85,7 @@ func getGitAttributes(ctx context.Context, contextPath string, dockerfilePath st
} }
} }
if rurl, err := gitc.RemoteURL(); err == nil && rurl != "" { if rurl, err := gitc.RemoteURL(ctx); err == nil && rurl != "" {
if setGitLabels { if setGitLabels {
res["label:"+specs.AnnotationSource] = rurl res["label:"+specs.AnnotationSource] = rurl
} }
@ -94,7 +95,7 @@ func getGitAttributes(ctx context.Context, contextPath string, dockerfilePath st
} }
if setGitLabels { if setGitLabels {
if root, err := gitc.RootDir(); err != nil { if root, err := gitc.WorkTree(ctx); err != nil {
return res, errors.Wrapf(err, "buildx: failed to get git root dir") return res, errors.Wrapf(err, "buildx: failed to get git root dir")
} else if root != "" { } else if root != "" {
if dockerfilePath == "" { if dockerfilePath == "" {

@ -129,7 +129,7 @@ require (
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
github.com/opencontainers/runc v1.1.7 // indirect github.com/opencontainers/runc v1.1.9 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/prometheus/client_golang v1.14.0 // indirect github.com/prometheus/client_golang v1.14.0 // indirect
github.com/prometheus/client_model v0.3.0 // indirect github.com/prometheus/client_model v0.3.0 // indirect
@ -179,3 +179,5 @@ require (
sigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect sigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect
sigs.k8s.io/yaml v1.3.0 // indirect sigs.k8s.io/yaml v1.3.0 // indirect
) )
replace github.com/moby/buildkit => github.com/jedevc/buildkit v0.8.2-0.20230816145044-96097aa7c4f0

@ -322,6 +322,8 @@ github.com/in-toto/in-toto-golang v0.5.0 h1:hb8bgwr0M2hGdDsLjkJ3ZqJ8JFLL/tgYdAxF
github.com/in-toto/in-toto-golang v0.5.0/go.mod h1:/Rq0IZHLV7Ku5gielPT4wPHJfH1GdHMCq8+WPxw8/BE= github.com/in-toto/in-toto-golang v0.5.0/go.mod h1:/Rq0IZHLV7Ku5gielPT4wPHJfH1GdHMCq8+WPxw8/BE=
github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8=
github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw=
github.com/jedevc/buildkit v0.8.2-0.20230816145044-96097aa7c4f0 h1:3IbPFkidmZrZEiTzRNfsM72feiuc1tZA9OLDUwusL6k=
github.com/jedevc/buildkit v0.8.2-0.20230816145044-96097aa7c4f0/go.mod h1:BIvNtlrvok2xTC734ZNhQVGayvMB1Dz8bFuArWTLnnM=
github.com/jinzhu/gorm v1.9.2 h1:lCvgEaqe/HVE+tjAR2mt4HbbHAZsQOv3XAZiEZV37iw= github.com/jinzhu/gorm v1.9.2 h1:lCvgEaqe/HVE+tjAR2mt4HbbHAZsQOv3XAZiEZV37iw=
github.com/jinzhu/gorm v1.9.2/go.mod h1:Vla75njaFJ8clLU1W44h34PjIkijhjHIYnZxMqCdxqo= github.com/jinzhu/gorm v1.9.2/go.mod h1:Vla75njaFJ8clLU1W44h34PjIkijhjHIYnZxMqCdxqo=
github.com/jinzhu/inflection v0.0.0-20180308033659-04140366298a h1:eeaG9XMUvRBYXJi4pg1ZKM7nxc5AfXfojeLLW7O5J3k= github.com/jinzhu/inflection v0.0.0-20180308033659-04140366298a h1:eeaG9XMUvRBYXJi4pg1ZKM7nxc5AfXfojeLLW7O5J3k=
@ -372,8 +374,6 @@ github.com/mitchellh/go-wordwrap v0.0.0-20150314170334-ad45545899c7 h1:DpOJ2HYzC
github.com/mitchellh/go-wordwrap v0.0.0-20150314170334-ad45545899c7/go.mod h1:ZXFpozHsX6DPmq2I0TCekCxypsnAUbP2oI0UX1GXzOo= github.com/mitchellh/go-wordwrap v0.0.0-20150314170334-ad45545899c7/go.mod h1:ZXFpozHsX6DPmq2I0TCekCxypsnAUbP2oI0UX1GXzOo=
github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY= github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY=
github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo=
github.com/moby/buildkit v0.12.1-0.20230804094609-b49a8873179b h1:LUpEbvxcyM0NuWk54WwNjDVZ5YujyCm1CudzZpqaohE=
github.com/moby/buildkit v0.12.1-0.20230804094609-b49a8873179b/go.mod h1:bs0LeDdh7AQpYXLiPNUt+hzDjRxMg+QeLq1a1r0awFM=
github.com/moby/locker v1.0.1 h1:fOXqR41zeveg4fFODix+1Ch4mj/gT0NE1XJbp/epuBg= github.com/moby/locker v1.0.1 h1:fOXqR41zeveg4fFODix+1Ch4mj/gT0NE1XJbp/epuBg=
github.com/moby/locker v1.0.1/go.mod h1:S7SDdo5zpBK84bzzVlKr2V0hz+7x9hWbYC/kq7oQppc= github.com/moby/locker v1.0.1/go.mod h1:S7SDdo5zpBK84bzzVlKr2V0hz+7x9hWbYC/kq7oQppc=
github.com/moby/patternmatcher v0.5.0 h1:YCZgJOeULcxLw1Q+sVR636pmS7sPEn1Qo2iAN6M7DBo= github.com/moby/patternmatcher v0.5.0 h1:YCZgJOeULcxLw1Q+sVR636pmS7sPEn1Qo2iAN6M7DBo=
@ -407,8 +407,8 @@ github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8
github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM= github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM=
github.com/opencontainers/image-spec v1.1.0-rc3 h1:fzg1mXZFj8YdPeNkRXMg+zb88BFV0Ys52cJydRwBkb8= github.com/opencontainers/image-spec v1.1.0-rc3 h1:fzg1mXZFj8YdPeNkRXMg+zb88BFV0Ys52cJydRwBkb8=
github.com/opencontainers/image-spec v1.1.0-rc3/go.mod h1:X4pATf0uXsnn3g5aiGIsVnJBR4mxhKzfwmvK/B2NTm8= github.com/opencontainers/image-spec v1.1.0-rc3/go.mod h1:X4pATf0uXsnn3g5aiGIsVnJBR4mxhKzfwmvK/B2NTm8=
github.com/opencontainers/runc v1.1.7 h1:y2EZDS8sNng4Ksf0GUYNhKbTShZJPJg1FiXJNH/uoCk= github.com/opencontainers/runc v1.1.9 h1:XR0VIHTGce5eWPkaPesqTBrhW2yAcaraWfsEalNwQLM=
github.com/opencontainers/runc v1.1.7/go.mod h1:CbUumNnWCuTGFukNXahoo/RFBZvDAgRh/smNYNOhA50= github.com/opencontainers/runc v1.1.9/go.mod h1:CbUumNnWCuTGFukNXahoo/RFBZvDAgRh/smNYNOhA50=
github.com/opencontainers/runtime-spec v1.1.0-rc.2 h1:ucBtEms2tamYYW/SvGpvq9yUN0NEVL6oyLEwDcTSrk8= github.com/opencontainers/runtime-spec v1.1.0-rc.2 h1:ucBtEms2tamYYW/SvGpvq9yUN0NEVL6oyLEwDcTSrk8=
github.com/opencontainers/selinux v1.11.0 h1:+5Zbo97w3Lbmb3PeqQtpmTkMwsW5nRI3YaLpt7tQ7oU= github.com/opencontainers/selinux v1.11.0 h1:+5Zbo97w3Lbmb3PeqQtpmTkMwsW5nRI3YaLpt7tQ7oU=
github.com/opentracing/opentracing-go v1.1.0/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= github.com/opentracing/opentracing-go v1.1.0/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o=

@ -6,6 +6,7 @@ import (
"github.com/containerd/continuity/fs/fstest" "github.com/containerd/continuity/fs/fstest"
"github.com/docker/buildx/util/gitutil" "github.com/docker/buildx/util/gitutil"
bkgitutil "github.com/moby/buildkit/util/gitutil"
"github.com/moby/buildkit/util/testutil/integration" "github.com/moby/buildkit/util/testutil/integration"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )
@ -66,7 +67,7 @@ EOT
) )
dirDest := t.TempDir() dirDest := t.TempDir()
git, err := gitutil.New(gitutil.WithWorkingDir(dir)) git, err := gitutil.New(bkgitutil.WithDir(dir))
require.NoError(t, err) require.NoError(t, err)
gitutil.GitInit(git, t) gitutil.GitInit(git, t)
@ -100,7 +101,7 @@ EOT
) )
dirDest := t.TempDir() dirDest := t.TempDir()
git, err := gitutil.New(gitutil.WithWorkingDir(dirSpec)) git, err := gitutil.New(bkgitutil.WithDir(dirSpec))
require.NoError(t, err) require.NoError(t, err)
gitutil.GitInit(git, t) gitutil.GitInit(git, t)
@ -134,14 +135,14 @@ EOT
) )
dirDest := t.TempDir() dirDest := t.TempDir()
gitSpec, err := gitutil.New(gitutil.WithWorkingDir(dirSpec)) gitSpec, err := gitutil.New(bkgitutil.WithDir(dirSpec))
require.NoError(t, err) require.NoError(t, err)
gitutil.GitInit(gitSpec, t) gitutil.GitInit(gitSpec, t)
gitutil.GitAdd(gitSpec, t, "docker-bake.hcl") gitutil.GitAdd(gitSpec, t, "docker-bake.hcl")
gitutil.GitCommit(gitSpec, t, "initial commit") gitutil.GitCommit(gitSpec, t, "initial commit")
addrSpec := gitutil.GitServeHTTP(gitSpec, t) addrSpec := gitutil.GitServeHTTP(gitSpec, t)
gitSrc, err := gitutil.New(gitutil.WithWorkingDir(dirSrc)) gitSrc, err := gitutil.New(bkgitutil.WithDir(dirSrc))
require.NoError(t, err) require.NoError(t, err)
gitutil.GitInit(gitSrc, t) gitutil.GitInit(gitSrc, t)
gitutil.GitAdd(gitSrc, t, "foo") gitutil.GitAdd(gitSrc, t, "foo")
@ -175,7 +176,7 @@ COPY super-cool.txt /
) )
dirDest := t.TempDir() dirDest := t.TempDir()
git, err := gitutil.New(gitutil.WithWorkingDir(dir)) git, err := gitutil.New(bkgitutil.WithDir(dir))
require.NoError(t, err) require.NoError(t, err)
gitutil.GitInit(git, t) gitutil.GitInit(git, t)
gitutil.GitAdd(git, t, "docker-bake.hcl", "bar") gitutil.GitAdd(git, t, "docker-bake.hcl", "bar")
@ -215,7 +216,7 @@ EOT
) )
dirDest := t.TempDir() dirDest := t.TempDir()
git, err := gitutil.New(gitutil.WithWorkingDir(dirSpec)) git, err := gitutil.New(bkgitutil.WithDir(dirSpec))
require.NoError(t, err) require.NoError(t, err)
gitutil.GitInit(git, t) gitutil.GitInit(git, t)
@ -262,7 +263,7 @@ EOT
) )
dirDest := t.TempDir() dirDest := t.TempDir()
git, err := gitutil.New(gitutil.WithWorkingDir(dirSpec)) git, err := gitutil.New(bkgitutil.WithDir(dirSpec))
require.NoError(t, err) require.NoError(t, err)
gitutil.GitInit(git, t) gitutil.GitInit(git, t)

@ -1,111 +1,73 @@
package gitutil package gitutil
import ( import (
"bytes"
"context" "context"
"net/url" "net/url"
"os"
"os/exec"
"path/filepath"
"strings" "strings"
bkgitutil "github.com/moby/buildkit/util/gitutil"
"github.com/pkg/errors" "github.com/pkg/errors"
) )
// Git represents an active git object // GitCLI represents an active git object
type Git struct { type GitCLI struct {
ctx context.Context bkgitutil.GitCLI
wd string
gitpath string
}
// Option provides a variadic option for configuring the git client.
type Option func(b *Git)
// WithContext sets context.
func WithContext(ctx context.Context) Option {
return func(b *Git) {
b.ctx = ctx
}
}
// WithWorkingDir sets working directory.
func WithWorkingDir(wd string) Option {
return func(b *Git) {
b.wd = wd
}
} }
// New initializes a new git client // New initializes a new git client
func New(opts ...Option) (*Git, error) { func New(opts ...bkgitutil.Option) (*GitCLI, error) {
var err error cli, err := bkgitutil.NewGitCLI(opts...)
c := &Git{ if err != nil {
ctx: context.Background(), return nil, err
}
for _, opt := range opts {
opt(c)
} }
c.gitpath, err = gitPath(c.wd) gitpath, err := gitPath(cli.Dir())
if err != nil { if err != nil {
return nil, errors.New("git not found in PATH") return nil, errors.New("git not found in PATH")
} }
cli = cli.New(bkgitutil.WithGitBinary(gitpath))
return c, nil return &GitCLI{*cli}, nil
} }
func (c *Git) IsInsideWorkTree() bool { func (cli *GitCLI) IsInsideWorkTree(ctx context.Context) bool {
out, err := c.clean(c.run("rev-parse", "--is-inside-work-tree")) out, err := cli.clean(cli.Run(ctx, "rev-parse", "--is-inside-work-tree"))
return out == "true" && err == nil return out == "true" && err == nil
} }
func (c *Git) IsDirty() bool { func (cli *GitCLI) IsDirty(ctx context.Context) bool {
out, err := c.run("status", "--porcelain", "--ignored") out, err := cli.Run(ctx, "status", "--porcelain", "--ignored")
return strings.TrimSpace(out) != "" || err != nil return strings.TrimSpace(string(out)) != "" || err != nil
}
func (c *Git) RootDir() (string, error) {
return c.clean(c.run("rev-parse", "--show-toplevel"))
} }
func (c *Git) GitDir() (string, error) { func (cli *GitCLI) RemoteURL(ctx context.Context) (string, error) {
dir, err := c.RootDir()
if err != nil {
return "", err
}
return filepath.Join(dir, ".git"), nil
}
func (c *Git) RemoteURL() (string, error) {
// Try to get the remote URL from the origin remote first // Try to get the remote URL from the origin remote first
if ru, err := c.clean(c.run("remote", "get-url", "origin")); err == nil && ru != "" { if ru, err := cli.clean(cli.Run(ctx, "remote", "get-url", "origin")); err == nil && ru != "" {
return stripCredentials(ru), nil return stripCredentials(ru), nil
} }
// If that fails, try to get the remote URL from the upstream remote // If that fails, try to get the remote URL from the upstream remote
if ru, err := c.clean(c.run("remote", "get-url", "upstream")); err == nil && ru != "" { if ru, err := cli.clean(cli.Run(ctx, "remote", "get-url", "upstream")); err == nil && ru != "" {
return stripCredentials(ru), nil return stripCredentials(ru), nil
} }
return "", errors.New("no remote URL found for either origin or upstream") return "", errors.New("no remote URL found for either origin or upstream")
} }
func (c *Git) FullCommit() (string, error) { func (cli *GitCLI) FullCommit(ctx context.Context) (string, error) {
return c.clean(c.run("show", "--format=%H", "HEAD", "--quiet", "--")) return cli.clean(cli.Run(ctx, "show", "--format=%H", "HEAD", "--quiet", "--"))
} }
func (c *Git) ShortCommit() (string, error) { func (cli *GitCLI) ShortCommit(ctx context.Context) (string, error) {
return c.clean(c.run("show", "--format=%h", "HEAD", "--quiet", "--")) return cli.clean(cli.Run(ctx, "show", "--format=%h", "HEAD", "--quiet", "--"))
} }
func (c *Git) Tag() (string, error) { func (cli *GitCLI) Tag(ctx context.Context) (string, error) {
var tag string var tag string
var err error var err error
for _, fn := range []func() (string, error){ for _, fn := range []func() (string, error){
func() (string, error) { func() (string, error) {
return c.clean(c.run("tag", "--points-at", "HEAD", "--sort", "-version:creatordate")) return cli.clean(cli.Run(ctx, "tag", "--points-at", "HEAD", "--sort", "-version:creatordate"))
}, },
func() (string, error) { func() (string, error) {
return c.clean(c.run("describe", "--tags", "--abbrev=0")) return cli.clean(cli.Run(ctx, "describe", "--tags", "--abbrev=0"))
}, },
} { } {
tag, err = fn() tag, err = fn()
@ -116,32 +78,8 @@ func (c *Git) Tag() (string, error) {
return tag, err return tag, err
} }
func (c *Git) run(args ...string) (string, error) { func (cli *GitCLI) clean(dt []byte, err error) (string, error) {
var extraArgs = []string{ out := string(dt)
"-c", "log.showSignature=false",
}
args = append(extraArgs, args...)
cmd := exec.CommandContext(c.ctx, c.gitpath, args...)
if c.wd != "" {
cmd.Dir = c.wd
}
// Override the locale to ensure consistent output
cmd.Env = append(os.Environ(), "LC_ALL=C")
stdout := bytes.Buffer{}
stderr := bytes.Buffer{}
cmd.Stdout = &stdout
cmd.Stderr = &stderr
if err := cmd.Run(); err != nil {
return "", errors.New(stderr.String())
}
return stdout.String(), nil
}
func (c *Git) clean(out string, err error) (string, error) {
out = strings.ReplaceAll(strings.Split(out, "\n")[0], "'", "") out = strings.ReplaceAll(strings.Split(out, "\n")[0], "'", "")
if err != nil { if err != nil {
err = errors.New(strings.TrimSuffix(err.Error(), "\n")) err = errors.New(strings.TrimSuffix(err.Error(), "\n"))

@ -1,26 +1,29 @@
package gitutil package gitutil
import ( import (
"context"
"testing" "testing"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )
func TestGit(t *testing.T) { func TestGit(t *testing.T) {
ctx := context.TODO()
c, err := New() c, err := New()
require.NoError(t, err) require.NoError(t, err)
out, err := c.run("status") out, err := c.Run(ctx, "status")
require.NoError(t, err) require.NoError(t, err)
require.NotEmpty(t, out) require.NotEmpty(t, out)
out, err = c.clean(c.run("not-exist")) out2, err := c.clean(c.Run(ctx, "not-exist"))
require.Error(t, err) require.Error(t, err)
require.Empty(t, out) require.Empty(t, out2)
require.Equal(t, "git: 'not-exist' is not a git command. See 'git --help'.", err.Error()) require.Contains(t, err.Error(), "git: 'not-exist' is not a git command. See 'git --help'.")
} }
func TestGitFullCommit(t *testing.T) { func TestGitFullCommit(t *testing.T) {
ctx := context.TODO()
Mktmp(t) Mktmp(t)
c, err := New() c, err := New()
require.NoError(t, err) require.NoError(t, err)
@ -28,12 +31,13 @@ func TestGitFullCommit(t *testing.T) {
GitInit(c, t) GitInit(c, t)
GitCommit(c, t, "bar") GitCommit(c, t, "bar")
out, err := c.FullCommit() out, err := c.FullCommit(ctx)
require.NoError(t, err) require.NoError(t, err)
require.Equal(t, 40, len(out)) require.Equal(t, 40, len(out))
} }
func TestGitShortCommit(t *testing.T) { func TestGitShortCommit(t *testing.T) {
ctx := context.TODO()
Mktmp(t) Mktmp(t)
c, err := New() c, err := New()
require.NoError(t, err) require.NoError(t, err)
@ -41,38 +45,41 @@ func TestGitShortCommit(t *testing.T) {
GitInit(c, t) GitInit(c, t)
GitCommit(c, t, "bar") GitCommit(c, t, "bar")
out, err := c.ShortCommit() out, err := c.ShortCommit(ctx)
require.NoError(t, err) require.NoError(t, err)
require.Equal(t, 7, len(out)) require.Equal(t, 7, len(out))
} }
func TestGitFullCommitErr(t *testing.T) { func TestGitFullCommitErr(t *testing.T) {
ctx := context.TODO()
Mktmp(t) Mktmp(t)
c, err := New() c, err := New()
require.NoError(t, err) require.NoError(t, err)
GitInit(c, t) GitInit(c, t)
_, err = c.FullCommit() _, err = c.FullCommit(ctx)
require.Error(t, err) require.Error(t, err)
require.True(t, IsUnknownRevision(err)) require.True(t, IsUnknownRevision(err))
require.False(t, IsAmbiguousArgument(err)) require.False(t, IsAmbiguousArgument(err))
} }
func TestGitShortCommitErr(t *testing.T) { func TestGitShortCommitErr(t *testing.T) {
ctx := context.TODO()
Mktmp(t) Mktmp(t)
c, err := New() c, err := New()
require.NoError(t, err) require.NoError(t, err)
GitInit(c, t) GitInit(c, t)
_, err = c.ShortCommit() _, err = c.ShortCommit(ctx)
require.Error(t, err) require.Error(t, err)
require.True(t, IsUnknownRevision(err)) require.True(t, IsUnknownRevision(err))
require.False(t, IsAmbiguousArgument(err)) require.False(t, IsAmbiguousArgument(err))
} }
func TestGitTagsPointsAt(t *testing.T) { func TestGitTagsPointsAt(t *testing.T) {
ctx := context.TODO()
Mktmp(t) Mktmp(t)
c, err := New() c, err := New()
require.NoError(t, err) require.NoError(t, err)
@ -83,12 +90,13 @@ func TestGitTagsPointsAt(t *testing.T) {
GitCommit(c, t, "foo") GitCommit(c, t, "foo")
GitTag(c, t, "v0.9.0") GitTag(c, t, "v0.9.0")
out, err := c.clean(c.run("tag", "--points-at", "HEAD", "--sort", "-version:creatordate")) out, err := c.clean(c.Run(ctx, "tag", "--points-at", "HEAD", "--sort", "-version:creatordate"))
require.NoError(t, err) require.NoError(t, err)
require.Equal(t, "v0.9.0", out) require.Equal(t, "v0.9.0", out)
} }
func TestGitDescribeTags(t *testing.T) { func TestGitDescribeTags(t *testing.T) {
ctx := context.TODO()
Mktmp(t) Mktmp(t)
c, err := New() c, err := New()
require.NoError(t, err) require.NoError(t, err)
@ -99,12 +107,14 @@ func TestGitDescribeTags(t *testing.T) {
GitCommit(c, t, "foo") GitCommit(c, t, "foo")
GitTag(c, t, "v0.9.0") GitTag(c, t, "v0.9.0")
out, err := c.clean(c.run("describe", "--tags", "--abbrev=0")) out, err := c.clean(c.Run(ctx, "describe", "--tags", "--abbrev=0"))
require.NoError(t, err) require.NoError(t, err)
require.Equal(t, "v0.9.0", out) require.Equal(t, "v0.9.0", out)
} }
func TestGitRemoteURL(t *testing.T) { func TestGitRemoteURL(t *testing.T) {
ctx := context.TODO()
type remote struct { type remote struct {
name string name string
url string url string
@ -179,7 +189,7 @@ func TestGitRemoteURL(t *testing.T) {
GitSetRemote(c, t, r.name, r.url) GitSetRemote(c, t, r.name, r.url)
} }
ru, err := c.RemoteURL() ru, err := c.RemoteURL(ctx)
if tt.fail { if tt.fail {
require.Error(t, err) require.Error(t, err)
return return

@ -1,6 +1,7 @@
package gitutil package gitutil
import ( import (
"context"
"os" "os"
"strings" "strings"
"testing" "testing"
@ -8,7 +9,7 @@ import (
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )
func GitInit(c *Git, tb testing.TB) { func GitInit(c *GitCLI, tb testing.TB) {
tb.Helper() tb.Helper()
out, err := fakeGit(c, "init") out, err := fakeGit(c, "init")
require.NoError(tb, err) require.NoError(tb, err)
@ -18,35 +19,35 @@ func GitInit(c *Git, tb testing.TB) {
_, _ = fakeGit(c, "branch", "-D", "master") _, _ = fakeGit(c, "branch", "-D", "master")
} }
func GitCommit(c *Git, tb testing.TB, msg string) { func GitCommit(c *GitCLI, tb testing.TB, msg string) {
tb.Helper() tb.Helper()
out, err := fakeGit(c, "commit", "--allow-empty", "-m", msg) out, err := fakeGit(c, "commit", "--allow-empty", "-m", msg)
require.NoError(tb, err) require.NoError(tb, err)
require.Contains(tb, out, "main", msg) require.Contains(tb, out, "main", msg)
} }
func GitTag(c *Git, tb testing.TB, tag string) { func GitTag(c *GitCLI, tb testing.TB, tag string) {
tb.Helper() tb.Helper()
out, err := fakeGit(c, "tag", tag) out, err := fakeGit(c, "tag", tag)
require.NoError(tb, err) require.NoError(tb, err)
require.Empty(tb, out) require.Empty(tb, out)
} }
func GitCheckoutBranch(c *Git, tb testing.TB, name string) { func GitCheckoutBranch(c *GitCLI, tb testing.TB, name string) {
tb.Helper() tb.Helper()
out, err := fakeGit(c, "checkout", "-b", name) out, err := fakeGit(c, "checkout", "-b", name)
require.NoError(tb, err) require.NoError(tb, err)
require.Empty(tb, out) require.Empty(tb, out)
} }
func GitAdd(c *Git, tb testing.TB, files ...string) { func GitAdd(c *GitCLI, tb testing.TB, files ...string) {
tb.Helper() tb.Helper()
args := append([]string{"add"}, files...) args := append([]string{"add"}, files...)
_, err := fakeGit(c, args...) _, err := fakeGit(c, args...)
require.NoError(tb, err) require.NoError(tb, err)
} }
func GitSetRemote(c *Git, tb testing.TB, name string, url string) { func GitSetRemote(c *GitCLI, tb testing.TB, name string, url string) {
tb.Helper() tb.Helper()
_, err := fakeGit(c, "remote", "add", name, url) _, err := fakeGit(c, "remote", "add", name, url)
require.NoError(tb, err) require.NoError(tb, err)
@ -64,7 +65,7 @@ func Mktmp(tb testing.TB) string {
return folder return folder
} }
func fakeGit(c *Git, args ...string) (string, error) { func fakeGit(c *GitCLI, args ...string) (string, error) {
allArgs := []string{ allArgs := []string{
"-c", "user.name=buildx", "-c", "user.name=buildx",
"-c", "user.email=buildx@docker.com", "-c", "user.email=buildx@docker.com",
@ -73,7 +74,7 @@ func fakeGit(c *Git, args ...string) (string, error) {
"-c", "log.showSignature=false", "-c", "log.showSignature=false",
} }
allArgs = append(allArgs, args...) allArgs = append(allArgs, args...)
return c.clean(c.run(allArgs...)) return c.clean(c.Run(context.TODO(), allArgs...))
} }
func IsAmbiguousArgument(err error) bool { func IsAmbiguousArgument(err error) bool {

@ -10,7 +10,7 @@ import (
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )
func GitServeHTTP(c *Git, t testing.TB) (url string) { func GitServeHTTP(c *GitCLI, t testing.TB) (url string) {
t.Helper() t.Helper()
gitUpdateServerInfo(c, t) gitUpdateServerInfo(c, t)
ctx, cancel := context.WithCancel(context.TODO()) ctx, cancel := context.WithCancel(context.TODO())
@ -19,7 +19,7 @@ func GitServeHTTP(c *Git, t testing.TB) (url string) {
done := make(chan struct{}) done := make(chan struct{})
name := "test.git" name := "test.git"
dir, err := c.GitDir() dir, err := c.GitDir(context.TODO())
if err != nil { if err != nil {
cancel() cancel()
} }
@ -55,7 +55,7 @@ func GitServeHTTP(c *Git, t testing.TB) (url string) {
return fmt.Sprintf("http://%s/%s", addr, name) return fmt.Sprintf("http://%s/%s", addr, name)
} }
func gitUpdateServerInfo(c *Git, tb testing.TB) { func gitUpdateServerInfo(c *GitCLI, tb testing.TB) {
tb.Helper() tb.Helper()
_, err := fakeGit(c, "update-server-info") _, err := fakeGit(c, "update-server-info")
require.NoError(tb, err) require.NoError(tb, err)

@ -1986,7 +1986,7 @@ func init() {
func init() { proto.RegisterFile("control.proto", fileDescriptor_0c5120591600887d) } func init() { proto.RegisterFile("control.proto", fileDescriptor_0c5120591600887d) }
var fileDescriptor_0c5120591600887d = []byte{ var fileDescriptor_0c5120591600887d = []byte{
// 2261 bytes of a gzipped FileDescriptorProto // 2260 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x59, 0xcd, 0x6e, 0x1b, 0xc9, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x59, 0xcd, 0x6e, 0x1b, 0xc9,
0x11, 0xde, 0x21, 0x25, 0xfe, 0x14, 0x29, 0x59, 0x6a, 0x7b, 0x8d, 0xc9, 0xc4, 0x2b, 0xc9, 0xb3, 0x11, 0xde, 0x21, 0x25, 0xfe, 0x14, 0x29, 0x59, 0x6a, 0x7b, 0x8d, 0xc9, 0xc4, 0x2b, 0xc9, 0xb3,
0x76, 0x22, 0x38, 0xf6, 0x50, 0xcb, 0xac, 0x63, 0xaf, 0x9c, 0x38, 0x16, 0x45, 0x66, 0x2d, 0xc7, 0x76, 0x22, 0x38, 0xf6, 0x50, 0xcb, 0xac, 0x63, 0xaf, 0x9c, 0x38, 0x16, 0x45, 0x66, 0x2d, 0xc7,
@ -1995,140 +1995,140 @@ var fileDescriptor_0c5120591600887d = []byte{
0x13, 0x04, 0xf0, 0x31, 0xe7, 0x3d, 0x38, 0x81, 0x1f, 0x20, 0xc8, 0x31, 0xb9, 0x05, 0xfd, 0x33, 0x13, 0x04, 0xf0, 0x31, 0xe7, 0x3d, 0x38, 0x81, 0x1f, 0x20, 0xc8, 0x31, 0xb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, 0xba, 0x4b, 0x53, 0xc2, 0xbf, 0xca, 0x13,
0x27, 0x98, 0x59, 0x95, 0x9b, 0x1c, 0x93, 0xf6, 0xef, 0x8a, 0x50, 0xdd, 0x17, 0xc7, 0x29, 0x0e, 0xcc, 0xac, 0xca, 0x4d, 0x8e, 0x49, 0xfb, 0x77, 0x45, 0xa8, 0xee, 0x8b, 0xa3, 0x10, 0x87, 0xc3,
0x87, 0x25, 0xc8, 0x63, 0x72, 0xa4, 0xf7, 0x46, 0x0c, 0x91, 0x03, 0xd0, 0x24, 0x47, 0x5e, 0xe0, 0x12, 0xe4, 0x31, 0x39, 0xd2, 0x7b, 0x23, 0x86, 0xc8, 0x01, 0x68, 0x92, 0x23, 0x2f, 0xf0, 0xa4,
0x49, 0xad, 0x72, 0xd2, 0xf0, 0x45, 0x27, 0x3a, 0x74, 0x46, 0xb3, 0x38, 0xc1, 0x81, 0x2c, 0x28, 0x56, 0x39, 0x69, 0xf8, 0xa2, 0x13, 0x1d, 0x3a, 0xa3, 0x59, 0x9c, 0xe0, 0x40, 0x16, 0x94, 0x5a,
0xb5, 0x5e, 0x46, 0x21, 0x15, 0x21, 0x95, 0x97, 0x62, 0x86, 0x34, 0x7a, 0x06, 0x0b, 0xf1, 0x78, 0x2f, 0xa3, 0x90, 0x8a, 0x90, 0xca, 0x4b, 0x31, 0x43, 0x1a, 0x3d, 0x83, 0x85, 0x78, 0xbc, 0xc5,
0x8b, 0x73, 0x2a, 0x02, 0x55, 0x84, 0xd1, 0x27, 0xe9, 0x30, 0x4a, 0x2a, 0xe5, 0x8c, 0x61, 0x5a, 0x39, 0x15, 0x81, 0x2a, 0xc2, 0xe8, 0x93, 0x74, 0x18, 0x25, 0x95, 0x72, 0xc6, 0x30, 0xad, 0x80,
0x01, 0xa7, 0x03, 0x3c, 0x2e, 0x47, 0x58, 0xb8, 0x4f, 0x18, 0x13, 0x1a, 0xca, 0xed, 0xc7, 0x31, 0xd3, 0x01, 0x1e, 0x97, 0x23, 0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, 0x3f, 0xca, 0x88, 0x92, 0x69, 0x19, 0xdc, 0xba, 0x39, 0x1b, 0xb3,
0x66, 0x65, 0x54, 0xa3, 0xfa, 0xea, 0xcd, 0x8a, 0xf1, 0x8f, 0x37, 0x2b, 0xc6, 0xbf, 0xde, 0xac, 0x32, 0xaa, 0x51, 0x7d, 0xf5, 0x66, 0xc5, 0xf8, 0xc7, 0x9b, 0x15, 0xe3, 0x5f, 0x6f, 0x56, 0x8c,
0x18, 0x87, 0x05, 0x59, 0x31, 0xfd, 0xf8, 0xff, 0x01, 0x00, 0x00, 0xff, 0xff, 0x7c, 0xb8, 0xc3, 0xc3, 0x82, 0xac, 0x98, 0x7e, 0xfc, 0xff, 0x00, 0x00, 0x00, 0xff, 0xff, 0x00, 0xf6, 0x99, 0xcf,
0x68, 0x0b, 0x1d, 0x00, 0x00, 0x0b, 0x1d, 0x00, 0x00,
} }
// Reference imports to suppress errors if they are not otherwise used. // Reference imports to suppress errors if they are not otherwise used.

@ -2,13 +2,13 @@ syntax = "proto3";
package moby.buildkit.v1; package moby.buildkit.v1;
import "github.com/gogo/protobuf/gogoproto/gogo.proto";
import "google/protobuf/timestamp.proto";
import "github.com/moby/buildkit/solver/pb/ops.proto";
import "github.com/moby/buildkit/api/types/worker.proto";
// import "github.com/containerd/containerd/api/types/descriptor.proto"; // import "github.com/containerd/containerd/api/types/descriptor.proto";
import "github.com/gogo/googleapis/google/rpc/status.proto"; import "github.com/gogo/googleapis/google/rpc/status.proto";
import "github.com/gogo/protobuf/gogoproto/gogo.proto";
import "github.com/moby/buildkit/api/types/worker.proto";
import "github.com/moby/buildkit/solver/pb/ops.proto";
import "github.com/moby/buildkit/sourcepolicy/pb/policy.proto"; import "github.com/moby/buildkit/sourcepolicy/pb/policy.proto";
import "google/protobuf/timestamp.proto";
option (gogoproto.sizer_all) = true; option (gogoproto.sizer_all) = true;
option (gogoproto.marshaler_all) = true; option (gogoproto.marshaler_all) = true;

@ -14,9 +14,15 @@ type Config struct {
// Entitlements e.g. security.insecure, network.host // Entitlements e.g. security.insecure, network.host
Entitlements []string `toml:"insecure-entitlements"` Entitlements []string `toml:"insecure-entitlements"`
// LogFormat is the format of the logs. It can be "json" or "text".
Log LogConfig `toml:"log"`
// GRPC configuration settings // GRPC configuration settings
GRPC GRPCConfig `toml:"grpc"` GRPC GRPCConfig `toml:"grpc"`
OTEL OTELConfig `toml:"otel"`
Workers struct { Workers struct {
OCI OCIConfig `toml:"oci"` OCI OCIConfig `toml:"oci"`
Containerd ContainerdConfig `toml:"containerd"` Containerd ContainerdConfig `toml:"containerd"`
@ -29,6 +35,10 @@ type Config struct {
History *HistoryConfig `toml:"history"` History *HistoryConfig `toml:"history"`
} }
type LogConfig struct {
Format string `toml:"format"`
}
type GRPCConfig struct { type GRPCConfig struct {
Address []string `toml:"address"` Address []string `toml:"address"`
DebugAddress string `toml:"debugAddress"` DebugAddress string `toml:"debugAddress"`
@ -46,6 +56,10 @@ type TLSConfig struct {
CA string `toml:"ca"` CA string `toml:"ca"`
} }
type OTELConfig struct {
SocketPath string `toml:"socketPath"`
}
type GCConfig struct { type GCConfig struct {
GC *bool `toml:"gc"` GC *bool `toml:"gc"`
GCKeepStorage DiskSpace `toml:"gckeepstorage"` GCKeepStorage DiskSpace `toml:"gckeepstorage"`

@ -2659,7 +2659,7 @@ func init() {
func init() { proto.RegisterFile("gateway.proto", fileDescriptor_f1a937782ebbded5) } func init() { proto.RegisterFile("gateway.proto", fileDescriptor_f1a937782ebbded5) }
var fileDescriptor_f1a937782ebbded5 = []byte{ var fileDescriptor_f1a937782ebbded5 = []byte{
// 2497 bytes of a gzipped FileDescriptorProto // 2496 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x59, 0xcf, 0x6f, 0x1b, 0xc7, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x59, 0xcf, 0x6f, 0x1b, 0xc7,
0xf5, 0xd7, 0x8a, 0x14, 0x45, 0x3e, 0xfe, 0x10, 0x3d, 0x71, 0xf2, 0xa5, 0x17, 0x81, 0x23, 0xaf, 0xf5, 0xd7, 0x8a, 0x14, 0x45, 0x3e, 0xfe, 0x10, 0x3d, 0x71, 0xf2, 0xa5, 0x17, 0x81, 0x23, 0xaf,
0x63, 0x45, 0x96, 0x1d, 0xd2, 0x5f, 0xd9, 0x86, 0x5c, 0xbb, 0x75, 0x62, 0xfd, 0x82, 0x14, 0x4b, 0x63, 0x45, 0x96, 0x1d, 0xd2, 0x5f, 0xd9, 0x86, 0x5c, 0xbb, 0x75, 0x62, 0xfd, 0x82, 0x14, 0x4b,
@ -2669,154 +2669,153 @@ var fileDescriptor_f1a937782ebbded5 = []byte{
0x37, 0x33, 0x4b, 0x0e, 0x7f, 0x68, 0x45, 0xd6, 0x27, 0xce, 0xbc, 0x79, 0x3f, 0xe6, 0xbd, 0x37, 0x37, 0x33, 0x4b, 0x0e, 0x7f, 0x68, 0x45, 0xd6, 0x27, 0xce, 0xbc, 0x79, 0x3f, 0xe6, 0xbd, 0x37,
0xef, 0xcd, 0x67, 0x96, 0x50, 0xee, 0xd8, 0x9c, 0x9d, 0xda, 0x67, 0xf5, 0x30, 0x0a, 0x78, 0x40, 0xef, 0xcd, 0x67, 0x96, 0x50, 0xee, 0xd8, 0x9c, 0x9d, 0xda, 0x67, 0xf5, 0x30, 0x0a, 0x78, 0x40,
0xae, 0x1c, 0x07, 0x87, 0x67, 0xf5, 0xc3, 0xae, 0xeb, 0x39, 0xaf, 0x5c, 0x5e, 0x3f, 0xf9, 0xff, 0xae, 0x1c, 0x07, 0x87, 0x67, 0xf5, 0xc3, 0xae, 0xeb, 0x39, 0xaf, 0x5c, 0x5e, 0x3f, 0xf9, 0xff,
0x7a, 0x3b, 0x0a, 0x7c, 0xce, 0x7c, 0xc7, 0xfc, 0xb8, 0xe3, 0xf2, 0xa3, 0xee, 0x61, 0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3a, 0x06, 0x5f, 0x2f, 0x7d,
0xfa, 0xee, 0xcd, 0x55, 0xe3, 0x1f, 0x6f, 0xae, 0x1a, 0xff, 0x7a, 0x73, 0xd5, 0x38, 0xcc, 0x89, 0xf7, 0xe6, 0xaa, 0xf1, 0x8f, 0x37, 0x57, 0x8d, 0x7f, 0xbd, 0xb9, 0x6a, 0x1c, 0xe6, 0xc4, 0x3f,
0x7f, 0x64, 0xef, 0xfe, 0x37, 0x00, 0x00, 0xff, 0xff, 0x20, 0x47, 0x7d, 0x27, 0x1a, 0x1f, 0x00, 0xb2, 0x77, 0xff, 0x1b, 0x00, 0x00, 0xff, 0xff, 0x83, 0xe1, 0x34, 0x1a, 0x1a, 0x1f, 0x00, 0x00,
0x00,
} }
// Reference imports to suppress errors if they are not otherwise used. // Reference imports to suppress errors if they are not otherwise used.

@ -2,15 +2,13 @@ syntax = "proto3";
package moby.buildkit.v1.frontend; package moby.buildkit.v1.frontend;
import "github.com/gogo/protobuf/gogoproto/gogo.proto";
import "github.com/gogo/googleapis/google/rpc/status.proto"; import "github.com/gogo/googleapis/google/rpc/status.proto";
import "github.com/moby/buildkit/solver/pb/ops.proto"; import "github.com/gogo/protobuf/gogoproto/gogo.proto";
import "github.com/moby/buildkit/api/types/worker.proto"; import "github.com/moby/buildkit/api/types/worker.proto";
import "github.com/moby/buildkit/solver/pb/ops.proto";
import "github.com/moby/buildkit/sourcepolicy/pb/policy.proto";
import "github.com/moby/buildkit/util/apicaps/pb/caps.proto"; import "github.com/moby/buildkit/util/apicaps/pb/caps.proto";
import "github.com/tonistiigi/fsutil/types/stat.proto"; import "github.com/tonistiigi/fsutil/types/stat.proto";
import "github.com/moby/buildkit/sourcepolicy/pb/policy.proto";
option (gogoproto.sizer_all) = true; option (gogoproto.sizer_all) = true;
option (gogoproto.marshaler_all) = true; option (gogoproto.marshaler_all) = true;
@ -70,7 +68,7 @@ message RefMap {
} }
message Attestations { message Attestations {
repeated Attestation attestation = 1; repeated Attestation attestation = 1;
} }
message Attestation { message Attestation {
@ -167,7 +165,7 @@ message SolveResponse {
// deprecated // deprecated
string ref = 1; // can be used by readfile request string ref = 1; // can be used by readfile request
// deprecated // deprecated
/* bytes ExporterAttr = 2;*/ // bytes ExporterAttr = 2;
// these fields are returned when allowMapReturn was set // these fields are returned when allowMapReturn was set
Result result = 3; Result result = 3;

@ -5,10 +5,10 @@ package moby.filesync.v1;
option go_package = "auth"; option go_package = "auth";
service Auth{ service Auth{
rpc Credentials(CredentialsRequest) returns (CredentialsResponse); rpc Credentials(CredentialsRequest) returns (CredentialsResponse);
rpc FetchToken(FetchTokenRequest) returns (FetchTokenResponse); rpc FetchToken(FetchTokenRequest) returns (FetchTokenResponse);
rpc GetTokenAuthority(GetTokenAuthorityRequest) returns (GetTokenAuthorityResponse); rpc GetTokenAuthority(GetTokenAuthorityRequest) returns (GetTokenAuthorityResponse);
rpc VerifyTokenAuthority(VerifyTokenAuthorityRequest) returns (VerifyTokenAuthorityResponse); rpc VerifyTokenAuthority(VerifyTokenAuthorityRequest) returns (VerifyTokenAuthorityResponse);
} }
message CredentialsRequest { message CredentialsRequest {

@ -277,7 +277,7 @@ func (sp *fsSyncTarget) DiffCopy(stream FileSend_DiffCopyServer) (err error) {
} }
defer func() { defer func() {
err1 := wc.Close() err1 := wc.Close()
if err != nil { if err == nil {
err = err1 err = err1
} }
}() }()
@ -351,13 +351,13 @@ func decodeOpts(opts map[string][]string) map[string][]string {
md := make(map[string][]string, len(opts)) md := make(map[string][]string, len(opts))
for k, v := range opts { for k, v := range opts {
out := make([]string, len(v)) out := make([]string, len(v))
var isDecoded bool var isEncoded bool
if v, ok := opts[k+"-encoded"]; ok && len(v) > 0 { if v, ok := opts[k+"-encoded"]; ok && len(v) > 0 {
if b, _ := strconv.ParseBool(v[0]); b { if b, _ := strconv.ParseBool(v[0]); b {
isDecoded = true isEncoded = true
} }
} }
if isDecoded { if isEncoded {
for i, s := range v { for i, s := range v {
out[i], _ = url.QueryUnescape(s) out[i], _ = url.QueryUnescape(s)
} }
@ -373,13 +373,14 @@ func decodeOpts(opts map[string][]string) map[string][]string {
// is backwards compatible and avoids encoding ASCII characters. // is backwards compatible and avoids encoding ASCII characters.
func encodeStringForHeader(inputs []string) ([]string, bool) { func encodeStringForHeader(inputs []string) ([]string, bool) {
var encode bool var encode bool
loop:
for _, input := range inputs { for _, input := range inputs {
for _, runeVal := range input { for _, runeVal := range input {
// Only encode non-ASCII characters, and characters that have special // Only encode non-ASCII characters, and characters that have special
// meaning during decoding. // meaning during decoding.
if runeVal > unicode.MaxASCII { if runeVal > unicode.MaxASCII {
encode = true encode = true
break break loop
} }
} }
} }

@ -7,15 +7,14 @@ option go_package = "filesync";
import "github.com/tonistiigi/fsutil/types/wire.proto"; import "github.com/tonistiigi/fsutil/types/wire.proto";
service FileSync{ service FileSync{
rpc DiffCopy(stream fsutil.types.Packet) returns (stream fsutil.types.Packet); rpc DiffCopy(stream fsutil.types.Packet) returns (stream fsutil.types.Packet);
rpc TarStream(stream fsutil.types.Packet) returns (stream fsutil.types.Packet); rpc TarStream(stream fsutil.types.Packet) returns (stream fsutil.types.Packet);
} }
service FileSend{ service FileSend{
rpc DiffCopy(stream BytesMessage) returns (stream BytesMessage); rpc DiffCopy(stream BytesMessage) returns (stream BytesMessage);
} }
// BytesMessage contains a chunk of byte data // BytesMessage contains a chunk of byte data
message BytesMessage{ message BytesMessage{
bytes data = 1; bytes data = 1;

@ -5,7 +5,7 @@ package moby.buildkit.secrets.v1;
option go_package = "secrets"; option go_package = "secrets";
service Secrets{ service Secrets{
rpc GetSecret(GetSecretRequest) returns (GetSecretResponse); rpc GetSecret(GetSecretRequest) returns (GetSecretResponse);
} }

@ -393,14 +393,14 @@ message MergeOp {
} }
message LowerDiffInput { message LowerDiffInput {
int64 input = 1 [(gogoproto.customtype) = "InputIndex", (gogoproto.nullable) = false]; int64 input = 1 [(gogoproto.customtype) = "InputIndex", (gogoproto.nullable) = false];
} }
message UpperDiffInput { message UpperDiffInput {
int64 input = 1 [(gogoproto.customtype) = "InputIndex", (gogoproto.nullable) = false]; int64 input = 1 [(gogoproto.customtype) = "InputIndex", (gogoproto.nullable) = false];
} }
message DiffOp { message DiffOp {
LowerDiffInput lower = 1; LowerDiffInput lower = 1;
UpperDiffInput upper = 2; UpperDiffInput upper = 2;
} }

@ -63,14 +63,13 @@ func GetLogger(ctx context.Context) (l *logrus.Entry) {
return l return l
} }
// LazyStackTrace lets you include a stack trace as a field's value in a log but only // TraceLevelOnlyStack returns a stack trace for the current goroutine only if
// call it when the log level is actually enabled. // trace level logs are enabled; otherwise it returns an empty string. This ensure
type LazyStackTrace struct{} // we only pay the cost of generating a stack trace when the log entry will actually
// be emitted.
func (LazyStackTrace) String() string { func TraceLevelOnlyStack() string {
return string(debug.Stack()) if logrus.GetLevel() == logrus.TraceLevel {
} return string(debug.Stack())
}
func (LazyStackTrace) MarshalText() ([]byte, error) { return ""
return debug.Stack(), nil
} }

@ -0,0 +1,245 @@
package gitutil
import (
"bytes"
"context"
"io"
"os"
"os/exec"
"strings"
"github.com/pkg/errors"
)
// GitCLI carries config to pass to the git cli to make running multiple
// commands less repetitive.
type GitCLI struct {
git string
exec func(context.Context, *exec.Cmd) error
args []string
dir string
streams StreamFunc
workTree string
gitDir string
sshAuthSock string
sshKnownHosts string
}
// Option provides a variadic option for configuring the git client.
type Option func(b *GitCLI)
// WithGitBinary sets the git binary path.
func WithGitBinary(path string) Option {
return func(b *GitCLI) {
b.git = path
}
}
// WithExec sets the command exec function.
func WithExec(exec func(context.Context, *exec.Cmd) error) Option {
return func(b *GitCLI) {
b.exec = exec
}
}
// WithArgs sets extra args.
func WithArgs(args ...string) Option {
return func(b *GitCLI) {
b.args = append(b.args, args...)
}
}
// WithDir sets working directory.
//
// This should be a path to any directory within a standard git repository.
func WithDir(dir string) Option {
return func(b *GitCLI) {
b.dir = dir
}
}
// WithWorkTree sets the --work-tree arg.
//
// This should be the path to the top-level directory of the checkout. When
// setting this, you also likely need to set WithGitDir.
func WithWorkTree(workTree string) Option {
return func(b *GitCLI) {
b.workTree = workTree
}
}
// WithGitDir sets the --git-dir arg.
//
// This should be the path to the .git directory. When setting this, you may
// also need to set WithWorkTree, unless you are working with a bare
// repository.
func WithGitDir(gitDir string) Option {
return func(b *GitCLI) {
b.gitDir = gitDir
}
}
// WithSSHAuthSock sets the ssh auth sock.
func WithSSHAuthSock(sshAuthSock string) Option {
return func(b *GitCLI) {
b.sshAuthSock = sshAuthSock
}
}
// WithSSHKnownHosts sets the known hosts file.
func WithSSHKnownHosts(sshKnownHosts string) Option {
return func(b *GitCLI) {
b.sshKnownHosts = sshKnownHosts
}
}
type StreamFunc func(context.Context) (io.WriteCloser, io.WriteCloser, func())
// WithStreams configures a callback for getting the streams for a command. The
// stream callback will be called once for each command, and both writers will
// be closed after the command has finished.
func WithStreams(streams StreamFunc) Option {
return func(b *GitCLI) {
b.streams = streams
}
}
// New initializes a new git client
func NewGitCLI(opts ...Option) (*GitCLI, error) {
c := &GitCLI{}
for _, opt := range opts {
opt(c)
}
if c.git == "" {
var err error
c.git, err = exec.LookPath("git")
if err != nil {
return nil, errors.WithStack(err)
}
}
return c, nil
}
// New returns a new git client with the same config as the current one, but
// with the given options applied on top.
func (cli *GitCLI) New(opts ...Option) *GitCLI {
c := &GitCLI{
git: cli.git,
dir: cli.dir,
workTree: cli.workTree,
gitDir: cli.gitDir,
args: append([]string{}, cli.args...),
streams: cli.streams,
sshAuthSock: cli.sshAuthSock,
sshKnownHosts: cli.sshKnownHosts,
}
for _, opt := range opts {
opt(c)
}
return c
}
// Run executes a git command with the given args.
func (cli *GitCLI) Run(ctx context.Context, args ...string) (_ []byte, err error) {
for {
var cmd *exec.Cmd
if cli.exec == nil {
cmd = exec.CommandContext(ctx, cli.git) //nolint:gosec
} else {
cmd = exec.Command(cli.git) //nolint:gosec
}
cmd.Dir = cli.dir
if cmd.Dir == "" {
cmd.Dir = cli.workTree
}
// Block sneaky repositories from using repos from the filesystem as submodules.
cmd.Args = append(cmd.Args, "-c", "protocol.file.allow=user")
if cli.workTree != "" {
cmd.Args = append(cmd.Args, "--work-tree", cli.workTree)
}
if cli.gitDir != "" {
cmd.Args = append(cmd.Args, "--git-dir", cli.gitDir)
}
cmd.Args = append(cmd.Args, cli.args...)
cmd.Args = append(cmd.Args, args...)
buf := bytes.NewBuffer(nil)
errbuf := bytes.NewBuffer(nil)
cmd.Stdin = nil
cmd.Stdout = buf
cmd.Stderr = errbuf
if cli.streams != nil {
stdout, stderr, flush := cli.streams(ctx)
if stdout != nil {
cmd.Stdout = io.MultiWriter(stdout, cmd.Stdout)
}
if stderr != nil {
cmd.Stderr = io.MultiWriter(stderr, cmd.Stderr)
}
defer stdout.Close()
defer stderr.Close()
defer func() {
if err != nil {
flush()
}
}()
}
cmd.Env = []string{
"PATH=" + os.Getenv("PATH"),
"GIT_TERMINAL_PROMPT=0",
"GIT_SSH_COMMAND=" + getGitSSHCommand(cli.sshKnownHosts),
// "GIT_TRACE=1",
"GIT_CONFIG_NOSYSTEM=1", // Disable reading from system gitconfig.
"HOME=/dev/null", // Disable reading from user gitconfig.
"LC_ALL=C", // Ensure consistent output.
}
if cli.sshAuthSock != "" {
cmd.Env = append(cmd.Env, "SSH_AUTH_SOCK="+cli.sshAuthSock)
}
if cli.exec != nil {
// remote git commands spawn helper processes that inherit FDs and don't
// handle parent death signal so exec.CommandContext can't be used
err = cli.exec(ctx, cmd)
} else {
err = cmd.Run()
}
if err != nil {
if strings.Contains(errbuf.String(), "--depth") || strings.Contains(errbuf.String(), "shallow") {
if newArgs := argsNoDepth(args); len(args) > len(newArgs) {
args = newArgs
continue
}
}
return buf.Bytes(), errors.Errorf("git error: %s\nstderr:\n%s", err, errbuf.String())
}
return buf.Bytes(), nil
}
}
func getGitSSHCommand(knownHosts string) string {
gitSSHCommand := "ssh -F /dev/null"
if knownHosts != "" {
gitSSHCommand += " -o UserKnownHostsFile=" + knownHosts
} else {
gitSSHCommand += " -o StrictHostKeyChecking=no"
}
return gitSSHCommand
}
func argsNoDepth(args []string) []string {
out := make([]string, 0, len(args))
for _, a := range args {
if a != "--depth=1" {
out = append(out, a)
}
}
return out
}

@ -0,0 +1,44 @@
package gitutil
import (
"context"
"path/filepath"
"strings"
"github.com/pkg/errors"
)
func (cli *GitCLI) Dir() string {
if cli.dir != "" {
return cli.dir
}
return cli.workTree
}
func (cli *GitCLI) WorkTree(ctx context.Context) (string, error) {
if cli.workTree != "" {
return cli.workTree, nil
}
return cli.clean(cli.Run(ctx, "rev-parse", "--show-toplevel"))
}
func (cli *GitCLI) GitDir(ctx context.Context) (string, error) {
if cli.gitDir != "" {
return cli.gitDir, nil
}
dir, err := cli.WorkTree(ctx)
if err != nil {
return "", err
}
return filepath.Join(dir, ".git"), nil
}
func (cli *GitCLI) clean(dt []byte, err error) (string, error) {
out := string(dt)
out = strings.ReplaceAll(strings.Split(out, "\n")[0], "'", "")
if err != nil {
err = errors.New(strings.TrimSuffix(err.Error(), "\n"))
}
return out, err
}

@ -65,7 +65,7 @@ func (ps *MultiWriter) Write(id string, v interface{}) error {
Sys: v, Sys: v,
meta: ps.meta, meta: ps.meta,
} }
return ps.WriteRawProgress(p) return ps.writeRawProgress(p)
} }
func (ps *MultiWriter) WriteRawProgress(p *Progress) error { func (ps *MultiWriter) WriteRawProgress(p *Progress) error {

@ -3,15 +3,15 @@ syntax = "proto3";
package stack; package stack;
message Stack { message Stack {
repeated Frame frames = 1; repeated Frame frames = 1;
repeated string cmdline = 2; repeated string cmdline = 2;
int32 pid = 3; int32 pid = 3;
string version = 4; string version = 4;
string revision = 5; string revision = 5;
} }
message Frame { message Frame {
string Name = 1; string Name = 1;
string File = 2; string File = 2;
int32 Line = 3; int32 Line = 3;
} }

@ -13,6 +13,7 @@ import (
"github.com/google/shlex" "github.com/google/shlex"
"github.com/moby/buildkit/util/bklog" "github.com/moby/buildkit/util/bklog"
"github.com/pkg/errors"
) )
const buildkitdConfigFile = "buildkitd.toml" const buildkitdConfigFile = "buildkitd.toml"
@ -126,7 +127,7 @@ func newSandbox(ctx context.Context, w Worker, mirror string, mv matrixValue) (s
} }
func RootlessSupported(uid int) bool { func RootlessSupported(uid int) bool {
cmd := exec.Command("sudo", "-E", "-u", fmt.Sprintf("#%d", uid), "-i", "--", "exec", "unshare", "-U", "true") //nolint:gosec // test utility cmd := exec.Command("sudo", "-u", fmt.Sprintf("#%d", uid), "-i", "--", "exec", "unshare", "-U", "true") //nolint:gosec // test utility
b, err := cmd.CombinedOutput() b, err := cmd.CombinedOutput()
if err != nil { if err != nil {
bklog.L.Warnf("rootless mode is not supported on this host: %v (%s)", err, string(b)) bklog.L.Warnf("rootless mode is not supported on this host: %v (%s)", err, string(b))
@ -156,6 +157,13 @@ func FormatLogs(m map[string]*bytes.Buffer) string {
} }
func CheckFeatureCompat(t *testing.T, sb Sandbox, features map[string]struct{}, reason ...string) { func CheckFeatureCompat(t *testing.T, sb Sandbox, features map[string]struct{}, reason ...string) {
t.Helper()
if err := HasFeatureCompat(t, sb, features, reason...); err != nil {
t.Skipf(err.Error())
}
}
func HasFeatureCompat(t *testing.T, sb Sandbox, features map[string]struct{}, reason ...string) error {
t.Helper() t.Helper()
if len(reason) == 0 { if len(reason) == 0 {
t.Fatal("no reason provided") t.Fatal("no reason provided")
@ -172,6 +180,7 @@ func CheckFeatureCompat(t *testing.T, sb Sandbox, features map[string]struct{},
} }
} }
if len(ereasons) > 0 { if len(ereasons) > 0 {
t.Skipf("%s worker can not currently run this test due to missing features (%s)", sb.Name(), strings.Join(ereasons, ", ")) return errors.Errorf("%s worker can not currently run this test due to missing features (%s)", sb.Name(), strings.Join(ereasons, ", "))
} }
return nil
} }

@ -168,7 +168,7 @@ disabled_plugins = ["cri"]
containerdArgs := []string{c.Containerd, "--config", configFile} containerdArgs := []string{c.Containerd, "--config", configFile}
rootlessKitState := filepath.Join(tmpdir, "rootlesskit-containerd") rootlessKitState := filepath.Join(tmpdir, "rootlesskit-containerd")
if rootless { if rootless {
containerdArgs = append(append([]string{"sudo", "-E", "-u", fmt.Sprintf("#%d", c.UID), "-i", containerdArgs = append(append([]string{"sudo", "-u", fmt.Sprintf("#%d", c.UID), "-i",
fmt.Sprintf("CONTAINERD_ROOTLESS_ROOTLESSKIT_STATE_DIR=%s", rootlessKitState), fmt.Sprintf("CONTAINERD_ROOTLESS_ROOTLESSKIT_STATE_DIR=%s", rootlessKitState),
// Integration test requires the access to localhost of the host network namespace. // Integration test requires the access to localhost of the host network namespace.
// TODO: remove these configurations // TODO: remove these configurations
@ -211,7 +211,7 @@ disabled_plugins = ["cri"]
if err != nil { if err != nil {
return nil, nil, err return nil, nil, err
} }
buildkitdArgs = append([]string{"sudo", "-E", "-u", fmt.Sprintf("#%d", c.UID), "-i", "--", "exec", buildkitdArgs = append([]string{"sudo", "-u", fmt.Sprintf("#%d", c.UID), "-i", "--", "exec",
"nsenter", "-U", "--preserve-credentials", "-m", "-t", fmt.Sprintf("%d", pid)}, "nsenter", "-U", "--preserve-credentials", "-m", "-t", fmt.Sprintf("%d", pid)},
append(buildkitdArgs, "--containerd-worker-snapshotter=native")...) append(buildkitdArgs, "--containerd-worker-snapshotter=native")...)
} }

@ -61,3 +61,7 @@ var features = map[string]struct{}{
func CheckFeatureCompat(t *testing.T, sb integration.Sandbox, reason ...string) { func CheckFeatureCompat(t *testing.T, sb integration.Sandbox, reason ...string) {
integration.CheckFeatureCompat(t, sb, features, reason...) integration.CheckFeatureCompat(t, sb, features, reason...)
} }
func HasFeatureCompat(t *testing.T, sb integration.Sandbox, reason ...string) error {
return integration.HasFeatureCompat(t, sb, features, reason...)
}

@ -66,7 +66,7 @@ func (s *OCI) New(ctx context.Context, cfg *integration.BackendConfig) (integrat
return nil, nil, errors.Errorf("unsupported id pair: uid=%d, gid=%d", s.UID, s.GID) return nil, nil, errors.Errorf("unsupported id pair: uid=%d, gid=%d", s.UID, s.GID)
} }
// TODO: make sure the user exists and subuid/subgid are configured. // TODO: make sure the user exists and subuid/subgid are configured.
buildkitdArgs = append([]string{"sudo", "-E", "-u", fmt.Sprintf("#%d", s.UID), "-i", "--", "exec", "rootlesskit"}, buildkitdArgs...) buildkitdArgs = append([]string{"sudo", "-u", fmt.Sprintf("#%d", s.UID), "-i", "--", "exec", "rootlesskit"}, buildkitdArgs...)
} }
var extraEnv []string var extraEnv []string

@ -54,9 +54,9 @@ func runBuildkitd(ctx context.Context, conf *integration.BackendConfig, args []s
address = getBuildkitdAddr(tmpdir) address = getBuildkitdAddr(tmpdir)
args = append(args, "--root", tmpdir, "--addr", address, "--debug") args = append(args, "--root", tmpdir, "--addr", address, "--otel-socket-path", getTraceSocketPath(tmpdir), "--debug")
cmd := exec.Command(args[0], args[1:]...) //nolint:gosec // test utility cmd := exec.Command(args[0], args[1:]...) //nolint:gosec // test utility
cmd.Env = append(os.Environ(), "BUILDKIT_DEBUG_EXEC_OUTPUT=1", "BUILDKIT_DEBUG_PANIC_ON_ERROR=1", "BUILDKIT_TRACE_SOCKET="+getTraceSocketPath(tmpdir), "TMPDIR="+filepath.Join(tmpdir, "tmp")) cmd.Env = append(os.Environ(), "BUILDKIT_DEBUG_EXEC_OUTPUT=1", "BUILDKIT_DEBUG_PANIC_ON_ERROR=1", "TMPDIR="+filepath.Join(tmpdir, "tmp"))
cmd.Env = append(cmd.Env, extraEnv...) cmd.Env = append(cmd.Env, extraEnv...)
cmd.SysProcAttr = getSysProcAttr() cmd.SysProcAttr = getSysProcAttr()

@ -201,7 +201,7 @@ func ParseGroupFilter(r io.Reader, filter func(Group) bool) ([]Group, error) {
if err != nil { if err != nil {
// We should return no error if EOF is reached // We should return no error if EOF is reached
// without a match. // without a match.
if err == io.EOF { //nolint:errorlint // comparison with io.EOF is legit, https://github.com/polyfloyd/go-errorlint/pull/12 if err == io.EOF {
err = nil err = nil
} }
return out, err return out, err

@ -501,7 +501,7 @@ github.com/mitchellh/go-wordwrap
# github.com/mitchellh/mapstructure v1.5.0 # github.com/mitchellh/mapstructure v1.5.0
## explicit; go 1.14 ## explicit; go 1.14
github.com/mitchellh/mapstructure github.com/mitchellh/mapstructure
# github.com/moby/buildkit v0.12.1-0.20230804094609-b49a8873179b # github.com/moby/buildkit v0.12.1-0.20230804094609-b49a8873179b => github.com/jedevc/buildkit v0.8.2-0.20230816145044-96097aa7c4f0
## explicit; go 1.20 ## explicit; go 1.20
github.com/moby/buildkit/api/services/control github.com/moby/buildkit/api/services/control
github.com/moby/buildkit/api/types github.com/moby/buildkit/api/types
@ -619,7 +619,7 @@ github.com/opencontainers/go-digest
## explicit; go 1.18 ## explicit; go 1.18
github.com/opencontainers/image-spec/specs-go github.com/opencontainers/image-spec/specs-go
github.com/opencontainers/image-spec/specs-go/v1 github.com/opencontainers/image-spec/specs-go/v1
# github.com/opencontainers/runc v1.1.7 # github.com/opencontainers/runc v1.1.9
## explicit; go 1.17 ## explicit; go 1.17
github.com/opencontainers/runc/libcontainer/user github.com/opencontainers/runc/libcontainer/user
# github.com/pelletier/go-toml v1.9.5 # github.com/pelletier/go-toml v1.9.5
@ -1265,3 +1265,4 @@ sigs.k8s.io/structured-merge-diff/v4/value
# sigs.k8s.io/yaml v1.3.0 # sigs.k8s.io/yaml v1.3.0
## explicit; go 1.12 ## explicit; go 1.12
sigs.k8s.io/yaml sigs.k8s.io/yaml
# github.com/moby/buildkit => github.com/jedevc/buildkit v0.8.2-0.20230816145044-96097aa7c4f0

Loading…
Cancel
Save