Skip to content

Commit

Permalink
(chore) update *.bazel.lock and version (#1005)
Browse files Browse the repository at this point in the history
  • Loading branch information
w-gc authored Feb 25, 2025
1 parent 6ba42f0 commit 1574ba9
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 21 deletions.
13 changes: 11 additions & 2 deletions .circleci/asan-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,15 @@ jobs:
echo "Canceling workflow as too much time has elapsed"
curl -X POST --header "Content-Type: application/json" "https://circleci.com/api/v2/workflow/${CIRCLE_WORKFLOW_ID}/cancel?circle-token=${BUILD_TIMER_TOKEN}"
- checkout
- run:
name: Install dependencies
command: |
if [ "`uname -m`" == "x86_64" ]; then
wget https://github.com/bazelbuild/bazelisk/releases/download/v1.25.0/bazelisk-amd64.deb && dpkg -i bazelisk-amd64.deb
fi
if [ "`uname -m`" == "aarch64" ]; then
wget https://github.com/bazelbuild/bazelisk/releases/download/v1.25.0/bazelisk-arm64.deb && dpkg -i bazelisk-arm64.deb
fi
- run:
name: Checkout devtools
command: git clone https://github.com/secretflow/devtools.git ../devtools
Expand All @@ -57,14 +66,14 @@ jobs:
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]}
bazelisk 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 bazel-testlogs/ ../bazel-testlogs/
popd
# TODO
# bazel test //... --features=asan --test_timeout=500 --ui_event_filters=-info,-debug,-warning --test_output=errors | tee -a test_result.log; status1=${PIPESTATUS[0]}
# bazelisk test //... --features=asan --test_timeout=500 --ui_event_filters=-info,-debug,-warning --test_output=errors | tee -a test_result.log; status1=${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
Expand Down
36 changes: 27 additions & 9 deletions .circleci/continue-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,18 +69,18 @@ commands:
declare -i status1=0
declare -i status2=0
bazel --version && python3 --version && bazel run //:requirements-dev.update; status0=${PIPESTATUS[0]}
bazelisk --version && python3 --version && bazelisk run //:requirements-dev.update; status0=${PIPESTATUS[0]}
# build module spulib
pushd src
bazel query <<parameters.targets>>; if [ $? -eq 0 ]; then
bazel build <<parameters.targets>> -c opt --ui_event_filters=-info,-debug,-warning; status1=${PIPESTATUS[0]}
bazelisk query <<parameters.targets>>; if [ $? -eq 0 ]; then
bazelisk build <<parameters.targets>> -c opt --ui_event_filters=-info,-debug,-warning; status1=${PIPESTATUS[0]}
fi
popd
# build module spu
bazel query <<parameters.targets>>; if [ $? -eq 0 ]; then
bazel build <<parameters.targets>> -c opt --ui_event_filters=-info,-debug,-warning; status2=${PIPESTATUS[0]}
bazelisk query <<parameters.targets>>; if [ $? -eq 0 ]; then
bazelisk build <<parameters.targets>> -c opt --ui_event_filters=-info,-debug,-warning; status2=${PIPESTATUS[0]}
fi
status=$((${status0} + ${status1} + ${status2}))
Expand All @@ -96,16 +96,16 @@ commands:
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]}
bazelisk query <<parameters.targets>>; if [ $? -eq 0 ]; then
bazelisk 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 bazel-testlogs/ ../bazel-testlogs/
fi
popd
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 -a test_result.log; status1=${PIPESTATUS[0]}
bazelisk query <<parameters.targets>>; if [ $? -eq 0 ]; then
bazelisk test <<parameters.extra_bazel_test_args>> <<parameters.targets>> -c opt --ui_event_filters=-info,-debug,-warning --test_output=errors | tee -a test_result.log; status1=${PIPESTATUS[0]}
sh ../devtools/rename-junit-xml.sh
fi
Expand All @@ -132,6 +132,15 @@ jobs:
# See: https://circleci.com/docs/2.0/configuration-reference/#steps
steps:
- checkout
- run:
name: Install dependencies
command: |
if [ "`uname -m`" == "x86_64" ]; then
wget https://github.com/bazelbuild/bazelisk/releases/download/v1.25.0/bazelisk-amd64.deb && dpkg -i bazelisk-amd64.deb
fi
if [ "`uname -m`" == "aarch64" ]; then
wget https://github.com/bazelbuild/bazelisk/releases/download/v1.25.0/bazelisk-arm64.deb && dpkg -i bazelisk-arm64.deb
fi
- restore_cache:
name: restore pip cache
key: &pip-cache pip-{{ arch }}-{{ .Branch }}-{{ checksum "requirements.txt" }}-{{ checksum "requirements-dev.txt" }}
Expand All @@ -147,6 +156,15 @@ jobs:
resource_class: 2xlarge+
steps:
- checkout
- run:
name: Install dependencies
command: |
if [ "`uname -m`" == "x86_64" ]; then
wget https://github.com/bazelbuild/bazelisk/releases/download/v1.25.0/bazelisk-amd64.deb && dpkg -i bazelisk-amd64.deb
fi
if [ "`uname -m`" == "aarch64" ]; then
wget https://github.com/bazelbuild/bazelisk/releases/download/v1.25.0/bazelisk-arm64.deb && dpkg -i bazelisk-arm64.deb
fi
- run:
name: Install extra deps
command: |
Expand Down
13 changes: 11 additions & 2 deletions .circleci/release-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ commands:
conda activate build
if [ ! -e "/usr/bin/python3" ]; then ln -s `which python3` /usr/bin/python3; fi
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 >>
cd src && bazelisk build //... -c opt --ui_event_filters=-info,-debug,-warning
cd - && bazelisk 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 Expand Up @@ -95,6 +95,15 @@ jobs:
executor: <<parameters.executor>>
steps:
- checkout
- run:
name: Install dependencies
command: |
if [ "`uname -m`" == "x86_64" ]; then
wget https://github.com/bazelbuild/bazelisk/releases/download/v1.25.0/bazelisk-amd64.deb && dpkg -i bazelisk-amd64.deb
fi
if [ "`uname -m`" == "aarch64" ]; then
wget https://github.com/bazelbuild/bazelisk/releases/download/v1.25.0/bazelisk-arm64.deb && dpkg -i bazelisk-arm64.deb
fi
- build_and_upload:
python_ver: <<parameters.python_ver>>

Expand Down
8 changes: 4 additions & 4 deletions MODULE.bazel.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions src/MODULE.bazel.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1574ba9

Please # to comment.