import json, sys sys.path.insert(0, "$WORK/bench_h2h_20260915/tool") from bench_h2h.eventlog import append_event B = "$WORK/bench_h2h_20260915" L = B + "/events.log" D = json.load(open(B + "/real/DOWNLOADS.json")) T = "批准,先跑我们的模型,快速的先出一个结果我看看" DJ = "a311974cd2387023716cd44ab835e875ea9db0f4f557416b7c06a1f81490b77a" for f in D["files"]: appr = 'Larry 2026-09-15: "%s"' % T if not f["approval_basis"].startswith("quick"): appr += " (file approved earlier as T0; logged under this approval)" append_event(L, "download", "DOWNLOAD %s (real-data quick look; measured: HEAD Content-Length %s == bytes on disk %d; sha256 re-computed; chmod a-w)" % (f["path"], f["head"]["content-length"], f["bytes"]), sha={f["path"]: f["sha256"], "real/DOWNLOADS.json": DJ}, detail={"url": f["url"], "approved_bytes": f["approved_bytes"], "last_modified": f["head"].get("last-modified"), "etag": f["head"].get("etag"), "head_utc": f["head_utc"], "done_utc": f["done_utc"], "host": "login509-02-r", "method": "curl -C - --retry 20, single stream (real/scripts/download_real.sh)", "mode": f["mode"]}, approval=appr) c = D["copies"][0] append_event(L, "download", "COPY real/ref/decode2019_avg_hg38.bed from the laptop repo (not a download; measured: sha256 identical at both ends)", sha={c["path"]: c["sha256"]}, detail={"source": c["source"], "source_sha256": c["source_sha256"], "bytes": c["bytes"], "mode": c["mode"]}, approval='Larry 2026-09-15: "%s" (deCODE map copy named in the quick-look task)' % T) print("ok")