Skip to content
This repository has been archived by the owner on May 3, 2024. It is now read-only.

Commit

Permalink
bash fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptoryda committed Mar 10, 2024
1 parent 7f750aa commit fddeeae
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions .github/integrationTestsScripts/wakeUpRunner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ runner_vpc_id="vpc-08ac0db4d8a7cce9e"
runner=$(aws ec2 describe-instances --profile $profile --filters Name=tag:Name,Values=[integration-tests-runner] Name=network-interface.vpc-id,Values=[$runner_vpc_id] --query "Reservations[*].Instances[*][InstanceId]" --output text | xargs)

while true; do
runner_status=$(aws ec2 describe-instances --profile $profile --instance-ids $runner --query "Reservations[*].Instances[*].State.[Name]" --output text)
if [ $runner_status = "stopped" ]; then
aws ec2 start-instances --profile $profile --instance-ids $runner
runner_status=$(aws ec2 describe-instances --profile $profile --instance-ids "$runner" --query "Reservations[*].Instances[*].State.[Name]" --output text)
if [ "$runner_status" = "stopped" ]; then
aws ec2 start-instances --profile $profile --instance-ids "$runner"
exit 0
elif [ $runner_status = "running" ]; then
elif [ "$runner_status" = "running" ]; then
sleep 120
runner_status=$(aws ec2 describe-instances --profile $profile --instance-ids $runner --query "Reservations[*].Instances[*].State.[Name]" --output text)
if [ $runner_status = "running" ]; then
runner_status=$(aws ec2 describe-instances --profile $profile --instance-ids "$runner" --query "Reservations[*].Instances[*].State.[Name]" --output text)
if [ "$runner_status" = "running" ]; then
exit 0
fi
else
Expand Down
2 changes: 1 addition & 1 deletion .github/proverCiScripts/deployToProver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ target_dir="$base_dir"PR"$1"

source_dir=$2

cd $source_dir && scp -r * prover:$target_dir
cd "$source_dir" && scp -r * prover:"$target_dir"

2 changes: 1 addition & 1 deletion .github/weeklyBenchScripts/08_processResults.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ circuit=$(echo "$l" | awk '{print $1}')
time=$(date +%Y-%m-%d_%H-%M-%S)
test_id=$time-$circuit-$degree-Benchmark

cd "$trigger_results_dir"
cd "$trigger_results_dir" || exit
tar -czvf ./"$test_id".tar.gz ./*proverlog ./*.stats

cp ../../zkevm-circuits/.github/weeklyBenchScripts/reporting*.py .
Expand Down

0 comments on commit fddeeae

Please sign in to comment.