Skip to content

Commit

Permalink
[CI] Fix distributed pytorch and netty ut CI crash
Browse files Browse the repository at this point in the history
  • Loading branch information
ClawSeven committed Jul 30, 2024
1 parent dc28397 commit 93e0815
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/demo_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1040,9 +1040,9 @@ jobs:
- name: Check netty unit demo results
run: |
if [[ "${{ matrix.features }}" == "IO_Uring" ]]; then
docker exec ${{ github.job }} bash -c "cd /root/occlum/demos/netty_ut && cat netty-test-heap512m.log | grep '189 tests successful'";
docker exec ${{ github.job }} bash -c "cd /root/occlum/demos/netty_ut/occlum_netty_ut_instance && cat netty-test-heap512m.log | grep '189 tests successful'";
else
docker exec ${{ github.job }} bash -c "cd /root/occlum/demos/netty_ut && cat netty-test-heap512m.log | grep '190 tests successful'";
docker exec ${{ github.job }} bash -c "cd /root/occlum/demos/netty_ut/occlum_netty_ut_instance && cat netty-test-heap512m.log | grep '190 tests successful'";
fi
shell: bash

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/hw_mode_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1163,9 +1163,9 @@ jobs:
- name: Check netty unit demo results
run: |
if [[ "${{ matrix.self_runner[3] }}" == "IO_Uring" ]]; then
docker exec ${{ github.job }} bash -c "cd /root/occlum/demos/netty_ut && cat netty-test-heap512m.log | grep '189 tests successful'";
docker exec ${{ github.job }} bash -c "cd /root/occlum/demos/netty_ut/occlum_netty_ut_instance && cat netty-test-heap512m.log | grep '189 tests successful'";
else
docker exec ${{ github.job }} bash -c "cd /root/occlum/demos/netty_ut && cat netty-test-heap512m.log | grep '190 tests successful'";
docker exec ${{ github.job }} bash -c "cd /root/occlum/demos/netty_ut/occlum_netty_ut_instance && cat netty-test-heap512m.log | grep '190 tests successful'";
fi
shell: bash

Expand Down
2 changes: 1 addition & 1 deletion demos/pytorch/distributed/install_python_with_conda.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
[ -f Miniconda3-latest-Linux-x86_64.sh ] || wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
[ -d miniconda ] || bash ./Miniconda3-latest-Linux-x86_64.sh -b -p $script_dir/miniconda
$script_dir/miniconda/bin/conda create --prefix $script_dir/python-occlum -y \
python=3.8.10 numpy=1.21.5 scipy=1.7.3 scikit-learn=1.0 pandas=1.3 \
python=3.8.10 numpy=1.22.3 scipy=1.7.3 scikit-learn=1.0 pandas=1.3 \
Cython pytorch torchvision -c pytorch

# Remove miniconda and installation scripts
Expand Down

0 comments on commit 93e0815

Please sign in to comment.