From b8ba31768b5e8c42ac8a3c0f3f288ff51fe7e8fb Mon Sep 17 00:00:00 2001 From: Jim Lerza Date: Fri, 20 Sep 2024 14:19:41 -0400 Subject: [PATCH 1/2] devex: added some output to the set-migration-complete-marker script so we know where to look if our CompletionMarker never processes. --- scripts/migration/set-migration-complete-marker.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/migration/set-migration-complete-marker.sh b/scripts/migration/set-migration-complete-marker.sh index 3a9eec3d94a..c9b3ddb4fc1 100755 --- a/scripts/migration/set-migration-complete-marker.sh +++ b/scripts/migration/set-migration-complete-marker.sh @@ -58,3 +58,5 @@ aws dynamodb put-item \ --region us-east-1 \ --table-name "$SOURCE_TABLE" \ --item "$ITEM" + +echo "CompletionMarker will be processed by streams-${ENV}-${DEPLOYING_COLOR} to approve the ${JOB_NAME} job in workflow ${CIRCLE_WORKFLOW_ID}." From 13fe97696fa2ad1baa1cda840c17a8e40600d6a1 Mon Sep 17 00:00:00 2001 From: Jim Lerza Date: Fri, 20 Sep 2024 14:30:32 -0400 Subject: [PATCH 2/2] devex: don't run the setup-for-blue-green-migration script in the build-and-deploy-empty workflow --- .circleci/config.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index cc612de81ab..d0474e20295 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -128,6 +128,10 @@ jobs: - run: name: Setup Blue Green Migration If Needed command: | + if [ "$DEPLOY_EMPTY_PERSISTENCE" == "true" ]; then + echo "skipping…" + exit 0 + fi ./setup-for-blue-green-migration.sh - run: no_output_timeout: 20m