From ba39b354b09a2f76f524f03ac86cd15428829c14 Mon Sep 17 00:00:00 2001 From: w-gc <25614556+w-gc@users.noreply.github.com> Date: Tue, 21 Jan 2025 19:23:53 +0800 Subject: [PATCH] continue to fix Asan/Benchmark CI issue #968 --- .circleci/asan-config.yml | 4 ++-- .circleci/benchmark-config.yml | 2 ++ .circleci/config.yml | 2 ++ .circleci/continue-config.yml | 4 ++-- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.circleci/asan-config.yml b/.circleci/asan-config.yml index e318b145..561f259d 100644 --- a/.circleci/asan-config.yml +++ b/.circleci/asan-config.yml @@ -54,13 +54,13 @@ jobs: declare -i status0=0 declare -i status1=0 mkdir test-results - mkdir test-testlogs + mkdir bazel-testlogs pushd src bazel test //... --features=asan --test_timeout=500 --ui_event_filters=-info,-debug,-warning --test_output=errors | tee test_result.log; status0=${PIPESTATUS[0]} sh ../../devtools/rename-junit-xml.sh cp -r test-results/ ../test-results/ - cp -r test-testlogs/ ../test-testlogs/ + cp -r bazel-testlogs/ ../bazel-testlogs/ popd # TODO diff --git a/.circleci/benchmark-config.yml b/.circleci/benchmark-config.yml index 2cacdf87..49174d01 100644 --- a/.circleci/benchmark-config.yml +++ b/.circleci/benchmark-config.yml @@ -47,6 +47,8 @@ jobs: "python3 -m pip install -U pip && \ python3 -m pip install spu && \ cd /home/admin/dev/ && \ + python3 -m pip install --upgrade pip --index-url https://mirrors.sustech.edu.cn/pypi/web/simple && \ + python3 -m pip config set global.index-url https://mirrors.sustech.edu.cn/pypi/web/simple && \ python3 -m pip install -r requirements-dev.txt && \ export PYTHONPATH="${PWD}:$PYTHONPATH" && \ bash .circleci/run-nn.sh" | tee benchmark_results.log diff --git a/.circleci/config.yml b/.circleci/config.yml index c4617cd9..dabcfbdc 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -79,6 +79,8 @@ workflows: requirements.txt build-and-run true requirements-dev.txt build-and-run true .circleci/continue-config.yml build-and-run true + .circleci/asan-config.yml run-asan true + .circleci/benchmark-config.yml run-schedule true - lint benchmark-workflow: when: << pipeline.parameters.run-schedule >> diff --git a/.circleci/continue-config.yml b/.circleci/continue-config.yml index 37c17493..96afa09c 100644 --- a/.circleci/continue-config.yml +++ b/.circleci/continue-config.yml @@ -93,14 +93,14 @@ commands: declare -i status0=0 declare -i status1=0 mkdir test-results - mkdir test-testlogs + mkdir bazel-testlogs pushd src bazel query <>; if [ $? -eq 0 ]; then bazel test <> <> -c opt --ui_event_filters=-info,-debug,-warning --test_output=errors | tee test_result.log; status0=${PIPESTATUS[0]} sh ../../devtools/rename-junit-xml.sh cp -r test-results/ ../test-results/ - cp -r test-testlogs/ ../test-testlogs/ + cp -r bazel-testlogs/ ../bazel-testlogs/ fi popd