From bce0ea65fe153f37a21dfdd6734b3722d52c831f Mon Sep 17 00:00:00 2001 From: William Cheng Date: Thu, 16 Oct 2025 14:50:41 +0800 Subject: [PATCH] CircleCI: clean up unused tests/setup (#22158) * clean up circleci tests * ignore .angular * trigger build failure * Revert "trigger build failure" This reverts commit ee228266b1452d3fbf4c42a8cc5d2b1175f8976a. --- .gitignore | 2 ++ CI/circle_parallel.sh | 81 ++++--------------------------------------- 2 files changed, 9 insertions(+), 74 deletions(-) diff --git a/.gitignore b/.gitignore index 3e2ff899f83b..203a85a3de8b 100644 --- a/.gitignore +++ b/.gitignore @@ -49,6 +49,8 @@ nb-configuration.xml *.xml~ *.t~ +**/.angular + /target /generated-files test-output/ diff --git a/CI/circle_parallel.sh b/CI/circle_parallel.sh index 160c6e912046..19ba36cee69f 100755 --- a/CI/circle_parallel.sh +++ b/CI/circle_parallel.sh @@ -11,43 +11,15 @@ export NODE_ENV=test if [ "$NODE_INDEX" = "1" ]; then echo "Running node $NODE_INDEX ..." - java -version sudo apt-get -y install cpanminus - # install rust - curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y - source "$HOME/.cargo/env" - echo "Testing perl" (cd samples/client/petstore/perl && /bin/bash ./test.bash) - echo "Testing ruby" - (cd samples/client/petstore/ruby && mvn integration-test) - (cd samples/client/petstore/ruby-faraday && mvn integration-test) - (cd samples/client/petstore/ruby-httpx && mvn integration-test) - (cd samples/client/petstore/ruby-autoload && mvn integration-test) - - echo "Testing rust" - (cd samples/server/petstore/rust-axum && mvn integration-test) elif [ "$NODE_INDEX" = "2" ]; then - echo "Running node $NODE_INDEX to test Go" - # install haskell - #curl -sSLk https://get.haskellstack.org/ | sh - #stack upgrade - #stack --version - - # install curl - #sudo apt-get -y build-dep libcurl4-gnutls-dev - #sudo apt-get -y install libcurl4-gnutls-dev - - # Install golang version 1.18 - go version - sudo mkdir /usr/local/go1.18 - wget -c https://dl.google.com/go/go1.18.linux-amd64.tar.gz -O - | sudo tar -xz -C /usr/local/go1.18 - export PATH="/usr/local/go1.18/go/bin:$PATH" - go version + echo "Running node $NODE_INDEX to test cpp-restsdk" # install cpprestsdk sudo apt-get install libcpprest-dev @@ -62,54 +34,15 @@ elif [ "$NODE_INDEX" = "3" ]; then echo "Running node $NODE_INDEX ... " - ## Install node@stable (for angular 6) - #set +e - #curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash - #export NVM_DIR="/opt/circleci/.nvm" - #[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" - ##nvm install stable - ## install v16 instead of the latest stable version - #nvm install 18 - #nvm alias default 18 - #node --version - - ## Each step uses the same `$BASH_ENV`, so need to modify it - #echo 'export NVM_DIR="/opt/circleci/.nvm"' >> $BASH_ENV - #echo "[ -s \"$NVM_DIR/nvm.sh\" ] && . \"$NVM_DIR/nvm.sh\"" >> $BASH_ENV - - #(cd samples/client/others/typescript-angular && mvn integration-test) - #(cd samples/client/petstore/typescript-angular-v12-provided-in-root && mvn integration-test) - #(cd samples/client/petstore/typescript-angular-v13-provided-in-root && mvn integration-test) - #(cd samples/client/petstore/typescript-angular-v14-provided-in-root && mvn integration-test) - #(cd samples/client/petstore/typescript-angular-v15-provided-in-root && mvn integration-test) - #(cd samples/client/petstore/typescript-angular-v16-provided-in-root && mvn integration-test) - #(cd samples/client/petstore/typescript-angular-v17-provided-in-root && mvn integration-test) - #(cd samples/client/petstore/typescript-angular-v18-provided-in-root && mvn integration-test) - #(cd samples/client/petstore/typescript-angular-v19-provided-in-root && mvn integration-test) - #(cd samples/openapi3/client/petstore/typescript/builds/default && mvn integration-test) - #(cd samples/openapi3/client/petstore/typescript/tests/default && mvn integration-test) - #(cd samples/openapi3/client/petstore/typescript/builds/jquery && mvn integration-test) - #(cd samples/openapi3/client/petstore/typescript/tests/jquery && mvn integration-test) - #(cd samples/openapi3/client/petstore/typescript/builds/object_params && mvn integration-test) - #(cd samples/openapi3/client/petstore/typescript/tests/object_params && mvn integration-test) - #(cd samples/openapi3/client/petstore/typescript/builds/inversify && mvn integration-test) - #(cd samples/openapi3/client/petstore/typescript/tests/inversify && mvn integration-test) - ##(cd samples/openapi3/client/petstore/typescript/tests/deno && mvn integration-test) - #(cd samples/openapi3/client/petstore/typescript/builds/browser && mvn integration-test) - #(cd samples/openapi3/client/petstore/typescript/tests/browser && mvn integration-test) - #(cd samples/openapi3/client/petstore/typescript/builds/nullable-enum && mvn integration-test) - #(cd samples/client/petstore/typescript-fetch/builds/default && mvn integration-test) - #(cd samples/client/petstore/typescript-fetch/builds/es6-target && mvn integration-test) - #(cd samples/client/petstore/typescript-fetch/builds/with-npm-version && mvn integration-test) - #(cd samples/client/petstore/typescript-fetch/tests/default && mvn integration-test) - #(cd samples/client/petstore/typescript-node/npm && mvn integration-test) - #(cd samples/client/petstore/typescript-rxjs/builds/with-npm-version && mvn integration-test) - #(cd samples/client/petstore/typescript-axios/builds/with-npm-version && mvn integration-test) - #(cd samples/client/petstore/typescript-axios/tests/default && mvn integration-test) - #(cd samples/client/petstore/typescript-axios/tests/with-complex-headers && mvn integration-test) + echo "Testing ruby" + (cd samples/client/petstore/ruby && mvn integration-test) + (cd samples/client/petstore/ruby-faraday && mvn integration-test) + (cd samples/client/petstore/ruby-httpx && mvn integration-test) + (cd samples/client/petstore/ruby-autoload && mvn integration-test) else echo "Running node $NODE_INDEX ..." java -version + ./mvnw clean install fi