diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 19bf71cc..60aeb26c 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -29,7 +29,7 @@ jobs: name: github-pages url: ${{ steps.deployment.outputs.page_url }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Setup Pages uses: actions/configure-pages@v5 diff --git a/CAPI/python/requirements.txt b/CAPI/python/requirements.txt index c187d411..b9abd196 100644 --- a/CAPI/python/requirements.txt +++ b/CAPI/python/requirements.txt @@ -1,3 +1,3 @@ grpcio==1.63.0 -grpcio-tools==1.62.2 +grpcio-tools==1.63.0 numpy diff --git a/CAPI/python_exp/requirements.txt b/CAPI/python_exp/requirements.txt index c187d411..b9abd196 100644 --- a/CAPI/python_exp/requirements.txt +++ b/CAPI/python_exp/requirements.txt @@ -1,3 +1,3 @@ grpcio==1.63.0 -grpcio-tools==1.62.2 +grpcio-tools==1.63.0 numpy diff --git a/dependency/shell/run.sh b/dependency/shell/run.sh index 6288af98..61ab85bc 100644 --- a/dependency/shell/run.sh +++ b/dependency/shell/run.sh @@ -51,9 +51,9 @@ fi function retry_command { local command="$1" - local max_attempts=10 + local max_attempts=5 local attempt_num=1 - local sleep_seconds=5 + local sleep_seconds=10 while [ $attempt_num -le $max_attempts ]; do echo "Attempt $attempt_num / $max_attempts to run command: $command" @@ -130,11 +130,11 @@ elif [ "$TERMINAL" = "CLIENT" ]; then cp -r $python_main_dir $python_main_dir$i cp -f ./$code_name.py $python_main_dir$i/PyAPI/AI.py command="nice -0 python3 $python_main_dir$i/PyAPI/main.py -I $CONNECT_IP -P $PORT -t $k -p $i > $playback_dir/team$k-$code_name.log 2>&1 &" - retry_command "$command" > $playback_dir/client$k.log & + retry_command "$command" > $playback_dir/client$k-$i.log & elif [ -f "./$code_name" ]; then echo "find ./$code_name" - command="nice -0 ./$code_name -I $CONNECT_IP -P $PORT -t $k -p $i > $playback_dir/team$k-$codename.log 2>&1 &" - retry_command "$command" > $playback_dir/client$k.log & + command="nice -0 ./$code_name -I $CONNECT_IP -P $PORT -t $k -p $i > $playback_dir/team$k-$code_name.log 2>&1 &" + retry_command "$command" > $playback_dir/client$k-$i.log & else echo "ERROR. $code_name is not found." fi @@ -145,11 +145,11 @@ elif [ "$TERMINAL" = "CLIENT" ]; then cp -r $python_main_dir $python_main_dir$i cp -f ./$code_name.py $python_main_dir$i/PyAPI/AI.py command="nice -0 python3 $python_main_dir$i/PyAPI/main.py -I $CONNECT_IP -P $PORT -t $k -p $i > $playback_dir/team$k-$code_name.log 2>&1 &" - retry_command "$command" > $playback_dir/client$k.log & + retry_command "$command" > $playback_dir/client$k-$i.log & elif [ -f "./$code_name" ]; then echo "find ./$code_name" command="nice -0 ./$code_name -I $CONNECT_IP -P $PORT -t $k -p $i > $playback_dir/team$k-$code_name.log 2>&1 &" - retry_command "$command" > $playback_dir/client$k.log & + retry_command "$command" > $playback_dir/client$k-$i.log & else echo "ERROR. $code_name is not found." fi diff --git a/installer/installer.csproj b/installer/installer.csproj index 5f1a1213..0dcc3218 100755 --- a/installer/installer.csproj +++ b/installer/installer.csproj @@ -87,7 +87,7 @@ - +