Skip to content

Commit

Permalink
(chore) refine circle ci scripts (#964)
Browse files Browse the repository at this point in the history
  • Loading branch information
w-gc authored Jan 9, 2025
1 parent 4d470a2 commit b901e2c
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 8 deletions.
10 changes: 9 additions & 1 deletion .circleci/asan-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,17 @@ jobs:
command: |
set +e
declare -i test_status
bazel test //libspu/... --features=asan --test_timeout=500 --ui_event_filters=-info,-debug,-warning --test_output=errors | tee test_result.log; test_status=${PIPESTATUS[0]}
pushd 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]}
sh ../../devtools/rename-junit-xml.sh
popd
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
cp -r src/test-results/ test-results/
cp -r src/test-testlogs/ test-testlogs/
find bazel-testlogs/ -type f -name "test.log" -print0 | xargs -0 tar -cvzf test_logs.tar.gz
exit ${test_status}
Expand Down
19 changes: 17 additions & 2 deletions .circleci/continue-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,30 @@ commands:
../devtools/bazel_cache_setup.py --in_file=../gcs.data --out_file=../gcs.json --min_download
- run:
name: "build"
command: bazel --version && python3 --version && bazel run //:requirements-dev.update && bazel build <<parameters.targets>> -c opt --ui_event_filters=-info,-debug,-warning
command: |
bazel --version && python3 --version && bazel run //:requirements-dev.update
# build module spulib
cd src && bazel build <<parameters.targets>> -c opt --ui_event_filters=-info,-debug,-warning
# build module spu
cd - && bazel build <<parameters.targets>> -c opt --ui_event_filters=-info,-debug,-warning
- run:
name: "test"
command: |
set +e
declare -i test_status
bazel test <<parameters.extra_bazel_test_args>> <<parameters.targets>> -c opt --ui_event_filters=-info,-debug,-warning --test_output=errors| tee test_result.log; test_status=${PIPESTATUS[0]}
pushd src
bazel test <<parameters.extra_bazel_test_args>> <<parameters.targets>> -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
popd
bazel test <<parameters.extra_bazel_test_args>> <<parameters.targets>> -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
cp -r src/test-results/ test-results/
cp -r src/test-testlogs/ test-testlogs/
find bazel-testlogs/ -type f -name "test.log" -print0 | xargs -0 tar -cvzf test_logs.tar.gz
exit ${test_status}
Expand Down
3 changes: 2 additions & 1 deletion .circleci/release-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ commands:
conda activate build
if [ ! -e "/usr/bin/python3" ]; then ln -s `which python3` /usr/bin/python3; fi
bazel build //:spu_wheel -c opt --@rules_python//python/config_settings:python_version=<< parameters.python_ver >>
cd src && bazel build //... -c opt --ui_event_filters=-info,-debug,-warning
cd - && bazel build //:spu_wheel -c opt --@rules_python//python/config_settings:python_version=<< parameters.python_ver >>
python3 -m pip install twine
ls bazel-bin/spu*.whl
Expand Down
2 changes: 1 addition & 1 deletion MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

module(
name = "spu",
version = "0.9.4.dev20250108",
version = "0.9.4.dev20250109",
compatibility_level = 1,
)

Expand Down
2 changes: 1 addition & 1 deletion src/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

module(
name = "spulib",
version = "0.9.4.dev20250108",
version = "0.9.4.dev20250109",
compatibility_level = 1,
)

Expand Down
2 changes: 1 addition & 1 deletion src/libspu/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#define SPU_VERSION "0.9.4.dev20250108"
#define SPU_VERSION "0.9.4.dev20250109"

#include <string_view>

Expand Down
2 changes: 1 addition & 1 deletion version.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.

SPU_VERSION = "0.9.4.dev20250108"
SPU_VERSION = "0.9.4.dev20250109"

0 comments on commit b901e2c

Please sign in to comment.