From 168a64c3d9e0f5b997940a44a18171822ca621f8 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Fri, 16 Oct 2026 16:44:34 +0000 Subject: [PATCH 1/2] ci: run post-submit workflows on release instead of push to main --- .github/workflows/conformance-tests-bigtable-proxy.yaml | 8 ++------ .github/workflows/conformance-tests-gax-showcase.yaml | 5 ++--- .../workflows/conformance-tests-storage-emulator.yaml | 8 ++------ .github/workflows/docs.yaml | 4 ++-- .github/workflows/emulator-system-tests-bigtable.yaml | 9 ++------- .github/workflows/emulator-system-tests-datastore.yaml | 9 ++------- .github/workflows/emulator-system-tests-firestore.yaml | 9 ++------- .github/workflows/emulator-system-tests-pubsub.yaml | 9 ++------- .github/workflows/emulator-system-tests-spanner.yaml | 8 ++------ .github/workflows/lint.yaml | 4 ++-- .github/workflows/unit-tests.yaml | 6 +++--- 11 files changed, 23 insertions(+), 56 deletions(-) diff --git a/.github/workflows/conformance-tests-bigtable-proxy.yaml b/.github/workflows/conformance-tests-bigtable-proxy.yaml index 42b1a276c08..496f511085d 100644 --- a/.github/workflows/conformance-tests-bigtable-proxy.yaml +++ b/.github/workflows/conformance-tests-bigtable-proxy.yaml @@ -14,12 +14,8 @@ # Github action job to test core java library features on # downstream client libraries before they are released. on: - push: - branches: - - main - paths: - - 'Bigtable/**' - - '.github/workflows/conformance-tests-bigtable-proxy.yaml' + release: + types: [published] pull_request: paths: - 'Bigtable/**' diff --git a/.github/workflows/conformance-tests-gax-showcase.yaml b/.github/workflows/conformance-tests-gax-showcase.yaml index 18be1705172..a7a9476887c 100644 --- a/.github/workflows/conformance-tests-gax-showcase.yaml +++ b/.github/workflows/conformance-tests-gax-showcase.yaml @@ -1,8 +1,7 @@ name: Run GAX Conformance Tests With Showcase on: - push: - branches: - - main + release: + types: [published] pull_request: permissions: contents: read diff --git a/.github/workflows/conformance-tests-storage-emulator.yaml b/.github/workflows/conformance-tests-storage-emulator.yaml index fa62005b057..ae0d30ecd39 100644 --- a/.github/workflows/conformance-tests-storage-emulator.yaml +++ b/.github/workflows/conformance-tests-storage-emulator.yaml @@ -1,10 +1,6 @@ on: - push: - branches: - - main - paths: - - 'Storage/**' - - '.github/workflows/conformance-tests-storage-emulator.yaml' + release: + types: [published] pull_request: paths: - 'Storage/**' diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index 7af92641c7d..9ee9e2836b0 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -1,7 +1,7 @@ name: DocFX Test Suite on: - push: - branches: [ main ] + release: + types: [published] pull_request: workflow_dispatch: diff --git a/.github/workflows/emulator-system-tests-bigtable.yaml b/.github/workflows/emulator-system-tests-bigtable.yaml index d7ad2090997..79c632e7fc5 100644 --- a/.github/workflows/emulator-system-tests-bigtable.yaml +++ b/.github/workflows/emulator-system-tests-bigtable.yaml @@ -1,11 +1,6 @@ on: - push: - branches: - - main - paths: - - 'Bigtable/**' - - '.github/workflows/emulator-system-tests-bigtable.yaml' - - '.github/emulator/**' + release: + types: [published] pull_request: paths: - 'Bigtable/**' diff --git a/.github/workflows/emulator-system-tests-datastore.yaml b/.github/workflows/emulator-system-tests-datastore.yaml index dd7c0746997..4f46bddb892 100644 --- a/.github/workflows/emulator-system-tests-datastore.yaml +++ b/.github/workflows/emulator-system-tests-datastore.yaml @@ -1,11 +1,6 @@ on: - push: - branches: - - main - paths: - - 'Datastore/**' - - '.github/workflows/emulator-system-tests-datastore.yaml' - - '.github/emulator/**' + release: + types: [published] pull_request: paths: - 'Datastore/**' diff --git a/.github/workflows/emulator-system-tests-firestore.yaml b/.github/workflows/emulator-system-tests-firestore.yaml index 500602583c3..e550cea96f8 100644 --- a/.github/workflows/emulator-system-tests-firestore.yaml +++ b/.github/workflows/emulator-system-tests-firestore.yaml @@ -1,11 +1,6 @@ on: - push: - branches: - - main - paths: - - 'Firestore/**' - - '.github/workflows/emulator-system-tests-firestore.yaml' - - '.github/emulator/**' + release: + types: [published] pull_request: paths: - 'Firestore/**' diff --git a/.github/workflows/emulator-system-tests-pubsub.yaml b/.github/workflows/emulator-system-tests-pubsub.yaml index eb2649783a3..f632e536c19 100644 --- a/.github/workflows/emulator-system-tests-pubsub.yaml +++ b/.github/workflows/emulator-system-tests-pubsub.yaml @@ -1,11 +1,6 @@ on: - push: - branches: - - main - paths: - - 'PubSub/**' - - '.github/workflows/emulator-system-tests-pubsub.yaml' - - '.github/emulator/**' + release: + types: [published] pull_request: paths: - 'PubSub/**' diff --git a/.github/workflows/emulator-system-tests-spanner.yaml b/.github/workflows/emulator-system-tests-spanner.yaml index 0c399be6db5..f1e2a13d5b8 100644 --- a/.github/workflows/emulator-system-tests-spanner.yaml +++ b/.github/workflows/emulator-system-tests-spanner.yaml @@ -1,10 +1,6 @@ on: - push: - branches: - - main - paths: - - 'Spanner/**' - - '.github/workflows/emulator-system-tests-spanner.yaml' + release: + types: [published] pull_request: paths: - 'Spanner/**' diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 58f7a79ef11..89d9a6e3dae 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -1,7 +1,7 @@ name: CS Test Suite on: - push: - branches: [ main ] + release: + types: [published] pull_request: workflow_dispatch: diff --git a/.github/workflows/unit-tests.yaml b/.github/workflows/unit-tests.yaml index 897424201c9..f30b8d9f3af 100644 --- a/.github/workflows/unit-tests.yaml +++ b/.github/workflows/unit-tests.yaml @@ -1,7 +1,7 @@ name: Test Suite on: - push: - branches: [ main ] + release: + types: [published] pull_request: workflow_dispatch: @@ -102,7 +102,7 @@ jobs: extensions: grpc - name: Run Package Test Suites env: - PREFER_LOWEST: ${{ github.event.pull_request.user.login == 'release-please[bot]' && '--prefer-lowest-strict' || '--prefer-lowest' }} + PREFER_LOWEST: ${{ (github.event.pull_request.user.login == 'release-please[bot]' || github.event_name == 'release') && '--prefer-lowest-strict' || '--prefer-lowest' }} run: bash .github/run-package-tests.sh $PREFER_LOWEST test_dev_commands: From fd446cb80d620b809cc9b737f80ea4c77ae01ecf Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Fri, 16 Oct 2026 17:06:46 +0000 Subject: [PATCH 2/2] ci: pin shivammathur/cache-extensions version comment to 1.15.2 --- .github/workflows/conformance-tests-gax-showcase.yaml | 2 +- .github/workflows/unit-tests.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/conformance-tests-gax-showcase.yaml b/.github/workflows/conformance-tests-gax-showcase.yaml index a7a9476887c..c1a1ecf0cd3 100644 --- a/.github/workflows/conformance-tests-gax-showcase.yaml +++ b/.github/workflows/conformance-tests-gax-showcase.yaml @@ -21,7 +21,7 @@ jobs: - name: Setup cache environment id: extcache - uses: shivammathur/cache-extensions@22e24453af1bf3851994136f122ce065ab828a74 # v1 + uses: shivammathur/cache-extensions@22e24453af1bf3851994136f122ce065ab828a74 # 1.15.2 with: php-version: '8.2' extensions: grpc diff --git a/.github/workflows/unit-tests.yaml b/.github/workflows/unit-tests.yaml index f30b8d9f3af..e440b21a263 100644 --- a/.github/workflows/unit-tests.yaml +++ b/.github/workflows/unit-tests.yaml @@ -39,7 +39,7 @@ jobs: - name: Setup cache environment id: extcache - uses: shivammathur/cache-extensions@22e24453af1bf3851994136f122ce065ab828a74 # v1 + uses: shivammathur/cache-extensions@22e24453af1bf3851994136f122ce065ab828a74 # 1.15.2 with: php-version: ${{ matrix.php }} extensions: sodium, sysvshm, gmp, ${{ matrix.extensions }}