File size: 1,404 Bytes
24aaa76 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | """Updates the slip list of log note 5 in records/R5/TESTPASS2/plan.json (adds the two six-task-limit breaches) and records the M1
label-independence check; a log edit, no design change.
usage: tp2_note5_update.py TESTPASS2_DIR
"""
import hashlib
import json
import os
import sys
import time
TP = sys.argv[1]
p = os.path.join(TP, "plan.json")
plan = json.load(open(p, encoding="utf-8"))
n5 = [a for a in plan["amendments"] if a.get("n") == 5][0]
n5["rule_slips_logged"] = [
"sed -n inside ssh at about 06:00Z (reading det_prep.py lines)",
"sed -n locally at about 10:02Z (reading align.py and textnorm.py lines)",
"one shell heredoc into cat locally to write tp2_per_language.sbatch (a file write, not an interpreter)",
"six-task limit exceeded twice: job 55227 (07:21:25-07:22:54Z) and job 55241 (07:30:46-07:30:49Z) each started while 6 tp2_test "
"array tasks ran (7 at once)"]
n5["m1_label_independence_check"] = ("code read for the 24 Nov M1 kohtd_test run (eval_vlm_test.py, vlm_common.py): no label information in "
"order, batching, padding or token cap (checks.json m1_label_independence); no measurement needed")
n5["updated_utc"] = time.strftime("%Y-%m-%dT%H:%M:%SZ", time.gmtime())
json.dump(plan, open(p, "w", encoding="utf-8"), indent=1, ensure_ascii=False)
print("note 5 updated", hashlib.sha256(open(p, "rb").read()).hexdigest())
|