@@ -218,6 +218,8 @@ jobs:
218
218
source : /tmp/artifacts
219
219
if : always()
220
220
221
+ # All tests use non federation images
222
+
221
223
file-ft-tests :
222
224
strategy :
223
225
matrix :
@@ -352,18 +354,17 @@ jobs:
352
354
include :
353
355
- kmsHideScalityArn : ' showArn'
354
356
job-name : sse-kms-migration-tests-show-arn
355
- - kmsHideScalityArn : ' hideArn'
356
- job-name : sse-kms-migration-tests-hide-arn
357
+ # - kmsHideScalityArn: 'hideArn'
358
+ # job-name: sse-kms-migration-tests-hide-arn
357
359
name : ${{ matrix.job-name }}
358
360
runs-on : ubuntu-latest
359
361
needs : build
360
362
env :
361
363
S3BACKEND : file
362
364
S3VAULT : mem
363
- CLOUDSERVER_IMAGE_BEFORE_SSE_MIGRATION : ghcr.io/${{ github.repository }}:7.70.21-11-svc-base
365
+ CLOUDSERVER_IMAGE_BEFORE_SSE_MIGRATION : ghcr.io/${{ github.repository }}:7.70.21-11
364
366
CLOUDSERVER_IMAGE : ghcr.io/${{ github.repository }}:${{ github.sha }}
365
367
MPU_TESTING : " yes"
366
- # ENABLE_NULL_VERSION_COMPAT_MODE: "${{ matrix.enable-null-compat }}"
367
368
JOB_NAME : ${{ matrix.job-name }}
368
369
steps :
369
370
- name : Checkout
@@ -386,47 +387,58 @@ jobs:
386
387
SSE_CONF : before
387
388
- name : Run SSE before migration tests (setup buckets and objects)
388
389
env :
389
- S3_CONFIG_FILE : tests/functional/kms-sse-migration/config.before.json
390
+ # yarn run does a cd into the test folder
391
+ S3_CONFIG_FILE : config.before.json
390
392
run : |-
391
393
set -o pipefail;
392
394
bash wait_for_local_port.bash 8000 40
393
395
394
- # ensures the expected version of cloudserver is old one
395
- VERSION=$(docker compose exec cloudserver cat package.json | jq -r .version)
396
+ echo Ensures the expected version of cloudserver is old one:
397
+ VERSION=$(docker compose -f .github/docker/docker-compose.yaml \
398
+ exec cloudserver cat package.json | jq -r .version)
396
399
if [[ "$VERSION" != "7.70.21-11" ]]; then
397
- echo "bad version of container. Should be 7.70.21-11. Was $VERSION" > &2
400
+ echo "bad version of container. Should be 7.70.21-11. Was $VERSION" >&2
398
401
exit 1
402
+ else
403
+ echo OK $VERSION
399
404
fi
400
405
401
406
yarn run ft_sse_before_migration | tee /tmp/artifacts/${{ matrix.job-name }}/beforeMigration.log
402
407
- name : Replace old cloudserver image with current one
403
- run : docker compose down cloudserver && docker compose up -d cloudserver
408
+ run : |-
409
+ docker compose down cloudserver
410
+ mv /tmp/artifacts/${{ matrix.job-name }}/s3.log /tmp/artifacts/${{ matrix.job-name }}/s3.old.log
411
+ docker compose up -d cloudserver-sse-migration
404
412
working-directory : .github/docker
405
413
env :
406
414
SSE_CONF : sseMigration.${{ matrix.kmsHideScalityArn }}
407
415
- name : Run SSE migration tests
408
416
env :
409
- S3_CONFIG_FILE : tests/functional/kms-sse-migration/config.sseMigration.${{ matrix.kmsHideScalityArn }}.json
417
+ # yarn run does a cd into the test folder
418
+ S3_CONFIG_FILE : config.sseMigration.${{ matrix.kmsHideScalityArn }}.json
410
419
run : |-
411
420
set -o pipefail;
412
421
bash wait_for_local_port.bash 8000 40
413
422
414
- # ensures the expected version of cloudserver is not old one
415
- VERSION=$(docker compose exec cloudserver cat package.json | jq -r .version)
423
+ echo Ensures the expected version of cloudserver is NOT old one
424
+ VERSION=$(docker compose -f .github/docker/docker-compose.yaml \
425
+ exec cloudserver-sse-migration cat package.json | jq -r .version)
416
426
if [[ "$VERSION" == "7.70.21-11" ]]; then
417
- echo "bad version of container. Should NOT be 7.70.21-11. Was $VERSION" > &2
427
+ echo "bad version of container. Should NOT be 7.70.21-11. Was $VERSION" >&2
418
428
exit 1
429
+ else
430
+ echo OK $VERSION
419
431
fi
420
432
421
433
yarn run ft_sse_migration | tee /tmp/artifacts/${{ matrix.job-name }}/migration.log
422
434
- name : Run SSE arnPrefix tests
423
435
env :
424
- S3_CONFIG_FILE : tests/functional/kms-sse-migration/ config.sseMigration.${{ matrix.kmsHideScalityArn }}.json
436
+ S3_CONFIG_FILE : config.sseMigration.${{ matrix.kmsHideScalityArn }}.json
425
437
run : |-
426
438
set -o pipefail;
427
439
yarn run ft_sse_arn | tee /tmp/artifacts/${{ matrix.job-name }}/arnPrefix.log
428
440
- name : Print docker compose logs
429
- run : docker compose logs cloudserver
441
+ run : docker compose logs cloudserver cloudserver-sse-migration
430
442
working-directory : .github/docker
431
443
if : failure()
432
444
- name : Upload logs to artifacts
0 commit comments