Skip to content

Commit 62055c8

Browse files
authored
Merge pull request #184 from scality/improvement/COSI-89-test-both-9.4-and-9.5
CSI-89: Updated E2E tests to use S3 for both 9.4 and 9.5
2 parents 3534ce4 + b11848b commit 62055c8

File tree

3 files changed

+41
-8
lines changed

3 files changed

+41
-8
lines changed

.github/s3_and_iam_deployment/.env

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
VAULT_IMAGE="ghcr.io/scality/vault:7.70.26"
2-
CLOUDSERVER_IMAGE="ghcr.io/scality/cloudserver:7.70.55"

.github/workflows/helm-validation.yml

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,19 @@ on:
1919

2020
jobs:
2121
e2e-tests-with-helm:
22+
name: E2E tests with RING v${{ matrix.ring_version }}
2223
runs-on: ubuntu-latest
24+
strategy:
25+
fail-fast: false
26+
matrix:
27+
include:
28+
- ring_version: "9.4"
29+
github_variable_name: "CLOUDSERVER_RING_9_4"
30+
- ring_version: "9.5"
31+
github_variable_name: "CLOUDSERVER_RING_9_5"
32+
33+
env:
34+
CLOUDSERVER_IMAGE: ${{ vars[matrix.github_variable_name] }}
2335

2436
steps:
2537
- name: Check out repository
@@ -37,8 +49,9 @@ jobs:
3749
uses: actions/cache@v4
3850
with:
3951
path: /tmp/.docker_cache
40-
key: docker-${{ runner.os }}-${{ hashFiles('.github/s3_and_iam_deployment/.env') }}
52+
key: docker-${{ runner.os }}-${{ matrix.ring_version }}-${{ env.CLOUDSERVER_IMAGE }}
4153
restore-keys: |
54+
docker-${{ runner.os }}-${{ matrix.ring_version }}-
4255
docker-${{ runner.os }}-
4356
4457
- name: Set up Helm
@@ -100,6 +113,9 @@ jobs:
100113
mkdir -p logs/s3 logs/iam logs/cosi_driver data/vaultdb
101114
chown -R runner:docker logs data
102115
chmod -R ugo+rwx logs data
116+
117+
# Override CLOUDSERVER_IMAGE in docker-compose
118+
export CLOUDSERVER_IMAGE="${{ env.CLOUDSERVER_IMAGE }}"
103119
docker compose --profile iam_s3 up -d --quiet-pull
104120
bash ../scripts/wait_for_local_port.bash 8600 30
105121
bash ../scripts/wait_for_local_port.bash 8000 30
@@ -110,10 +126,10 @@ jobs:
110126
run: |
111127
source .github/s3_and_iam_deployment/.env
112128
echo "Vault Image: $VAULT_IMAGE"
113-
echo "CloudServer Image: $CLOUDSERVER_IMAGE"
129+
echo "CloudServer Image: ${{ env.CLOUDSERVER_IMAGE }}"
114130
mkdir -p /tmp/.docker_cache
115131
docker save "$VAULT_IMAGE" -o /tmp/.docker_cache/vault_image.tar
116-
docker save "$CLOUDSERVER_IMAGE" -o /tmp/.docker_cache/cloudserver_image.tar
132+
docker save "${{ env.CLOUDSERVER_IMAGE }}" -o /tmp/.docker_cache/cloudserver_image.tar
117133
shell: bash
118134

119135
- name: Install Scality COSI Driver using Helm Chart
@@ -191,3 +207,4 @@ jobs:
191207
user: ${{ secrets.ARTIFACTS_USER }}
192208
password: ${{ secrets.ARTIFACTS_PASSWORD }}
193209
source: .github/e2e_tests/artifacts
210+
name: e2e-tests-helm-${{ matrix.ring_version }}

.github/workflows/kustomize-validation.yml

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,19 @@ on:
1919

2020
jobs:
2121
e2e-tests-with-kustomize:
22+
name: E2E testswith RING v${{ matrix.ring_version }}
2223
runs-on: ubuntu-latest
24+
strategy:
25+
fail-fast: false
26+
matrix:
27+
include:
28+
- ring_version: "9.4"
29+
github_variable_name: "CLOUDSERVER_RING_9_4"
30+
- ring_version: "9.5"
31+
github_variable_name: "CLOUDSERVER_RING_9_5"
32+
33+
env:
34+
CLOUDSERVER_IMAGE: ${{ vars[matrix.github_variable_name] }}
2335

2436
steps:
2537
- name: Check out repository
@@ -37,10 +49,11 @@ jobs:
3749
uses: actions/cache@v4
3850
with:
3951
path: /tmp/.docker_cache
40-
key: docker-${{ runner.os }}-${{ hashFiles('.github/s3_and_iam_deployment/.env') }}
52+
key: docker-${{ runner.os }}-${{ matrix.ring_version }}-${{ env.CLOUDSERVER_IMAGE }}
4153
restore-keys: |
54+
docker-${{ runner.os }}-${{ matrix.ring_version }}-
4255
docker-${{ runner.os }}-
43-
56+
4457
- name: Create k8s KIND Cluster
4558
uses: helm/[email protected]
4659
with:
@@ -92,6 +105,9 @@ jobs:
92105
mkdir -p logs/s3 logs/iam logs/cosi_driver data/vaultdb
93106
chown -R runner:docker logs data
94107
chmod -R ugo+rwx logs data
108+
109+
# Override CLOUDSERVER_IMAGE in docker-compose
110+
export CLOUDSERVER_IMAGE="${{ env.CLOUDSERVER_IMAGE }}"
95111
docker compose --profile iam_s3 up -d --quiet-pull
96112
bash ../scripts/wait_for_local_port.bash 8600 30
97113
bash ../scripts/wait_for_local_port.bash 8000 30
@@ -102,10 +118,10 @@ jobs:
102118
run: |
103119
source .github/s3_and_iam_deployment/.env
104120
echo "Vault Image: $VAULT_IMAGE"
105-
echo "CloudServer Image: $CLOUDSERVER_IMAGE"
121+
echo "CloudServer Image: ${{ env.CLOUDSERVER_IMAGE }}"
106122
mkdir -p /tmp/.docker_cache
107123
docker save "$VAULT_IMAGE" -o /tmp/.docker_cache/vault_image.tar
108-
docker save "$CLOUDSERVER_IMAGE" -o /tmp/.docker_cache/cloudserver_image.tar
124+
docker save "${{ env.CLOUDSERVER_IMAGE }}" -o /tmp/.docker_cache/cloudserver_image.tar
109125
shell: bash
110126

111127
- name: E2E tests for greenfield use case using kustomize
@@ -165,3 +181,4 @@ jobs:
165181
user: ${{ secrets.ARTIFACTS_USER }}
166182
password: ${{ secrets.ARTIFACTS_PASSWORD }}
167183
source: .github/e2e_tests/artifacts
184+
name: e2e-tests-${{ matrix.ring_version }}

0 commit comments

Comments
 (0)