battery: kept runs by machine role (keep --as workstation|server); the server run complete
The kept-results directories are named by the machine's role, not its host name: tools/battery/results/workstation/<run>/ (1 socket, RTX 5080) and results/server/<run>/ (4 sockets, 4x T4). battery.py keep takes the role as --as; the kept files, untouched, still record the real host and hardware. The server's rc175 full battery now has all three files (open + inhouse, private false); checked for the private arm's set ids and input directories. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EizBKhTqrAYago9KJG3dA3
This commit is contained in:
1 parent
695bc907b4
commit
d906868bb2
9 files changed
+45092
-22
No files matched your search
+12
-13
@@ -714,24 +714,23 @@ whole range; the manifest keeps the rule used as `dmin_rule`.
|
||||
|
||||
Run directories are scratch: they live under the site's `runs_root` (on CI, deleted after the job).
|
||||
A run worth citing - a release's full battery, the runs a paper figure is drawn from - is kept in the
|
||||
repository under `results/<host>/<run>/`: its `report.md`, `results.json` and `manifest.json` exactly as
|
||||
the battery wrote them, nothing regenerated. `<host>` is the short host name the run's report names
|
||||
(`mpc2898`, the RTX 5080 workstation; `mx-aare-test`, the 4-socket box with four T4 cards).
|
||||
repository under `results/<role>/<run>/`: its `report.md`, `results.json` and `manifest.json` exactly as
|
||||
the battery wrote them, nothing regenerated. `<role>` names the machine: `workstation` (1 socket, RTX
|
||||
5080) or `server` (4 sockets, 4x T4); the files themselves record its host and hardware.
|
||||
|
||||
```
|
||||
$B keep 20261011-1440_57fef1_rc175-57fef1c-full # a run under runs_root, or a path to one
|
||||
$B keep 20261011-1440_57fef1_rc175-57fef1c-full --as workstation # a run under runs_root, or a path to one
|
||||
```
|
||||
|
||||
`keep` copies what the run directory has, reading the host and the run name from its report. It
|
||||
keeps open and in-house runs only: a run whose manifest marks it private, whose report is
|
||||
`report_PRIVATE.md` or says PRIVATE ARM, or with any arm or row outside `open` and `inhouse`, is
|
||||
refused. Check the files for private-arm names before committing all the same. The CI job leaves
|
||||
the three files of every run in `/data/battery/ci_reports/<run>/` and in its artifact, so a run on
|
||||
either host can be kept from there. `paper_plots.py` finds a kept run by its name, after `runs_root`.
|
||||
`keep` copies what the run directory has, reading the run name from its report. It keeps open and
|
||||
in-house runs only: a run whose manifest marks it private, whose report is `report_PRIVATE.md` or
|
||||
says PRIVATE ARM, or with any arm or row outside `open` and `inhouse`, is refused. Check the files for
|
||||
private-arm names before committing all the same. The CI job leaves the three files of every run in
|
||||
`/data/battery/ci_reports/<run>/` and in its artifact, so a run on either machine can be kept from
|
||||
there. `paper_plots.py` finds a kept run by its name, after `runs_root`.
|
||||
|
||||
Kept so far: the rc175 full battery on mpc2898 (`20261011-1440_57fef1_rc175-57fef1c-full`), and the
|
||||
rc175 full battery on mx-aare-test (`20261011-1236_549939_1.0.0-rc.175`), of which only `report.md` is
|
||||
there yet: its `results.json` and `manifest.json` are to follow from that host.
|
||||
Kept so far: the rc175 full battery on the workstation (`20261011-1440_57fef1_rc175-57fef1c-full`) and
|
||||
on the server (`20261011-1236_549939_1.0.0-rc.175`).
|
||||
|
||||
## Figures for publication
|
||||
|
||||
|
||||
@@ -19,8 +19,8 @@ Usage (README.md in this directory is the full guide):
|
||||
the wrong-model null on its own, in a run directory of
|
||||
its own: exit 1 if a pair failed (CI runs it as its own
|
||||
step, after run --tier ci --no-nullmodel)
|
||||
battery.py keep RUN copy a finished open/inhouse run's report.md, results.json
|
||||
and manifest.json into results/<host>/<run>/ (committed);
|
||||
battery.py keep RUN --as workstation|server copy a finished open/inhouse run's report.md, results.json
|
||||
and manifest.json into results/<role>/<run>/ (committed);
|
||||
refuses a private run
|
||||
battery.py stress --rugnux BIN (--only a,b | --tier T) [--repeat N] [--concurrent K]
|
||||
[--sanitizer memcheck|racecheck|synccheck|initcheck] [--launch-blocking]
|
||||
@@ -701,7 +701,8 @@ PUBLIC_ARMS = {"open", "inhouse"}
|
||||
|
||||
def cmd_keep(a, site):
|
||||
"""Copy a run's report.md, results.json and manifest.json, as written, into
|
||||
results/<host>/<run name>/, where they are committed for the paper tooling. Open and in-house
|
||||
results/<role>/<run name>/, where they are committed for the paper tooling. The role names the
|
||||
machine (workstation, server); the files themselves record its host and hardware. Open and in-house
|
||||
runs only: a run its manifest marks private, or with any row or arm outside those two, is refused.
|
||||
A run of which only report.md exists (another host's, its other files still to come) is kept with
|
||||
what there is, checked on the report's own arms line."""
|
||||
@@ -711,10 +712,9 @@ def cmd_keep(a, site):
|
||||
sys.exit(f"{src}: no report.md (a private run's is report_PRIVATE.md, and is never kept)")
|
||||
text = open(report_md, errors="replace").read()
|
||||
title = re.match(r"# Rugnux battery - (\S+)", text)
|
||||
host = re.search(r"^- runner \S+, host (\S+),", text, re.M)
|
||||
arms_line = re.search(r"^- arms: ([^;]+);", text, re.M)
|
||||
if not (title and host and arms_line):
|
||||
sys.exit(f"{report_md}: not a battery report (no title, host or arms line)")
|
||||
if not (title and arms_line):
|
||||
sys.exit(f"{report_md}: not a battery report (no title or arms line)")
|
||||
arms = {x.strip() for x in arms_line.group(1).split(",")}
|
||||
if "PRIVATE ARM" in text:
|
||||
arms.add("private")
|
||||
@@ -729,7 +729,7 @@ def cmd_keep(a, site):
|
||||
if not arms <= PUBLIC_ARMS:
|
||||
sys.exit(f"{src}: refused - it holds arm(s) {', '.join(sorted(map(str, arms - PUBLIC_ARMS)))}; "
|
||||
"only open and inhouse runs are kept")
|
||||
dest = os.path.join(KEPT_ROOT, host.group(1).split(".")[0], title.group(1))
|
||||
dest = os.path.join(KEPT_ROOT, a.role, title.group(1))
|
||||
os.makedirs(dest, exist_ok=True)
|
||||
for name in KEPT_FILES:
|
||||
if os.path.exists(os.path.join(src, name)):
|
||||
@@ -1093,8 +1093,11 @@ def main():
|
||||
nm.add_argument("--runs-root")
|
||||
|
||||
kp = sub.add_parser("keep", help="copy a run's report.md, results.json and manifest.json into "
|
||||
"results/<host>/<run>/ (open and inhouse runs only)")
|
||||
"results/<role>/<run>/ (open and inhouse runs only)")
|
||||
kp.add_argument("run")
|
||||
kp.add_argument("--as", dest="role", required=True, choices=("workstation", "server"),
|
||||
help="the machine the run is from: workstation (1 socket, RTX 5080) or server "
|
||||
"(4 sockets, 4x T4)")
|
||||
|
||||
st = sub.add_parser("stress", help="run sets repeatedly / side by side / under compute-sanitizer; "
|
||||
"fail on any crash")
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
[--uncontended RUN]
|
||||
|
||||
RUN is a battery run directory, or its name under the site's runs_root or among the kept runs
|
||||
(tools/battery/results/<host>/<run>/, battery.py keep); later runs fill in sets
|
||||
(tools/battery/results/<role>/<run>/, battery.py keep); later runs fill in sets
|
||||
an earlier one lacks or that failed to run there (a `-redo` of CUDA casualties). --time-runs draws
|
||||
the time histogram from other runs than the two quality figures - a run whose sets had the GPU to
|
||||
themselves, where the runs for the quality figures had to share it. The quality figures read only the
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
File renamed without changes.
File diff suppressed because it is too large.
Load diff
File renamed without changes.
File renamed without changes.
Reference in new issue
Block a user