From 54b4b7fbb72045afc0e5be78acf2e5f92548b35f Mon Sep 17 00:00:00 2001 From: Noah Dietz Date: Mon, 18 May 2026 23:01:38 +0000 Subject: [PATCH] chore(ci): remove legacy generate test --- .../librarian/build-request.json | 37 -------------- .../librarian/generate-request.json | 36 -------------- cloudbuild-test.yaml | 49 +------------------ 3 files changed, 2 insertions(+), 120 deletions(-) delete mode 100644 .generator/test-resources/librarian/build-request.json delete mode 100644 .generator/test-resources/librarian/generate-request.json diff --git a/.generator/test-resources/librarian/build-request.json b/.generator/test-resources/librarian/build-request.json deleted file mode 100644 index d20c0af85a97..000000000000 --- a/.generator/test-resources/librarian/build-request.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "id": "google-cloud-language", - "version": "2.17.2", - "last_generated_commit": "97a83d76a09a7f6dcab43675c87bdfeb5bcf1cb5", - "apis": [ - { - "path": "google/cloud/language/v1beta2", - "service_config": "language_v1beta2.yaml", - "status": "" - }, - { - "path": "google/cloud/language/v2", - "service_config": "language_v2.yaml", - "status": "" - }, - { - "path": "google/cloud/language/v1", - "service_config": "language_v1.yaml", - "status": "" - } - ], - "source_roots": [ - "packages/google-cloud-language" - ], - "preserve_regex": [ - ".OwlBot.yaml", - "packages/google-cloud-language/CHANGELOG.md", - "docs/CHANGELOG.md", - "samples/README.txt", - "tar.gz", - "scripts/client-post-processing" - ], - "remove_regex": [ - "packages/google-cloud-language" - ], - "tag_format": "{id}-v{version}" -} \ No newline at end of file diff --git a/.generator/test-resources/librarian/generate-request.json b/.generator/test-resources/librarian/generate-request.json deleted file mode 100644 index e176c08665e8..000000000000 --- a/.generator/test-resources/librarian/generate-request.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "id": "google-cloud-language", - "version": "2.17.2", - "last_generated_commit": "97a83d76a09a7f6dcab43675c87bdfeb5bcf1cb5", - "apis": [ - { - "path": "google/cloud/language/v1beta2", - "service_config": "language_v1beta2.yaml", - "status": "" - }, - { - "path": "google/cloud/language/v2", - "service_config": "language_v2.yaml", - "status": "" - }, - { - "path": "google/cloud/language/v1", - "service_config": "language_v1.yaml", - "status": "" - } - ], - "source_roots": [ - "packages/google-cloud-language" - ], - "preserve_regex": [ - ".OwlBot.yaml", - "packages/google-cloud-language/CHANGELOG.md", - "docs/CHANGELOG.md", - "samples/README.txt", - "tar.gz", - "scripts/client-post-processing" - ], - "remove_regex": [ - "packages/google-cloud-language" - ] -} \ No newline at end of file diff --git a/cloudbuild-test.yaml b/cloudbuild-test.yaml index bbcd7cb8e1c4..164359ebd5ed 100644 --- a/cloudbuild-test.yaml +++ b/cloudbuild-test.yaml @@ -16,7 +16,8 @@ # Reduce this timeout by moving the installation of Python runtimes to a separate base image timeout: 7200s # 2 hours for the first uncached run, can be lowered later. steps: - # Step 1: Build the generator image using Kaniko and push it to the registry. + # Build the generator image using Kaniko and push it to the registry as a + # verification that the image builds successfully. - name: 'gcr.io/kaniko-project/executor:latest' id: 'build-generator' args: @@ -31,52 +32,6 @@ steps: # Sets a time-to-live for cache layers - '--cache-ttl=24h' - # Step 2: Clone the googleapis repository into the workspace. - # This runs in parallel with the image build. - - name: 'gcr.io/cloud-builders/git' - id: 'clone-googleapis' - args: ['clone', '--depth', '1', 'https://github.com/googleapis/googleapis.git', '/workspace/googleapis'] - waitFor: ['-'] - - # Step 3: Run the generator to generate the library code. - - name: 'gcr.io/cloud-builders/docker' - id: 'generate-library' - args: - - 'run' - - '--rm' - # Mount the cloned googleapis repo from the workspace. - - '-v' - - '/workspace/googleapis:/app/source' - # Mount the generator-input from this repo's workspace. - - '-v' - - '/workspace/.librarian/generator-input:/app/input' - # Mount the test-resources/librarian from this repo's workspace as the librarian dir. - - '-v' - - '/workspace/.generator/test-resources/librarian:/app/librarian' - # The image that was built in the first step. - - 'gcr.io/$PROJECT_ID/python-librarian-generator:latest' - # The command to execute inside the container. - - 'generate' - waitFor: ['build-generator', 'clone-googleapis'] - - # Step 4: Run the generator to test the library code. - - name: 'gcr.io/cloud-builders/docker' - id: 'build-library' - waitFor: ['generate-library'] - args: - - 'run' - - '--rm' - # Mount the test-resources/librarian from this repo's workspace as the librarian dir. - - '-v' - - '/workspace/.generator/test-resources/librarian:/app/librarian' - # We run the `build` command against the checked in google-cloud-language package. - - '-v' - - '/workspace:/app/repo' - # The image that was built in the first step. - - 'gcr.io/$PROJECT_ID/python-librarian-generator:latest' - # The command to execute inside the container. - - 'build' - options: default_logs_bucket_behavior: REGIONAL_USER_OWNED_BUCKET machineType: E2_HIGHCPU_32