@@ -3,10 +3,6 @@ name: run-tests
33on :
44 pull_request
55
6- # remove CI_RUNNER_CREATOR_KEY
7- # remove GH_PERSONAL_ACCESS_TOKEN ?
8- # remove CI_RUNNER_DEBUG_SSH_PUBLIC_KEY
9- #
106jobs :
117 lint :
128 concurrency :
@@ -99,30 +95,18 @@ jobs:
9995 outputs :
10096 result : ${{ steps.run-e2e-tests.outputs.result }}
10197 steps :
102- # - name: disk-space
103- # run: |
104- # echo "Free space:"
105- # df -h
10698 - name : Maximize build space
10799 uses :
AdityaGarg8/[email protected] 108100 with :
109101 remove-android : ' true'
110102 remove-haskell : ' true'
111103 remove-codeql : ' true'
112- # - name: disk-space
113- # run: |
114- # echo "Free space:"
115- # df -h
116104 - name : checkout
117105 uses : actions/checkout@v3
118106 - name : setup-go
119107 uses : actions/setup-go@v3
120108 with :
121109 go-version : ' 1.20'
122- # - name: disk-space-setup-go
123- # run: |
124- # echo "Free space:"
125- # df -h
126110 - name : install-dependencies
127111 run : |
128112 sudo apt-get update
@@ -143,10 +127,6 @@ jobs:
143127 echo "$(pwd)" >> $GITHUB_PATH
144128 echo "$HOME/ydb/bin" >> $GITHUB_PATH
145129 echo "$HOME/go/bin" >> $GITHUB_PATH
146- # - name: disk-space-installing-deps
147- # run: |
148- # echo "Free space:"
149- # df -h
150130 - name : check-dependencies
151131 run : |
152132 gcc --version
@@ -160,6 +140,7 @@ jobs:
160140 kind create cluster \
161141 --image=kindest/node:v1.25.3@sha256:cd248d1438192f7814fbca8fede13cfe5b9918746dfa12583976158a834fd5c5 \
162142 --config=./e2e/kind-cluster-config.yaml
143+
163144 kubectl wait --timeout=5m --for=condition=ready node -l worker=true
164145
165146 kubectl label --overwrite node kind-worker topology.kubernetes.io/zone=fakeZone1
@@ -176,10 +157,6 @@ jobs:
176157 - name : load-and-deploy-operator
177158 run : |
178159 kind load docker-image kind/ydb-operator:current --nodes kind-worker,kind-worker2,kind-worker3
179- # - name: disk-space-loading-operator
180- # run: |
181- # echo "Free space:"
182- # df -h
183160 - name : pull-and-load-kube-webhook-certgen-image
184161 uses : nick-fields/retry@v3
185162 with :
@@ -195,13 +172,9 @@ jobs:
195172 sudo sysctl fs.inotify.max_user_instances=512
196173 - name : pull-and-load-ydb-image
197174 run : |
198- # TODO would be cool to parse YDB image from manifests to avoid duplicating information
199- docker pull cr.yandex/crptqonuodf51kdj7a7d/ydb:23.2.12
200- kind load docker-image cr.yandex/crptqonuodf51kdj7a7d/ydb:23.2.12 --nodes kind-worker,kind-worker2,kind-worker3
201- # - name: disk-space-loading-ydb
202- # run: |
203- # echo "Free space:"
204- # df -h
175+ image=$(grep "anchor_for_fetching_image_from_workflow" ./e2e/tests/**/*.go | grep -o -E '"cr\.yandex.*"')
176+ docker pull $image
177+ kind load docker-image $image --nodes kind-worker,kind-worker2,kind-worker3
205178 - name : setup-gotestsum
206179 run : |
207180 go install gotest.tools/[email protected]
0 commit comments