diff --git a/.github/workflows/buildkit.yml b/.github/workflows/buildkit.yml index 1d0b7167af..98ed7fda30 100644 --- a/.github/workflows/buildkit.yml +++ b/.github/workflows/buildkit.yml @@ -106,5 +106,6 @@ jobs: TEST_DOCKERD: "1" TEST_DOCKERD_BINARY: "./build/moby/dockerd" TESTPKGS: "./${{ matrix.pkg }}" - TESTFLAGS: "-v --parallel=1 --timeout=30m --run=//worker=dockerd$" + # Diff/MergeOp tests are skipped + TESTFLAGS: "-v --parallel=1 --timeout=30m --run=/^Test([^DM]|.[^ie]|..[^fr]|...[^fg])/worker=dockerd$" working-directory: buildkit diff --git a/builder/builder-next/controller.go b/builder/builder-next/controller.go index f546c8f98f..8f01d3228c 100644 --- a/builder/builder-next/controller.go +++ b/builder/builder-next/controller.go @@ -39,6 +39,9 @@ import ( "github.com/moby/buildkit/worker" "github.com/pkg/errors" bolt "go.etcd.io/bbolt" + + "github.com/moby/buildkit/solver/pb" + "github.com/moby/buildkit/util/apicaps" ) func newController(rt http.RoundTripper, opt Opt) (*control.Controller, error) { @@ -49,6 +52,18 @@ func newController(rt http.RoundTripper, opt Opt) (*control.Controller, error) { dist := opt.Dist root := opt.Root + pb.Caps.Init(apicaps.Cap{ + ID: pb.CapMergeOp, + Enabled: false, + DisabledReasonMsg: "only enabled with containerd image store backend", + }) + + pb.Caps.Init(apicaps.Cap{ + ID: pb.CapDiffOp, + Enabled: false, + DisabledReasonMsg: "only enabled with containerd image store backend", + }) + var driver graphdriver.Driver if ls, ok := dist.LayerStore.(interface { Driver() graphdriver.Driver