From 4102386ac606afd779211e8e2735be4c4f2afc1d Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Wed, 5 Oct 2022 11:16:33 -0400 Subject: [PATCH] Reduce targets for cloudbuild smoketest (#23034) * Reduce targets for cloudbuild * Restyle * Add back missing build command * Make smoke tests runnable in cloudbuild-local after git changes (need also git lfs) * Make all directories safe --- integrations/cloudbuild/smoke-test.yaml | 64 ++++++++++++++++++++----- 1 file changed, 53 insertions(+), 11 deletions(-) diff --git a/integrations/cloudbuild/smoke-test.yaml b/integrations/cloudbuild/smoke-test.yaml index 1f855431754a1e..dd35d911e03997 100644 --- a/integrations/cloudbuild/smoke-test.yaml +++ b/integrations/cloudbuild/smoke-test.yaml @@ -1,10 +1,11 @@ steps: - - name: gcr.io/cloud-builders/git + - name: "connectedhomeip/chip-build-vscode:0.6.02" + entrypoint: 'bash' args: - - submodule - - update - - "--init" - - "--recursive" + - '-c' + - | + git config --global --add safe.directory "*" + git submodule update --init --recursive id: Submodules - name: "connectedhomeip/chip-build-vscode:0.6.02" env: @@ -27,9 +28,14 @@ steps: - PW_ENVIRONMENT_ROOT=/pwenv args: - >- - ./scripts/build/build_examples.py --enable-flashbundle - --target-glob '*-m5stack-*' build --create-archives - /workspace/artifacts/ + ./scripts/build/build_examples.py + --enable-flashbundle + --target esp32-m5stack-all-clusters-ipv6only + --target esp32-m5stack-all-clusters-minimal-rpc-ipv6only + --target esp32-m5stack-all-clusters-rpc + --target esp32-m5stack-ota-requestor + build + --create-archives /workspace/artifacts/ waitFor: - Bootstrap entrypoint: ./scripts/run_in_build_env.sh @@ -77,9 +83,45 @@ steps: - PW_ENVIRONMENT_ROOT=/pwenv args: - >- - ./scripts/build/build_examples.py --enable-flashbundle - --target-glob 'linux-*' --skip-target-glob '*-tests*' build - --create-archives /workspace/artifacts/ + ./scripts/build/build_examples.py + --enable-flashbundle + --target linux-arm64-clang-all-clusters + --target linux-arm64-clang-all-clusters-app-nodeps-ipv6only + --target linux-arm64-clang-all-clusters-minimal-ipv6only + --target linux-arm64-clang-bridge-ipv6only + --target linux-arm64-clang-chip-tool-ipv6only + --target linux-arm64-clang-chip-tool-nodeps-ipv6only + --target linux-arm64-clang-dynamic-bridge-ipv6only + --target linux-arm64-clang-light-rpc-ipv6only + --target linux-arm64-clang-lock-ipv6only + --target linux-arm64-clang-minmdns + --target linux-arm64-clang-ota-provider-nodeps-ipv6only + --target linux-arm64-clang-ota-requestor-nodeps-ipv6only + --target linux-arm64-clang-python-bindings + --target linux-arm64-clang-shell-ipv6only + --target linux-arm64-clang-thermostat-ipv6only + --target linux-arm64-clang-tv-app-ipv6only + --target linux-arm64-clang-tv-casting-app-ipv6only + --target linux-x64-address-resolve-tool + --target linux-x64-all-clusters-app-nodeps-ipv6only + --target linux-x64-all-clusters-coverage + --target linux-x64-bridge-ipv6only + --target linux-x64-chip-cert + --target linux-x64-chip-tool-ipv6only + --target linux-x64-dynamic-bridge-ipv6only + --target linux-x64-light-rpc-ipv6only + --target linux-x64-lock-ipv6only + --target linux-x64-minmdns-ipv6only + --target linux-x64-ota-provider-ipv6only + --target linux-x64-ota-requestor-ipv6only + --target linux-x64-python-bindings + --target linux-x64-rpc-console + --target linux-x64-shell-ipv6only + --target linux-x64-thermostat-ipv6only + --target linux-x64-tv-app-ipv6only + --target linux-x64-tv-casting-app-ipv6only + build + --create-archives /workspace/artifacts/ waitFor: - Bootstrap - EFR32