diff --git a/.circleci/asan-config.yml b/.circleci/asan-config.yml index 6a413b5d..b67c889d 100644 --- a/.circleci/asan-config.yml +++ b/.circleci/asan-config.yml @@ -47,13 +47,24 @@ jobs: name: Checkout devtools command: git clone https://github.com/secretflow/devtools.git ../devtools - run: - name: "test" + name: "test-libspu" command: | set +e declare -i test_status cd src && bazel test //... --features=asan --test_timeout=500 --ui_event_filters=-info,-debug,-warning --test_output=errors | tee test_result.log; test_status=${PIPESTATUS[0]} - cd - && bazel test //... --features=asan --test_timeout=500 --ui_event_filters=-info,-debug,-warning --test_output=errors | tee -a test_result.log; test_status=${PIPESTATUS[0]} + + sh ../devtools/rename-junit-xml.sh + find bazel-testlogs/ -type f -name "test.log" -print0 | xargs -0 tar -cvzf test_logs.tar.gz + + exit ${test_status} + - run: + name: "test-spu" + command: | + set +e + declare -i test_status + + bazel test //... --features=asan --test_timeout=500 --ui_event_filters=-info,-debug,-warning --test_output=errors | tee test_result.log; test_status=${PIPESTATUS[0]} sh ../devtools/rename-junit-xml.sh find bazel-testlogs/ -type f -name "test.log" -print0 | xargs -0 tar -cvzf test_logs.tar.gz diff --git a/.circleci/continue-config.yml b/.circleci/continue-config.yml index 41cb770b..489b71f8 100644 --- a/.circleci/continue-config.yml +++ b/.circleci/continue-config.yml @@ -66,15 +66,26 @@ commands: cd src && bazel build <> -c opt --ui_event_filters=-info,-debug,-warning # build module spu - cd - && bazel build //:spu_wheel <> -c opt --ui_event_filters=-info,-debug,-warning + cd - && bazel build <> -c opt --ui_event_filters=-info,-debug,-warning - run: - name: "test" + name: "test-libspu" command: | set +e declare -i test_status cd src && bazel test <> <> -c opt --ui_event_filters=-info,-debug,-warning --test_output=errors | tee test_result.log; test_status=${PIPESTATUS[0]} - cd - && bazel test <> <> -c opt --ui_event_filters=-info,-debug,-warning --test_output=errors | tee -a test_result.log; test_status=${PIPESTATUS[0]} + + sh ../devtools/rename-junit-xml.sh + find bazel-testlogs/ -type f -name "test.log" -print0 | xargs -0 tar -cvzf test_logs.tar.gz + + exit ${test_status} + - run: + name: "test-spu" + command: | + set +e + declare -i test_status + + bazel test <> <> -c opt --ui_event_filters=-info,-debug,-warning --test_output=errors | tee test_result.log; test_status=${PIPESTATUS[0]} sh ../devtools/rename-junit-xml.sh find bazel-testlogs/ -type f -name "test.log" -print0 | xargs -0 tar -cvzf test_logs.tar.gz