Skip to content

Commit 86809fc

Browse files
committed
wip
1 parent 94abcee commit 86809fc

File tree

9 files changed

+14
-41
lines changed

9 files changed

+14
-41
lines changed

.github/workflows/run-tests.yml

Lines changed: 4 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@ name: run-tests
33
on:
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-
#
106
jobs:
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]

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ kind-init:
7070
kind create cluster --config e2e/kind-cluster-config.yaml --name kind-ydb-operator; \
7171
docker pull k8s.gcr.io/ingress-nginx/kube-webhook-certgen:v1.0; \
7272
kind load docker-image k8s.gcr.io/ingress-nginx/kube-webhook-certgen:v1.0 --name kind-ydb-operator; \
73-
docker pull cr.yandex/crptqonuodf51kdj7a7d/ydb:23.2.12; \
74-
kind load docker-image cr.yandex/crptqonuodf51kdj7a7d/ydb:23.2.12 --name kind-ydb-operator
73+
docker pull cr.yandex/crptqonuodf51kdj7a7d/ydb:23.3.17; \
74+
kind load docker-image cr.yandex/crptqonuodf51kdj7a7d/ydb:23.3.17 --name kind-ydb-operator
7575

7676
kind-load:
7777
docker tag cr.yandex/yc/ydb-operator:latest kind/ydb-operator:current

docs/tests.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,14 @@ kind create cluster \
8888
kubectl config use-context kind-local-kind
8989

9090
# Within tests, the following two images are used:
91-
# cr.yandex/crptqonuodf51kdj7a7d/ydb:23.2.12
91+
# cr.yandex/crptqonuodf51kdj7a7d/ydb:<version>
9292
# kind/ydb-operator:current
9393

9494
# You have to download the ydb image and build the operator image yourself. Then, explicitly
9595
# upload them into the kind cluster. Refer to `./github/e2e.yaml` github workflow which essentially
9696
# does the same thing.
9797
kind --name local-kind load docker-image kind/ydb-operator:current
98-
kind --name local-kind load docker-image ydb:23.2.12
98+
kind --name local-kind load docker-image ydb:<version>
9999

100100
# Run all tests with disabled concurrency, because there is only one cluster to run tests against
101101
go test -p 1 -v ./...

e2e/tests/test-objects/objects.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
)
1212

1313
const (
14-
YdbImage = "cr.yandex/crptqonuodf51kdj7a7d/ydb:23.2.12"
14+
YdbImage = "cr.yandex/crptqonuodf51kdj7a7d/ydb:23.3.17" // anchor_for_fetching_image_from_workflow
1515
YdbNamespace = "ydb"
1616
StorageName = "storage"
1717
DatabaseName = "database"

samples/database.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ metadata:
44
name: database-sample
55
spec:
66
image:
7-
name: cr.yandex/crptqonuodf51kdj7a7d/ydb:23.2.12
7+
name: cr.yandex/crptqonuodf51kdj7a7d/ydb:23.3.17
88
nodes: 3
99
resources:
1010
storageUnits:

samples/minikube/database.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ metadata:
44
name: database-minikube-sample
55
spec:
66
image:
7-
name: cr.yandex/crptqonuodf51kdj7a7d/ydb:23.2.12
7+
name: cr.yandex/crptqonuodf51kdj7a7d/ydb:23.3.17
88
nodes: 1
99
domain: Root
1010
service:

samples/minikube/storage.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
spec:
66
dataStore: []
77
image:
8-
name: cr.yandex/crptqonuodf51kdj7a7d/ydb:23.2.12
8+
name: cr.yandex/crptqonuodf51kdj7a7d/ydb:23.3.17
99
nodes: 1
1010
domain: Root
1111
erasure: none

samples/storage-block-4-2.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ spec:
1111
storage: 93Gi
1212
volumeMode: Block
1313
image:
14-
name: cr.yandex/crptqonuodf51kdj7a7d/ydb:23.2.12
14+
name: cr.yandex/crptqonuodf51kdj7a7d/ydb:23.3.17
1515
nodes: 8
1616
erasure: block-4-2
1717
configuration: |-

samples/storage-mirror-3dc-nodeset.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ spec:
1111
requests:
1212
storage: 80Gi
1313
image:
14-
name: cr.yandex/crptqonuodf51kdj7a7d/ydb:23.2.12
14+
name: cr.yandex/crptqonuodf51kdj7a7d/ydb:23.3.17
1515
nodes: 9
1616
nodeSets:
1717
- name: nodeset-1

0 commit comments

Comments
 (0)