Skip to content

Commit

Permalink
continue to fix Asan/Benchmark CI issue #968
Browse files Browse the repository at this point in the history
  • Loading branch information
w-gc committed Jan 21, 2025
1 parent 5d97ebe commit ba39b35
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .circleci/asan-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions .circleci/benchmark-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 >>
Expand Down
4 changes: 2 additions & 2 deletions .circleci/continue-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 <<parameters.targets>>; if [ $? -eq 0 ]; then
bazel test <<parameters.extra_bazel_test_args>> <<parameters.targets>> -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
Expand Down

0 comments on commit ba39b35

Please sign in to comment.