Skip to content

Commit 582961c

Browse files
committed
fix
1 parent e4e4c3a commit 582961c

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/integration.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,13 @@ jobs:
6262
)
6363
curl --fail -X POST -n -N -F zip=@${i}.zip http://localhost/domjudge/api/contests/demo/problems
6464
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
6672
shell: bash
6773
run: |
6874
export CURLOPTS="--fail -sq -m 30 -b /tmp/cookiejar"
@@ -76,6 +82,7 @@ jobs:
7682
NUMNOTVERIFIED=$(curl $CURLOPTS "http://localhost/domjudge/jury/judging-verifier" | grep "submissions checked" | sed -r 's/^.* ([0-9]+) submissions checked.*$/\1/')
7783
NUMVERIFIED=$( curl $CURLOPTS "http://localhost/domjudge/jury/judging-verifier" | grep "submissions not checked" | sed -r 's/^.* ([0-9]+) submissions not checked.*$/\1/')
7884
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":')
7986
# We expect
8087
# - two submissions with ambiguous outcome,
8188
# - one submissions submitted through the submit client, and thus the magic string ignored,
@@ -87,9 +94,3 @@ jobs:
8794
curl $CURLOPTS "http://localhost/domjudge/jury/judging-verifier?verify_multiple=1" | w3m -dump -T text/html
8895
exit 1
8996
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

0 commit comments

Comments
 (0)