From 222833da6dec75e6355c765c8d9cebf20de05153 Mon Sep 17 00:00:00 2001 From: trevon Date: Wed, 26 Aug 2026 02:15:32 +0000 Subject: [PATCH] verdict exits on ok --- .forgejo/workflows/grade.yml | 4 ++-- README.md | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.forgejo/workflows/grade.yml b/.forgejo/workflows/grade.yml index 1038cce..775cc07 100644 --- a/.forgejo/workflows/grade.yml +++ b/.forgejo/workflows/grade.yml @@ -22,5 +22,5 @@ jobs: python3 /opt/grade/grade_cli.py run \ --student . --hidden /opt/grade-hidden/cs2060/record-manager \ --course CS2060 --assignment record-manager \ - --out results.json 2>&1 | tee /opt/grade/runner-diag/latest.log - python3 -c "import json; d=json.load(open('results.json'))['result']; print('VERDICT ok=', d['ok'], 'public=', d['tests']['public'], 'hidden=', d['tests']['hidden'])" + --out results.json 2>&1 | tee /opt/grade/runner-diag/latest.log || true + python3 -c "import json,sys; d=json.load(open('results.json'))['result']; print('VERDICT ok=', d['ok'], 'public=', d['tests']['public'], 'hidden=', d['tests']['hidden']); sys.exit(0 if d['ok'] else 1)" diff --git a/README.md b/README.md index 2c15738..0d0d3d5 100644 --- a/README.md +++ b/README.md @@ -49,4 +49,3 @@ AI assistance is **not required**. If you use it, the standard `AGENTS.md` in this repo tells the agent exactly what Tier 2 permits; state "AI used: none | Tier 2" at the top of each milestone write-up and let the verification gates (`make test` / `make sanitize` / `make valgrind` + the CI report) be the record. -retest 1787710392