Merge pull request #45112 from tonistiigi/23.0-disable-mergeop-diffop
[23.0 backport] builder-next: temporarily disable mergeop and diffop
This commit is contained in:
commit
07f9061dde
2 changed files with 17 additions and 1 deletions
3
.github/workflows/buildkit.yml
vendored
3
.github/workflows/buildkit.yml
vendored
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue