From 2ab4bcc9294a9d846168f272c093a21e058f8841 Mon Sep 17 00:00:00 2001 From: Sandeep Mishra Date: Tue, 2 Jun 2026 09:13:30 +0000 Subject: [PATCH 01/14] initial --- .../workflows/spanner-targeted-release.yml | 106 ++++++++++++++++++ 1 file changed, 106 insertions(+) create mode 100644 .github/workflows/spanner-targeted-release.yml diff --git a/.github/workflows/spanner-targeted-release.yml b/.github/workflows/spanner-targeted-release.yml new file mode 100644 index 0000000000..87d2d42367 --- /dev/null +++ b/.github/workflows/spanner-targeted-release.yml @@ -0,0 +1,106 @@ +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +name: Spanner Targeted Release + +on: + workflow_dispatch: + inputs: + projectId: + description: 'Target GCP Project ID' + type: string + required: true + default: 'spanner-migrations-prod' + bucketName: + description: 'Target GCS Bucket Name' + type: string + required: true + default: 'spanner-migrations-prod' + stagePrefix: + description: 'Prefix for staging the template (e.g., templates-2025-10-31). If blank, defaults to templates-YYYY-MM-DD using current date.' + type: string + required: false + default: '' + templateName: + description: 'Template Name to build and stage' + type: string + required: true + default: 'Spanner_to_SourceDb' + modulePath: + description: 'Maven module directory of the template to build' + type: string + required: true + default: 'v2/spanner-to-sourcedb' + runnerLabels: + description: 'Runner labels formatted as a JSON array' + type: string + required: true + default: '["self-hosted", "release"]' + +env: + MAVEN_OPTS: >- + -Dorg.slf4j.simpleLogger.log.org.apache.maven.plugins.shade=error + --add-opens java.base/java.nio=ALL-UNNAMED + --add-opens java.base/sun.nio.ch=ALL-UNNAMED + --add-opens java.base/java.lang=ALL-UNNAMED + --add-opens java.base/java.util=ALL-UNNAMED + +permissions: + contents: read + +jobs: + targeted_release: + name: Targeted Template Release + runs-on: ${{ fromJSON(github.event.inputs.runnerLabels) }} + steps: + - name: Checkout Code + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + + - name: Setup Environment + id: setup-env + uses: ./.github/actions/setup-env + + - name: Resolve Stage Prefix + id: get-prefix + run: | + PREFIX="${{ github.event.inputs.stagePrefix }}" + if [ -z "$PREFIX" ]; then + PREFIX="templates-$(date +'%Y-%m-%d')" + echo "No stage prefix provided. Defaulting to dynamic prefix: $PREFIX" + else + echo "Using user-provided stage prefix: $PREFIX" + fi + echo "stagePrefix=$PREFIX" >> $GITHUB_OUTPUT + shell: bash + + - name: Build & Stage Template + run: | + echo "Starting Targeted Release staging..." + echo "Template: ${{ github.event.inputs.templateName }}" + echo "Module Path: ${{ github.event.inputs.modulePath }}" + echo "Project ID: ${{ github.event.inputs.projectId }}" + echo "Bucket Name: ${{ github.event.inputs.bucketName }}" + echo "Stage Prefix: ${{ steps.get-prefix.outputs.stagePrefix }}" + + mvn clean package -PtemplatesStage \ + -DprojectId="${{ github.event.inputs.projectId }}" \ + -DbucketName="${{ github.event.inputs.bucketName }}" \ + -DstagePrefix="${{ steps.get-prefix.outputs.stagePrefix }}" \ + -DtemplateName="${{ github.event.inputs.templateName }}" \ + -pl ${{ github.event.inputs.modulePath }} -am + shell: bash + + - name: Cleanup Java Environment + uses: ./.github/actions/cleanup-java-env + if: always() From 8d10b80b397c6bf88b4af555870101e9f72cbbaa Mon Sep 17 00:00:00 2001 From: Sandeep Mishra Date: Tue, 2 Jun 2026 10:42:08 +0000 Subject: [PATCH 02/14] add push trigger and fallbacks for testing --- .../workflows/spanner-targeted-release.yml | 42 +++++++++++++------ 1 file changed, 30 insertions(+), 12 deletions(-) diff --git a/.github/workflows/spanner-targeted-release.yml b/.github/workflows/spanner-targeted-release.yml index 87d2d42367..522d476889 100644 --- a/.github/workflows/spanner-targeted-release.yml +++ b/.github/workflows/spanner-targeted-release.yml @@ -15,6 +15,9 @@ name: Spanner Targeted Release on: + push: + branches: + - targeted-release workflow_dispatch: inputs: projectId: @@ -62,7 +65,7 @@ permissions: jobs: targeted_release: name: Targeted Template Release - runs-on: ${{ fromJSON(github.event.inputs.runnerLabels) }} + runs-on: ${{ fromJSON(github.event.inputs.runnerLabels || '["self-hosted", "release"]') }} steps: - name: Checkout Code uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -86,19 +89,34 @@ jobs: - name: Build & Stage Template run: | - echo "Starting Targeted Release staging..." - echo "Template: ${{ github.event.inputs.templateName }}" - echo "Module Path: ${{ github.event.inputs.modulePath }}" - echo "Project ID: ${{ github.event.inputs.projectId }}" - echo "Bucket Name: ${{ github.event.inputs.bucketName }}" - echo "Stage Prefix: ${{ steps.get-prefix.outputs.stagePrefix }}" + # Fallback to defaults if trigger is not workflow_dispatch (e.g., push) + PROJECT_ID="${{ github.event.inputs.projectId }}" + PROJECT_ID="${PROJECT_ID:-spanner-migrations-prod}" + + BUCKET_NAME="${{ github.event.inputs.bucketName }}" + BUCKET_NAME="${BUCKET_NAME:-spanner-migrations-prod}" + + TEMPLATE_NAME="${{ github.event.inputs.templateName }}" + TEMPLATE_NAME="${TEMPLATE_NAME:-Spanner_to_SourceDb}" + + MODULE_PATH="${{ github.event.inputs.modulePath }}" + MODULE_PATH="${MODULE_PATH:-v2/spanner-to-sourcedb}" + + STAGE_PREFIX="${{ steps.get-prefix.outputs.stagePrefix }}" + + echo "Starting Spanner Targeted Release staging..." + echo "Template: $TEMPLATE_NAME" + echo "Module Path: $MODULE_PATH" + echo "Project ID: $PROJECT_ID" + echo "Bucket Name: $BUCKET_NAME" + echo "Stage Prefix: $STAGE_PREFIX" mvn clean package -PtemplatesStage \ - -DprojectId="${{ github.event.inputs.projectId }}" \ - -DbucketName="${{ github.event.inputs.bucketName }}" \ - -DstagePrefix="${{ steps.get-prefix.outputs.stagePrefix }}" \ - -DtemplateName="${{ github.event.inputs.templateName }}" \ - -pl ${{ github.event.inputs.modulePath }} -am + -DprojectId="$PROJECT_ID" \ + -DbucketName="$BUCKET_NAME" \ + -DstagePrefix="$STAGE_PREFIX" \ + -DtemplateName="$TEMPLATE_NAME" \ + -pl $MODULE_PATH -am shell: bash - name: Cleanup Java Environment From 22fa4b8e295f61b606bf903509b5dc71c77b2788 Mon Sep 17 00:00:00 2001 From: Sandeep Mishra Date: Tue, 2 Jun 2026 10:50:47 +0000 Subject: [PATCH 03/14] explicitly skip unit and integration tests in maven build --- .github/workflows/spanner-targeted-release.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/spanner-targeted-release.yml b/.github/workflows/spanner-targeted-release.yml index 522d476889..5b95c9626b 100644 --- a/.github/workflows/spanner-targeted-release.yml +++ b/.github/workflows/spanner-targeted-release.yml @@ -15,9 +15,6 @@ name: Spanner Targeted Release on: - push: - branches: - - targeted-release workflow_dispatch: inputs: projectId: @@ -116,6 +113,8 @@ jobs: -DbucketName="$BUCKET_NAME" \ -DstagePrefix="$STAGE_PREFIX" \ -DtemplateName="$TEMPLATE_NAME" \ + -Dmaven.test.skip \ + -DskipIntegrationTests \ -pl $MODULE_PATH -am shell: bash From d864cb20e8d4cd9007c802b618430fa00477c207 Mon Sep 17 00:00:00 2001 From: Sandeep Mishra Date: Tue, 2 Jun 2026 10:55:31 +0000 Subject: [PATCH 04/14] re-add push trigger to allow direct testing on branch --- .github/workflows/spanner-targeted-release.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/spanner-targeted-release.yml b/.github/workflows/spanner-targeted-release.yml index 5b95c9626b..35f583ee68 100644 --- a/.github/workflows/spanner-targeted-release.yml +++ b/.github/workflows/spanner-targeted-release.yml @@ -15,6 +15,9 @@ name: Spanner Targeted Release on: + push: + branches: + - targeted-release workflow_dispatch: inputs: projectId: From 36bd318a64ce1a95f21c4263ab4c2db398ad9ecd Mon Sep 17 00:00:00 2001 From: Sandeep Mishra Date: Tue, 2 Jun 2026 11:34:24 +0000 Subject: [PATCH 05/14] change default project, bucket, and runner to staging values --- .../workflows/spanner-targeted-release.yml | 61 ++++++++++--------- 1 file changed, 32 insertions(+), 29 deletions(-) diff --git a/.github/workflows/spanner-targeted-release.yml b/.github/workflows/spanner-targeted-release.yml index 35f583ee68..54c54e3d9f 100644 --- a/.github/workflows/spanner-targeted-release.yml +++ b/.github/workflows/spanner-targeted-release.yml @@ -24,12 +24,12 @@ on: description: 'Target GCP Project ID' type: string required: true - default: 'spanner-migrations-prod' + default: 'span-cloud-migrations-staging' bucketName: description: 'Target GCS Bucket Name' type: string required: true - default: 'spanner-migrations-prod' + default: 'spanner-migrations-staging' stagePrefix: description: 'Prefix for staging the template (e.g., templates-2025-10-31). If blank, defaults to templates-YYYY-MM-DD using current date.' type: string @@ -49,7 +49,7 @@ on: description: 'Runner labels formatted as a JSON array' type: string required: true - default: '["self-hosted", "release"]' + default: '["self-hosted", "spanner-it"]' env: MAVEN_OPTS: >- @@ -74,22 +74,9 @@ jobs: id: setup-env uses: ./.github/actions/setup-env - - name: Resolve Stage Prefix - id: get-prefix + - name: Resolve Variables + id: resolve-vars run: | - PREFIX="${{ github.event.inputs.stagePrefix }}" - if [ -z "$PREFIX" ]; then - PREFIX="templates-$(date +'%Y-%m-%d')" - echo "No stage prefix provided. Defaulting to dynamic prefix: $PREFIX" - else - echo "Using user-provided stage prefix: $PREFIX" - fi - echo "stagePrefix=$PREFIX" >> $GITHUB_OUTPUT - shell: bash - - - name: Build & Stage Template - run: | - # Fallback to defaults if trigger is not workflow_dispatch (e.g., push) PROJECT_ID="${{ github.event.inputs.projectId }}" PROJECT_ID="${PROJECT_ID:-spanner-migrations-prod}" @@ -102,23 +89,39 @@ jobs: MODULE_PATH="${{ github.event.inputs.modulePath }}" MODULE_PATH="${MODULE_PATH:-v2/spanner-to-sourcedb}" - STAGE_PREFIX="${{ steps.get-prefix.outputs.stagePrefix }}" + STAGE_PREFIX="${{ github.event.inputs.stagePrefix }}" + if [ -z "$STAGE_PREFIX" ]; then + STAGE_PREFIX="templates-$(date +'%Y-%m-%d')" + fi + echo "Resolved Variables:" + echo "-------------------" + echo "Project ID: $PROJECT_ID" + echo "Bucket Name: $BUCKET_NAME" + echo "Template Name: $TEMPLATE_NAME" + echo "Module Path: $MODULE_PATH" + echo "Stage Prefix: $STAGE_PREFIX" + echo "-------------------" + + echo "projectId=$PROJECT_ID" >> $GITHUB_OUTPUT + echo "bucketName=$BUCKET_NAME" >> $GITHUB_OUTPUT + echo "templateName=$TEMPLATE_NAME" >> $GITHUB_OUTPUT + echo "modulePath=$MODULE_PATH" >> $GITHUB_OUTPUT + echo "stagePrefix=$STAGE_PREFIX" >> $GITHUB_OUTPUT + shell: bash + + - name: Build & Stage Template + run: | echo "Starting Spanner Targeted Release staging..." - echo "Template: $TEMPLATE_NAME" - echo "Module Path: $MODULE_PATH" - echo "Project ID: $PROJECT_ID" - echo "Bucket Name: $BUCKET_NAME" - echo "Stage Prefix: $STAGE_PREFIX" mvn clean package -PtemplatesStage \ - -DprojectId="$PROJECT_ID" \ - -DbucketName="$BUCKET_NAME" \ - -DstagePrefix="$STAGE_PREFIX" \ - -DtemplateName="$TEMPLATE_NAME" \ + -DprojectId="${{ steps.resolve-vars.outputs.projectId }}" \ + -DbucketName="${{ steps.resolve-vars.outputs.bucketName }}" \ + -DstagePrefix="${{ steps.resolve-vars.outputs.stagePrefix }}" \ + -DtemplateName="${{ steps.resolve-vars.outputs.templateName }}" \ -Dmaven.test.skip \ -DskipIntegrationTests \ - -pl $MODULE_PATH -am + -pl ${{ steps.resolve-vars.outputs.modulePath }} -am shell: bash - name: Cleanup Java Environment From 5a9265b971c990ad025f8f96b293302fc585f1a3 Mon Sep 17 00:00:00 2001 From: Sandeep Mishra Date: Tue, 2 Jun 2026 11:36:48 +0000 Subject: [PATCH 06/14] update fallback values in script to match staging defaults --- .github/workflows/spanner-targeted-release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/spanner-targeted-release.yml b/.github/workflows/spanner-targeted-release.yml index 54c54e3d9f..3ce772a014 100644 --- a/.github/workflows/spanner-targeted-release.yml +++ b/.github/workflows/spanner-targeted-release.yml @@ -78,10 +78,10 @@ jobs: id: resolve-vars run: | PROJECT_ID="${{ github.event.inputs.projectId }}" - PROJECT_ID="${PROJECT_ID:-spanner-migrations-prod}" + PROJECT_ID="${PROJECT_ID:-span-cloud-migrations-staging}" BUCKET_NAME="${{ github.event.inputs.bucketName }}" - BUCKET_NAME="${BUCKET_NAME:-spanner-migrations-prod}" + BUCKET_NAME="${BUCKET_NAME:-spanner-migrations-staging}" TEMPLATE_NAME="${{ github.event.inputs.templateName }}" TEMPLATE_NAME="${TEMPLATE_NAME:-Spanner_to_SourceDb}" From 2ae7454f5784ef4169ed7a1f7e34f6df29b43f7c Mon Sep 17 00:00:00 2001 From: Sandeep Mishra Date: Tue, 2 Jun 2026 12:24:13 +0000 Subject: [PATCH 07/14] add temporary diagnostic step to list artifact registry repos --- .github/workflows/spanner-targeted-release.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/spanner-targeted-release.yml b/.github/workflows/spanner-targeted-release.yml index 3ce772a014..66df21a755 100644 --- a/.github/workflows/spanner-targeted-release.yml +++ b/.github/workflows/spanner-targeted-release.yml @@ -110,6 +110,12 @@ jobs: echo "stagePrefix=$STAGE_PREFIX" >> $GITHUB_OUTPUT shell: bash + - name: Diagnostic - List Artifact Registry Repositories + run: | + echo "=== Listing Repositories in Project ${{ steps.resolve-vars.outputs.projectId }} ===" + gcloud artifacts repositories list --project="${{ steps.resolve-vars.outputs.projectId }}" + shell: bash + - name: Build & Stage Template run: | echo "Starting Spanner Targeted Release staging..." From 6a1b93858f962f8379172c556f3478a3af848063 Mon Sep 17 00:00:00 2001 From: Sandeep Mishra Date: Tue, 2 Jun 2026 12:28:06 +0000 Subject: [PATCH 08/14] revert --- .github/workflows/spanner-targeted-release.yml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/.github/workflows/spanner-targeted-release.yml b/.github/workflows/spanner-targeted-release.yml index 66df21a755..3ce772a014 100644 --- a/.github/workflows/spanner-targeted-release.yml +++ b/.github/workflows/spanner-targeted-release.yml @@ -110,12 +110,6 @@ jobs: echo "stagePrefix=$STAGE_PREFIX" >> $GITHUB_OUTPUT shell: bash - - name: Diagnostic - List Artifact Registry Repositories - run: | - echo "=== Listing Repositories in Project ${{ steps.resolve-vars.outputs.projectId }} ===" - gcloud artifacts repositories list --project="${{ steps.resolve-vars.outputs.projectId }}" - shell: bash - - name: Build & Stage Template run: | echo "Starting Spanner Targeted Release staging..." From a04e1c71b9d2396e216aab003c72006e6764d691 Mon Sep 17 00:00:00 2001 From: Sandeep Mishra Date: Wed, 3 Jun 2026 06:26:12 +0000 Subject: [PATCH 09/14] add its --- .../workflows/spanner-targeted-release.yml | 59 ++++++++++++++++++- 1 file changed, 58 insertions(+), 1 deletion(-) diff --git a/.github/workflows/spanner-targeted-release.yml b/.github/workflows/spanner-targeted-release.yml index 3ce772a014..d485633329 100644 --- a/.github/workflows/spanner-targeted-release.yml +++ b/.github/workflows/spanner-targeted-release.yml @@ -50,6 +50,16 @@ on: type: string required: true default: '["self-hosted", "spanner-it"]' + runIntegrationTests: + description: 'Run Spanner integration tests before staging templates' + type: boolean + required: true + default: true + specific_test: + description: 'Specific Integration Test (passed to -Dtest=)' + type: string + required: false + default: '' env: MAVEN_OPTS: >- @@ -93,7 +103,13 @@ jobs: if [ -z "$STAGE_PREFIX" ]; then STAGE_PREFIX="templates-$(date +'%Y-%m-%d')" fi - + + RUN_INTEGRATION_TESTS="${{ github.event.inputs.runIntegrationTests }}" + RUN_INTEGRATION_TESTS="${RUN_INTEGRATION_TESTS:-true}" + + SPECIFIC_TEST="${{ github.event.inputs.specific_test }}" + SPECIFIC_TEST="${SPECIFIC_TEST:-}" + echo "Resolved Variables:" echo "-------------------" echo "Project ID: $PROJECT_ID" @@ -101,6 +117,8 @@ jobs: echo "Template Name: $TEMPLATE_NAME" echo "Module Path: $MODULE_PATH" echo "Stage Prefix: $STAGE_PREFIX" + echo "Run IT Tests: $RUN_INTEGRATION_TESTS" + echo "Specific Test: $SPECIFIC_TEST" echo "-------------------" echo "projectId=$PROJECT_ID" >> $GITHUB_OUTPUT @@ -108,8 +126,47 @@ jobs: echo "templateName=$TEMPLATE_NAME" >> $GITHUB_OUTPUT echo "modulePath=$MODULE_PATH" >> $GITHUB_OUTPUT echo "stagePrefix=$STAGE_PREFIX" >> $GITHUB_OUTPUT + echo "runIntegrationTests=$RUN_INTEGRATION_TESTS" >> $GITHUB_OUTPUT + echo "specificTest=$SPECIFIC_TEST" >> $GITHUB_OUTPUT shell: bash + - name: Run Integration Tests + if: ${{ steps.resolve-vars.outputs.runIntegrationTests == 'true' }} + run: | + echo "Starting Spanner Integration Tests..." + ./cicd/run-it-tests \ + --modules-to-build="SPANNER" \ + --it-region="us-central1" \ + --it-project="span-cloud-teleport-testing" \ + --it-artifact-bucket="span-cloud-teleport-testing-it-gitactions" \ + --it-private-connectivity="datastream-connect-2" \ + --it-cloud-proxy-host="10.128.0.16" \ + --test="${{ steps.resolve-vars.outputs.specificTest }}" + + - name: Upload Integration Tests Report + if: always() && (steps.resolve-vars.outputs.runIntegrationTests == 'true') + uses: actions/upload-artifact@v7 + with: + name: surefire-integration-test-results + path: | + **/surefire-reports/TEST-*.xml + **/surefire-reports/*.html + **/surefire-reports/html/** + retention-days: 10 + + - name: Integration Test report on GitHub + if: always() && (steps.resolve-vars.outputs.runIntegrationTests == 'true') + uses: dorny/test-reporter@v3 + with: + name: Integration Test report on GitHub + path: '**/surefire-reports/TEST-*.xml' + reporter: java-junit + only-summary: 'true' + token: ${{ secrets.GITHUB_TOKEN }} + fail-on-error: 'false' + list-suites: 'failed' + list-tests: 'failed' + - name: Build & Stage Template run: | echo "Starting Spanner Targeted Release staging..." From 30e075b8a7484831ff6a6388be12c7b6c73eff9f Mon Sep 17 00:00:00 2001 From: Sandeep Mishra Date: Wed, 3 Jun 2026 06:38:07 +0000 Subject: [PATCH 10/14] minor --- .github/workflows/spanner-targeted-release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/spanner-targeted-release.yml b/.github/workflows/spanner-targeted-release.yml index d485633329..0fc33b1d70 100644 --- a/.github/workflows/spanner-targeted-release.yml +++ b/.github/workflows/spanner-targeted-release.yml @@ -49,7 +49,7 @@ on: description: 'Runner labels formatted as a JSON array' type: string required: true - default: '["self-hosted", "spanner-it"]' + default: '["self-hosted", "spanner-release"]' runIntegrationTests: description: 'Run Spanner integration tests before staging templates' type: boolean @@ -75,7 +75,7 @@ permissions: jobs: targeted_release: name: Targeted Template Release - runs-on: ${{ fromJSON(github.event.inputs.runnerLabels || '["self-hosted", "release"]') }} + runs-on: ${{ fromJSON(github.event.inputs.runnerLabels || '["self-hosted", "spanner-release"]') }} steps: - name: Checkout Code uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 From acf16f63e1385fcdcaf5e4e63794249294fd216c Mon Sep 17 00:00:00 2001 From: Sandeep Mishra Date: Wed, 3 Jun 2026 06:56:05 +0000 Subject: [PATCH 11/14] required var --- .github/workflows/spanner-targeted-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/spanner-targeted-release.yml b/.github/workflows/spanner-targeted-release.yml index 0fc33b1d70..562e1ccb72 100644 --- a/.github/workflows/spanner-targeted-release.yml +++ b/.github/workflows/spanner-targeted-release.yml @@ -33,7 +33,7 @@ on: stagePrefix: description: 'Prefix for staging the template (e.g., templates-2025-10-31). If blank, defaults to templates-YYYY-MM-DD using current date.' type: string - required: false + required: true default: '' templateName: description: 'Template Name to build and stage' From 189904b412b0c136394e5ea026b2162043c41c30 Mon Sep 17 00:00:00 2001 From: Sandeep Mishra Date: Fri, 5 Jun 2026 11:34:10 +0000 Subject: [PATCH 12/14] disable temporarily --- .github/workflows/spanner-targeted-release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/spanner-targeted-release.yml b/.github/workflows/spanner-targeted-release.yml index 562e1ccb72..23bcb00163 100644 --- a/.github/workflows/spanner-targeted-release.yml +++ b/.github/workflows/spanner-targeted-release.yml @@ -54,7 +54,7 @@ on: description: 'Run Spanner integration tests before staging templates' type: boolean required: true - default: true + default: false specific_test: description: 'Specific Integration Test (passed to -Dtest=)' type: string @@ -105,7 +105,7 @@ jobs: fi RUN_INTEGRATION_TESTS="${{ github.event.inputs.runIntegrationTests }}" - RUN_INTEGRATION_TESTS="${RUN_INTEGRATION_TESTS:-true}" + RUN_INTEGRATION_TESTS="${RUN_INTEGRATION_TESTS:-false}" SPECIFIC_TEST="${{ github.event.inputs.specific_test }}" SPECIFIC_TEST="${SPECIFIC_TEST:-}" From cd848da28848cd2a33dd39ec52351d191cbe327f Mon Sep 17 00:00:00 2001 From: Sandeep Mishra Date: Fri, 5 Jun 2026 12:00:57 +0000 Subject: [PATCH 13/14] debug --- .github/workflows/spanner-targeted-release.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/spanner-targeted-release.yml b/.github/workflows/spanner-targeted-release.yml index 23bcb00163..a469e1ad86 100644 --- a/.github/workflows/spanner-targeted-release.yml +++ b/.github/workflows/spanner-targeted-release.yml @@ -167,6 +167,19 @@ jobs: list-suites: 'failed' list-tests: 'failed' + - name: Debug Credentials & Configure Docker + run: | + echo "=== Debugging Credentials ===" + echo "gcloud active account:" + gcloud auth list + echo "" + echo "GCE Metadata Server default account:" + curl -s -H "Metadata-Flavor: Google" http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/email || echo "Not found" + echo "" + echo "Configuring docker with gcloud..." + gcloud auth configure-docker gcr.io,us-central1-docker.pkg.dev --quiet + shell: bash + - name: Build & Stage Template run: | echo "Starting Spanner Targeted Release staging..." From 7353d9a84f860f8f5992304c62d62ff09928e33d Mon Sep 17 00:00:00 2001 From: Sandeep Mishra Date: Fri, 5 Jun 2026 15:59:10 +0000 Subject: [PATCH 14/14] revert debug and default false --- .github/workflows/spanner-targeted-release.yml | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/.github/workflows/spanner-targeted-release.yml b/.github/workflows/spanner-targeted-release.yml index a469e1ad86..562e1ccb72 100644 --- a/.github/workflows/spanner-targeted-release.yml +++ b/.github/workflows/spanner-targeted-release.yml @@ -54,7 +54,7 @@ on: description: 'Run Spanner integration tests before staging templates' type: boolean required: true - default: false + default: true specific_test: description: 'Specific Integration Test (passed to -Dtest=)' type: string @@ -105,7 +105,7 @@ jobs: fi RUN_INTEGRATION_TESTS="${{ github.event.inputs.runIntegrationTests }}" - RUN_INTEGRATION_TESTS="${RUN_INTEGRATION_TESTS:-false}" + RUN_INTEGRATION_TESTS="${RUN_INTEGRATION_TESTS:-true}" SPECIFIC_TEST="${{ github.event.inputs.specific_test }}" SPECIFIC_TEST="${SPECIFIC_TEST:-}" @@ -167,19 +167,6 @@ jobs: list-suites: 'failed' list-tests: 'failed' - - name: Debug Credentials & Configure Docker - run: | - echo "=== Debugging Credentials ===" - echo "gcloud active account:" - gcloud auth list - echo "" - echo "GCE Metadata Server default account:" - curl -s -H "Metadata-Flavor: Google" http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/email || echo "Not found" - echo "" - echo "Configuring docker with gcloud..." - gcloud auth configure-docker gcr.io,us-central1-docker.pkg.dev --quiet - shell: bash - - name: Build & Stage Template run: | echo "Starting Spanner Targeted Release staging..."