Skip to content

Commit

Permalink
Merge pull request #3205 from thaJeztah/0.10_test_skips
Browse files Browse the repository at this point in the history
[0.10 backport] integration: skip for dockerd
  • Loading branch information
thaJeztah committed Oct 20, 2022
2 parents bc26045 + b34da50 commit e27c8e2
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/buildx-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/dockerd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
-
Expand All @@ -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'
Expand Down Expand Up @@ -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
-
Expand Down Expand Up @@ -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 }}"
2 changes: 1 addition & 1 deletion .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 2 additions & 0 deletions frontend/dockerfile/dockerfile_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down Expand Up @@ -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())
Expand Down

0 comments on commit e27c8e2

Please sign in to comment.