File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change 62
62
)
63
63
curl --fail -X POST -n -N -F zip=@${i}.zip http://localhost/domjudge/api/contests/demo/problems
64
64
done
65
- - name : Preparing curl cookiejar
65
+ - name : Monitor judgehost log and stop once all submissions are judged
66
+ run : |
67
+ tail -f /opt/domjudge/judgehost/log/judge*-0.log | while read line; do
68
+ echo "$line"
69
+ grep "No submissions in queue" /opt/domjudge/judgehost/log/judge*-0.log && break
70
+ done
71
+ - name : Verifying submissions
66
72
shell : bash
67
73
run : |
68
74
export CURLOPTS="--fail -sq -m 30 -b /tmp/cookiejar"
76
82
NUMNOTVERIFIED=$(curl $CURLOPTS "http://localhost/domjudge/jury/judging-verifier" | grep "submissions checked" | sed -r 's/^.* ([0-9]+) submissions checked.*$/\1/')
77
83
NUMVERIFIED=$( curl $CURLOPTS "http://localhost/domjudge/jury/judging-verifier" | grep "submissions not checked" | sed -r 's/^.* ([0-9]+) submissions not checked.*$/\1/')
78
84
NUMNOMAGIC=$( curl $CURLOPTS "http://localhost/domjudge/jury/judging-verifier" | grep "without magic string" | sed -r 's/^.* ([0-9]+) without magic string.*$/\1/')
85
+ NUMSUBS=$(curl --fail http://admin:password@localhost/domjudge/api/contests/1/submissions | python3 -mjson.tool | grep -c '"id":')
79
86
# We expect
80
87
# - two submissions with ambiguous outcome,
81
88
# - one submissions submitted through the submit client, and thus the magic string ignored,
87
94
curl $CURLOPTS "http://localhost/domjudge/jury/judging-verifier?verify_multiple=1" | w3m -dump -T text/html
88
95
exit 1
89
96
fi
90
- - name : Monitor judgehost log and stop once all submissions are judged
91
- run : |
92
- tail -f /opt/domjudge/judgehost/log/judge*-0.log | while read line; do
93
- echo "$line"
94
- grep "No submissions in queue" /opt/domjudge/judgehost/log/judge*-0.log && break
95
- done
You can’t perform that action at this time.
0 commit comments