diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 489eef5f6bae..f60b45f1f5cb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,7 +23,8 @@ env: CACHE_GHA_SCOPE_IT: "integration-tests" CACHE_GHA_SCOPE_BINARIES: "binaries" CACHE_GHA_SCOPE_CROSS: "cross" - BUILDX_VERSION: "v0.8.2" # leave empty to use the one available on GitHub virtual environment + TESTFLAGS: "-v --parallel=6 --timeout=30m" + BUILDX_VERSION: "v0.9.1" # leave empty to use the one available on GitHub virtual environment jobs: base: @@ -108,7 +109,6 @@ jobs: - name: Test pkg=${{ matrix.pkg }} ; typ=${{ matrix.typ }} ; skipit=${{ matrix.skip-integration-tests }} ; worker=${{ matrix.worker }} run: | - export TESTFLAGS="-v --parallel=6 --timeout=20m" if [ -n "${{ matrix.worker }}" ]; then export TESTFLAGS="${TESTFLAGS} --run=//worker=${{ matrix.worker }}$" fi @@ -163,7 +163,7 @@ jobs: SKIP_INTEGRATION_TESTS: 1 run: | mkdir -p ./coverage - go test -coverprofile=./coverage/coverage-${{ github.job }}-${{ matrix.os }}.txt -covermode=atomic ./... + go test -coverprofile=./coverage/coverage-${{ github.job }}-${{ matrix.os }}.txt -covermode=atomic ${TESTFLAGS} ./... shell: bash - name: Upload coverage file diff --git a/.github/workflows/buildx-image.yml b/.github/workflows/buildx-image.yml index 90de77f00a2f..31b04f0c3d30 100644 --- a/.github/workflows/buildx-image.yml +++ b/.github/workflows/buildx-image.yml @@ -27,7 +27,7 @@ on: env: REPO_SLUG_TARGET: "moby/buildkit" - BUILDX_VERSION: "v0.8.2" # leave empty to use the one available on GitHub virtual environment + BUILDX_VERSION: "v0.9.1" # leave empty to use the one available on GitHub virtual environment jobs: create: diff --git a/.github/workflows/dockerd.yml b/.github/workflows/dockerd.yml index 04ece8563be4..a4e13c108614 100644 --- a/.github/workflows/dockerd.yml +++ b/.github/workflows/dockerd.yml @@ -13,6 +13,8 @@ env: REPO_SLUG_ORIGIN: "moby/buildkit:latest" CACHE_GHA_SCOPE_IT: "integration-tests" CACHE_GHA_SCOPE_BINARIES: "binaries" + TESTFLAGS: "-v --parallel=1 --timeout=30m" + BUILDX_VERSION: "v0.9.1" # leave empty to use the one available on GitHub virtual environment jobs: prepare: @@ -43,6 +45,7 @@ jobs: name: Set up Docker Buildx uses: docker/setup-buildx-action@v1 with: + version: ${{ env.BUILDX_VERSION }} driver-opts: image=${{ env.REPO_SLUG_ORIGIN }} buildkitd-flags: --debug - @@ -54,12 +57,12 @@ jobs: target: binary outputs: /tmp/moby - - # FIXME: remove symlink and rename bin. should be fixed upstream on moby. name: Rename binary if: steps.build.outputs.result == 'true' run: | - rm /tmp/moby/binary-daemon/dockerd - mv /tmp/moby/binary-daemon/dockerd-dev /tmp/moby/binary-daemon/dockerd + if [ -L "/tmp/moby/binary-daemon/dockerd" ]; then + mv -f $(readlink /tmp/moby/binary-daemon/dockerd) /tmp/moby/binary-daemon/dockerd + fi - name: Download if: steps.build.outputs.result != 'true' @@ -107,6 +110,7 @@ jobs: name: Set up Docker Buildx uses: docker/setup-buildx-action@v1 with: + version: ${{ env.BUILDX_VERSION }} driver-opts: image=${{ env.REPO_SLUG_ORIGIN }} buildkitd-flags: --debug - @@ -134,6 +138,6 @@ jobs: TEST_DOCKERD: "1" TEST_DOCKERD_BINARY: "./build/dockerd" TESTPKGS: "${{ matrix.pkg }}" - TESTFLAGS: "-v --parallel=1 --timeout=30m --run=//worker=dockerd$" + TESTFLAGS: "${{ env.TESTFLAGS }} --run=//worker=dockerd$" SKIP_INTEGRATION_TESTS: "${{ matrix.skip-integration-tests }}" CACHE_FROM: "type=gha,scope=${{ env.CACHE_GHA_SCOPE_IT }} type=gha,scope=${{ env.CACHE_GHA_SCOPE_BINARIES }}" diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 494723989c04..f461756944c3 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -15,7 +15,7 @@ on: env: REPO_SLUG_ORIGIN: "moby/buildkit:latest" - BUILDX_VERSION: "v0.8.2" # leave empty to use the one available on GitHub virtual environment + BUILDX_VERSION: "v0.9.1" # leave empty to use the one available on GitHub virtual environment jobs: validate: diff --git a/frontend/dockerfile/dockerfile_test.go b/frontend/dockerfile/dockerfile_test.go index 0f2864089ec3..ad3fe9a7d289 100644 --- a/frontend/dockerfile/dockerfile_test.go +++ b/frontend/dockerfile/dockerfile_test.go @@ -5437,6 +5437,7 @@ COPY --from=base /env_foobar / } func testNamedImageContextPlatform(t *testing.T, sb integration.Sandbox) { + integration.SkipIfDockerd(t, sb, "direct push") ctx := sb.Context() c, err := client.New(ctx, sb.Address()) @@ -5508,6 +5509,7 @@ RUN echo hello } func testNamedImageContextTimestamps(t *testing.T, sb integration.Sandbox) { + integration.SkipIfDockerd(t, sb, "direct push") ctx := sb.Context() c, err := client.New(ctx, sb.Address())