@@ -218,6 +218,8 @@ jobs:
218218 source : /tmp/artifacts
219219 if : always()
220220
221+ # All tests use non federation images
222+
221223 file-ft-tests :
222224 strategy :
223225 matrix :
@@ -352,18 +354,17 @@ jobs:
352354 include :
353355 - kmsHideScalityArn : ' showArn'
354356 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
357359 name : ${{ matrix.job-name }}
358360 runs-on : ubuntu-latest
359361 needs : build
360362 env :
361363 S3BACKEND : file
362364 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
364366 CLOUDSERVER_IMAGE : ghcr.io/${{ github.repository }}:${{ github.sha }}
365367 MPU_TESTING : " yes"
366- # ENABLE_NULL_VERSION_COMPAT_MODE: "${{ matrix.enable-null-compat }}"
367368 JOB_NAME : ${{ matrix.job-name }}
368369 steps :
369370 - name : Checkout
@@ -386,47 +387,58 @@ jobs:
386387 SSE_CONF : before
387388 - name : Run SSE before migration tests (setup buckets and objects)
388389 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
390392 run : |-
391393 set -o pipefail;
392394 bash wait_for_local_port.bash 8000 40
393395
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)
396399 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
398401 exit 1
402+ else
403+ echo OK $VERSION
399404 fi
400405
401406 yarn run ft_sse_before_migration | tee /tmp/artifacts/${{ matrix.job-name }}/beforeMigration.log
402407 - 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
404412 working-directory : .github/docker
405413 env :
406414 SSE_CONF : sseMigration.${{ matrix.kmsHideScalityArn }}
407415 - name : Run SSE migration tests
408416 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
410419 run : |-
411420 set -o pipefail;
412421 bash wait_for_local_port.bash 8000 40
413422
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)
416426 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
418428 exit 1
429+ else
430+ echo OK $VERSION
419431 fi
420432
421433 yarn run ft_sse_migration | tee /tmp/artifacts/${{ matrix.job-name }}/migration.log
422434 - name : Run SSE arnPrefix tests
423435 env :
424- S3_CONFIG_FILE : tests/functional/kms-sse-migration/ config.sseMigration.${{ matrix.kmsHideScalityArn }}.json
436+ S3_CONFIG_FILE : config.sseMigration.${{ matrix.kmsHideScalityArn }}.json
425437 run : |-
426438 set -o pipefail;
427439 yarn run ft_sse_arn | tee /tmp/artifacts/${{ matrix.job-name }}/arnPrefix.log
428440 - name : Print docker compose logs
429- run : docker compose logs cloudserver
441+ run : docker compose logs cloudserver cloudserver-sse-migration
430442 working-directory : .github/docker
431443 if : failure()
432444 - name : Upload logs to artifacts
0 commit comments