File tree Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ set -o errexit
4
4
set -o pipefail
5
5
set -o xtrace
6
6
7
+ readonly arg1=" ${1:- undefined} "
8
+
7
9
function now
8
10
{
9
11
date ' +%Y%m%d-%H%M%S'
@@ -26,8 +28,11 @@ run_docker_compose logs rmq0 > "$log_dir/rmq0.log"
26
28
run_docker_compose logs rmq1 > " $log_dir /rmq1.log"
27
29
run_docker_compose logs rmq2 > " $log_dir /rmq2.log"
28
30
29
- if grep -iF inet_error " $log_dir " / *
31
+ if [[ $arg1 == ' check ' ]]
30
32
then
31
- echo ' [ERROR] found inet_error in RabbitMQ logs' 1>&2
32
- exit 1
33
+ if grep -iF inet_error " $log_dir " /*
34
+ then
35
+ echo ' [ERROR] found inet_error in RabbitMQ logs' 1>&2
36
+ exit 1
37
+ fi
33
38
fi
Original file line number Diff line number Diff line change 67
67
timeout-minutes : 15
68
68
run : dotnet test ${{ github.workspace }}/Build.csproj --no-restore --no-build --logger "console;verbosity=detailed"
69
69
- name : Check for errors in RabbitMQ logs
70
- run : ${{ github.workspace}}/.ci/ubuntu/cluster/gha-log-check.sh
71
- - name : Maybe upload RabbitMQ logs
70
+ run : ${{ github.workspace}}/.ci/ubuntu/cluster/gha-logs.sh check
71
+ - name : Collect RabbitMQ logs (on failure)
72
+ if : failure()
73
+ run : ${{ github.workspace}}/.ci/ubuntu/cluster/gha-logs.sh
74
+ - name : Upload RabbitMQ logs (on failure)
72
75
if : failure()
73
76
uses : actions/upload-artifact@v4
74
77
with :
You can’t perform that action at this time.
0 commit comments