From 21cfc2cbc7658d24be1079a89d5935c8cc384d78 Mon Sep 17 00:00:00 2001 From: JoeWang1127 Date: Mon, 30 Sep 2024 22:59:28 +0000 Subject: [PATCH] parallal --- ...-library-generation-integration-tests.yaml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/.cloudbuild/library_generation/cloudbuild-library-generation-integration-tests.yaml b/.cloudbuild/library_generation/cloudbuild-library-generation-integration-tests.yaml index 2b20333815..fa20533f44 100644 --- a/.cloudbuild/library_generation/cloudbuild-library-generation-integration-tests.yaml +++ b/.cloudbuild/library_generation/cloudbuild-library-generation-integration-tests.yaml @@ -29,12 +29,10 @@ steps: -o type=image \ . waitFor: ["-"] - - id: run-integration-test - name: python:3.12 - entrypoint: bash - args: - - -c - - | + - id: install-deps + name: bash + script: + | # copy generator JAR apt-get update && apt-get install -y maven # install docker engine @@ -46,8 +44,15 @@ steps: pip install --upgrade pip pip install --require-hashes -r library_generation/requirements.txt pip install ./library_generation + waitFor: ["-"] + - id: run-integration-test + name: python:3.12 + entrypoint: bash + args: + - -c + - | python -m unittest ./library_generation/test/integration_tests.py - waitFor: ["library-generation-image-build"] + waitFor: ["library-generation-image-build", "install-deps"] options: # Builds ran by service accounts we need to either a) specify a logs bucket,