Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

workflows: Fix incorrect status print in CI hive test #12516

Merged
merged 2 commits into from
Oct 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 12 additions & 7 deletions .github/workflows/test-hive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Test Hive
on:
push:
branches:
# - main
- main
- release/*
- docker_pectra
schedule:
Expand Down Expand Up @@ -57,10 +57,15 @@ jobs:
echo "Exitcode gt 0"
fi
}
last_line=$(tail -2 output.log | head -1 | sed -r "s/\x1B\[[0-9;]*[a-zA-Z]//g")
suites=$(echo "$last_line" | sed -n 's/.*suites=\([0-9]*\).*/\1/p')
tests=$(echo "$last_line" | sed -n 's/.*tests=\([0-9]*\).*/\1/p')
failed=$(echo "$last_line" | sed -n 's/.*failed=\([0-9]*\).*/\1/p')
status_line=$(tail -2 output.log | head -1 | sed -r "s/\x1B\[[0-9;]*[a-zA-Z]//g")
suites=$(echo "$status_line" | sed -n 's/.*suites=\([0-9]*\).*/\1/p')
if [ -z "$suites" ]; then
status_line=$(tail -1 output.log | sed -r "s/\x1B\[[0-9;]*[a-zA-Z]//g")
suites=$(echo "$status_line" | sed -n 's/.*suites=\([0-9]*\).*/\1/p')
fi
tests=$(echo "$status_line" | sed -n 's/.*tests=\([0-9]*\).*/\1/p')
failed=$(echo "$status_line" | sed -n 's/.*failed=\([0-9]*\).*/\1/p')

echo -e "\n"
echo "----------- Results for ${1}-${2} -----------"
echo "Tests: $tests, Failed: $failed"
Expand All @@ -75,9 +80,9 @@ jobs:
exit 1
fi
}
run_suite engine exchange-capabilities
run_suite engine withdrawals
run_suite engine cancun
run_suite engine exchange-capabilities
run_suite engine auth
run_suite engine api
run_suite engine auth
run_suite rpc compat
Loading