Skip to content

Commit 70bf6cb

Browse files
authored
Merge pull request #5863 from Benehiko/only-experimental-workflow
workflow/e2e: only run experimental daemon
2 parents e9cf371 + c26090b commit 70bf6cb

File tree

5 files changed

+7
-20
lines changed

5 files changed

+7
-20
lines changed

.github/workflows/e2e.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,13 @@ on:
2525
pull_request:
2626

2727
jobs:
28-
e2e:
28+
tests:
2929
runs-on: ubuntu-24.04
3030
strategy:
3131
fail-fast: false
3232
matrix:
3333
target:
34-
- non-experimental
35-
- experimental
34+
- local
3635
- connhelper-ssh
3736
base:
3837
- alpine

docker.Makefile

+4-11
Original file line numberDiff line numberDiff line change
@@ -128,25 +128,18 @@ build-e2e-image:
128128
IMAGE_NAME=$(E2E_IMAGE_NAME) VERSION=$(VERSION) docker buildx bake e2e-image
129129

130130
.PHONY: test-e2e
131-
test-e2e: test-e2e-non-experimental test-e2e-experimental test-e2e-connhelper-ssh ## run all e2e tests
131+
test-e2e: test-e2e-local test-e2e-connhelper-ssh ## run all e2e tests
132132

133-
.PHONY: test-e2e-experimental
134-
test-e2e-experimental: build-e2e-image # run experimental e2e tests
135-
docker run --rm $(ENVVARS) -e DOCKERD_EXPERIMENTAL=1 \
136-
--mount type=bind,src=$(CURDIR)/build/coverage,dst=/tmp/coverage \
137-
--mount type=bind,src=/var/run/docker.sock,dst=/var/run/docker.sock \
138-
$(E2E_IMAGE_NAME)
139-
140-
.PHONY: test-e2e-non-experimental
141-
test-e2e-non-experimental: build-e2e-image # run non-experimental e2e tests
133+
.PHONY: test-e2e-local
134+
test-e2e-local: build-e2e-image # run experimental e2e tests
142135
docker run --rm $(ENVVARS) \
143136
--mount type=bind,src=$(CURDIR)/build/coverage,dst=/tmp/coverage \
144137
--mount type=bind,src=/var/run/docker.sock,dst=/var/run/docker.sock \
145138
$(E2E_IMAGE_NAME)
146139

147140
.PHONY: test-e2e-connhelper-ssh
148141
test-e2e-connhelper-ssh: build-e2e-image # run experimental SSH-connection helper e2e tests
149-
docker run --rm $(ENVVARS) -e DOCKERD_EXPERIMENTAL=1 -e TEST_CONNHELPER=ssh \
142+
docker run --rm $(ENVVARS) -e TEST_CONNHELPER=ssh \
150143
--mount type=bind,src=$(CURDIR)/build/coverage,dst=/tmp/coverage \
151144
--mount type=bind,src=/var/run/docker.sock,dst=/var/run/docker.sock \
152145
$(E2E_IMAGE_NAME)

e2e/compose-env.experimental.yaml

-3
This file was deleted.

e2e/compose-env.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ services:
66
engine:
77
image: 'docker:${ENGINE_VERSION:-28}-dind'
88
privileged: true
9-
command: ['--insecure-registry=registry:5000']
9+
command: ['--insecure-registry=registry:5000', '--experimental']
1010
environment:
1111
- DOCKER_TLS_CERTDIR=
1212

scripts/test/e2e/run

-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ setup() {
1919
local project=$1
2020
local file=$2
2121

22-
test "${DOCKERD_EXPERIMENTAL:-0}" -eq "1" && file="${file}:./e2e/compose-env.experimental.yaml"
23-
2422
if [ "${TEST_CONNHELPER:-}" = "ssh" ];then
2523
test ! -f "${HOME}/.ssh/id_rsa" && ssh-keygen -t rsa -C docker-e2e-dummy -N "" -f "${HOME}/.ssh/id_rsa" -q
2624
grep "^StrictHostKeyChecking no" "${HOME}/.ssh/config" > /dev/null 2>&1 || echo "StrictHostKeyChecking no" > "${HOME}/.ssh/config"

0 commit comments

Comments
 (0)