From 451a67cb2f9ff33281ce38a132c65717a7a01305 Mon Sep 17 00:00:00 2001 From: Taewoon Kim Date: Fri, 23 Oct 2026 15:59:28 +0900 Subject: [PATCH 1/2] make_2611_stages: --status-file refuses a start marker already in the machine's STATUS.txt 2026-10-23: the subset drafts waited for qMA06 ALL-DONE, which mini's STATUS.txt already held (the study was skipped), so installed stages would have started beside the running A/B jobs. --after stays required with no default; with a marker, --status-file (a STATUS.txt copy, or none) is now required too and a marker present in it is refused, at generation and in --check --drafts. Markers with a space (mini-ab FINAL) are read whole. Co-Authored-By: Claude Sonnet 5.5 --- benchmarks/experiments/CAMPAIGN.md | 2 +- .../fixtures/mini_status_20261023.txt | 191 ++++++++++++++++++ benchmarks/experiments/make_2611_stages.py | 61 +++++- .../experiments/test_stage_generator_2611.py | 10 +- .../test_stage_generator_status.py | 75 +++++++ 5 files changed, 325 insertions(+), 14 deletions(-) create mode 100644 benchmarks/experiments/fixtures/mini_status_20261023.txt create mode 100644 benchmarks/experiments/test_stage_generator_status.py diff --git a/benchmarks/experiments/CAMPAIGN.md b/benchmarks/experiments/CAMPAIGN.md index e395e754fa5..ae51303faac 100644 --- a/benchmarks/experiments/CAMPAIGN.md +++ b/benchmarks/experiments/CAMPAIGN.md @@ -241,7 +241,7 @@ The detail behind item 8: **The next campaign's stages are generated by `make_2611_stages.py`.** One template carries every guard the campaign learned (cap table, shadowed definitions, budgets against the cap, whole-cell cost, images present and current, comparator digests frozen at generation, the JPype pin read out of the image, the pinned wheel by sha256, the cap rule, the ALL-DONE trap); the instrument, `REPS` and the banner are its parameters. The generator selects the multi-model subset. The subset is `ENGINES` in the file: ArcadeDB (embedded and served), SurrealDB (embedded and served), ArangoDB, Memgraph, PostgreSQL with pgvector, AGE and TimescaleDB (and plain PostgreSQL where a lane uses it), MongoDB with MongoDB Search, DuckDB with VSS and DuckPGQ, SQLite with sqlite-vec, the composed Qdrant plus Neo4j stack, Neo4j and Qdrant on their own (graph and dense; sparse on the second list), and LadybugDB on every lane it supports. Every registered arm is either in the subset or in `OUTSIDE`, so a newly registered arm forces a decision (`--check`). The core lanes are graph (interactive and analytics), cross-model, documents and dense; `--second-list` adds lifecycle, then sparse and time series, after them. TimescaleDB runs whenever the time-series lane does; `--without-timescaledb` leaves it out. Every generated stage exports `BENCH_INSTRUMENT=2026-11` before its first Python call, reads the selection back from `bench_common` and aborts if the tree does not select it, writes `runs_page__2611.jsonl` (and overlay directories with the same suffix) so one rows file never holds two instruments, and fixes `REPS` at generation (`--reps`, default 3, at most 5). The generator re-executes itself with the variable set and refuses a different value in the environment. `land_stage.py` reads only 2026-10 rows today, so landing the new rows is a change of its own, made when the first 2026-11 tables land. -The comparators are the default mode and run on the release pair already installed (`ARCADEDB_WHEEL`, `ARCADEDB_SERVER_IMAGE`, `ARCADEDB_ENGINE_COMMIT`): `python3 make_2611_stages.py --second-list --after --id-prefix qS --out DIR`. `--after` is required (a stage id, or `none`), and each stage then waits for the previous one with `grep -qx " ALL-DONE"`. The ArcadeDB pass is `--arcadedb-release X.Y.Z` with `--engine-commit`, `--image-digest sha256:...`, `--wheel-name`, `--wheel-sha256` and `--wheel-url`; it refuses unless all five are given, because the release may not exist when the drafts are made. It writes `00`, the pair install (official image by digest, wheel by sha256, `build_matched_pair.sh`, `verify_pair_c25.sh`), and ArcadeDB's lane stages behind it. +The comparators are the default mode and run on the release pair already installed (`ARCADEDB_WHEEL`, `ARCADEDB_SERVER_IMAGE`, `ARCADEDB_ENGINE_COMMIT`): `python3 make_2611_stages.py --second-list --after --status-file STATUS.txt --id-prefix qS --out DIR`. `--after` is required, with no default (a marker name, or `none`), and the first stage waits for `grep -qx " ALL-DONE"`, each later one for the stage before it. The marker must be the LAST item still to run, one that writes its line whether it runs or is skipped: a marker already in the machine's STATUS.txt makes the first stage start at once, beside the running jobs (2026-10-23: `qMA06 ALL-DONE`, written by a skipped study). So `--status-file` is required with a marker (a copy of that STATUS.txt, or `none` when there is no queue) and the generator refuses a marker the file already holds; `--check --drafts DIR --status-file STATUS.txt` makes the same test on drafts that exist. The ArcadeDB pass is `--arcadedb-release X.Y.Z` with `--engine-commit`, `--image-digest sha256:...`, `--wheel-name`, `--wheel-sha256` and `--wheel-url`; it refuses unless all five are given, because the release may not exist when the drafts are made. It writes `00`, the pair install (official image by digest, wheel by sha256, `build_matched_pair.sh`, `verify_pair_c25.sh`), and ArcadeDB's lane stages behind it. The ArcadeDB pair's guards are split by what a stage runs. Every stage exports the pinned wheel (`ARCADEDB_WHEEL`, with `ARCADEDB_SERVER_IMAGE` and `ARCADEDB_ENGINE_COMMIT`) before `build_images.sh`, which bakes it into every generic image (client, duckdb, dense), and so every stage guards that the file exists at the pinned path and has the pinned sha256; `build_images.sh` copies it from that path and nothing in it or the Dockerfiles reads `dist/` itself. Only a stage that runs an ArcadeDB arm (the `--arcadedb-release` pass) also guards the rest: exactly one wheel in `dist/` (it protects `verify_pair_c25.sh`), the server image, the wheel and JPype read back out of `dbbench:arcadedb`, and `verify_pair_c25.sh`. A comparator stage on a host whose `dbbench:arcadedb` is the previous release's therefore runs. `build_images.sh` has no PyPI fallback: it refuses to build the `arcadedb` image (named or by default) without `ARCADEDB_WHEEL`, and refuses a wheel that is not a file, and refuses a wheel whose `arcadedb_embedded/core.py` lacks `_INSERT_MANY_CHUNK` (`wheel_guard.py`: before 26.10.2 `insert_many` parsed the whole input into one Java array, which the kernel killed on l4/ts1000/arcadedb_ts_doc on 2026-10-08; use a 26.10.2 or newer wheel); the images that take no wheel can be built alone by naming them. Every ABORT hands on: the `ALL-DONE` trap is set right after the wait, before the first guard, so a stage that aborts before its START line still writes its marker and the next stage runs (its own guards then run too). The ABORT line is in `STATUS.txt`, where `mini_watch.sh` reports it; to resume, fix the cause and run the aborted stage's script again by hand after the chain, and landing reads only the rows that exist. `make_2611_stages.py --check --drafts DIR` lints both rules. The default order is the core block first, then the second list. Inside the core block the large tiers (deep10m, tpch10, the full SF1 network) run after the small ones, and the cells that dominate the hours (Memgraph's deep10m dense cells, SurrealDB's documents at tpch1, the full SF1 network's analytics) run last of all in stages of their own, where they are easiest to drop if time runs short; `BIGGEST` in the file names them, and `--order paper` keeps the table order. Splitting moves stage boundaries only, and `--check` proves the cells are the same. `--project TABLE` prints projected hours per drafted stage from a per-cell hours table (tab separated: lane, workload, scale, backend, class, hours at 3 repetitions, hours at 5 repetitions; a cell with no clean rep carries its one failed attempt). `--check --drafts DIR` lints written scripts: the instrument exported and never 2026-10, the 2611 rows file, only subset arms, each stage waiting for the one before it. Drafts are written to a folder outside the tree and copied to the bench host by hand on the owner's go. Which stage is running is state, not method: it is in `STATUS.txt`'s tail and in HANDOFF, never here. `test_stage_generator_2611.py` holds the written drafts byte for byte against `stage_drafts_2611.sha256`, so a stage cannot move without the list changing in the same commit. diff --git a/benchmarks/experiments/fixtures/mini_status_20261023.txt b/benchmarks/experiments/fixtures/mini_status_20261023.txt new file mode 100644 index 00000000000..75761647b3d --- /dev/null +++ b/benchmarks/experiments/fixtures/mini_status_20261023.txt @@ -0,0 +1,191 @@ +# Excerpt of mini's ~/STATUS.txt, read-only copy 2026-10-23: every ALL-DONE marker line it held, then its last 12 lines. test_stage_generator_status.py feeds it to make_2611_stages.py --status-file. Not a log to extend. + [2026-08-10T13:18:47+00:00] STAGE ALL-DONE 2026-08-10T13:18:47+00:00 +[2026-08-14T15:58:14+00:00] STAGE ALL-DONE rc=0 +[2026-08-14T17:36:19+00:00] q84 ALL-DONE +[2026-08-15T01:35:29+00:00] q86 ALL-DONE +[2026-08-15T04:12:03+00:00] q90 ALL-DONE +[2026-08-15T04:18:19+00:00] q90 ALL-DONE +[2026-08-15T04:44:40+00:00] q91 ALL-DONE +[2026-08-15T04:49:11+00:00] q92 ALL-DONE +[2026-08-15T05:59:04+00:00] q93 ALL-DONE +[2026-08-15T07:02:26+00:00] q93 ALL-DONE +[2026-08-15T08:06:04+00:00] q93 ALL-DONE +[2026-08-15T15:05:34+00:00] q94 ALL-DONE +[2026-08-19T18:34:40+00:00] qI ALL-DONE +[2026-08-19T19:47:25+00:00] qJ ALL-DONE +[2026-08-22T10:45:34+00:00] qO ALL-DONE +[2026-08-22T10:57:25+00:00] qP ALL-DONE +[2026-08-22T12:20:30+00:00] qQ ALL-DONE +[2026-08-22T12:29:44+00:00] qR ALL-DONE +[2026-08-23T01:22:13+00:00] qS ALL-DONE +[2026-08-23T06:51:11+00:00] qT ALL-DONE +[2026-08-23T23:01:22+00:00] qU ALL-DONE +[2026-08-24T00:34:47+00:00] qV ALL-DONE +[2026-08-24T04:43:27+00:00] qW ALL-DONE +[2026-08-25T06:54:34+00:00] qZ ALL-DONE +[2026-08-25T10:33:59+00:00] qZ2 ALL-DONE +[2026-08-25T10:46:44+00:00] qZ3 ALL-DONE +[2026-08-25T10:50:27+00:00] qZ4 ALL-DONE +[2026-08-26T02:06:35+00:00] qAA ALL-DONE +[2026-08-26T03:28:21+00:00] qAB ALL-DONE +[2026-08-26T03:46:11+00:00] qAC ALL-DONE +[2026-08-26T04:17:39+00:00] qAD ALL-DONE +[2026-08-26T04:46:56+00:00] qAE ALL-DONE +[2026-08-26T04:49:38+00:00] qAF ALL-DONE +[2026-08-26T04:56:33+00:00] qAF ALL-DONE +[2026-08-26T05:08:26+00:00] qAG ALL-DONE +[2026-08-26T15:14:42+00:00] qAH ALL-DONE +[2026-08-27T00:27:41+00:00] qBA ALL-DONE +[2026-08-27T00:30:00+00:00] qBC ALL-DONE +[2026-08-27T00:41:08+00:00] qBD ALL-DONE +[2026-08-27T01:20:36+00:00] qBF ALL-DONE +[2026-08-27T02:23:42+00:00] qBG ALL-DONE +[2026-08-27T19:05:47+00:00] qBHR ALL-DONE +[2026-08-27T20:19:57+00:00] qBHR ALL-DONE +[2026-08-28T12:51:43+00:00] qBK ALL-DONE +[2026-08-28T12:53:24+00:00] qBL ALL-DONE +[2026-08-28T13:41:16+00:00] qBI ALL-DONE +[2026-08-28T23:00:12+00:00] qBJ ALL-DONE +[2026-08-29T08:35:56+00:00] qBO ALL-DONE +[2026-08-29T08:39:35+00:00] qBM ALL-DONE +[2026-08-29T13:22:02+00:00] qBM ALL-DONE +[2026-08-29T13:26:35+00:00] qBM ALL-DONE +[2026-08-29T13:41:04+00:00] qBN ALL-DONE +[2026-08-29T13:41:28+00:00] qBL ALL-DONE +[2026-08-29T15:40:41+00:00] qBN ALL-DONE +[2026-08-29T16:35:58+00:00] qBP ALL-DONE +[2026-08-29T16:45:54+00:00] qBN ALL-DONE +[2026-08-31T15:23:54+00:00] qCA ALL-DONE +[2026-08-31T22:17:46+00:00] qCB ALL-DONE +[2026-08-31T23:15:07+00:00] qCC ALL-DONE +[2026-09-01T09:34:25+00:00] qCD ALL-DONE +[2026-09-01T09:44:55+00:00] qCE ALL-DONE +[2026-09-03T10:34:18+00:00] qCG ALL-DONE +[2026-09-03T12:54:32+00:00] qCF ALL-DONE +[2026-09-03T14:21:52+00:00] qCH ALL-DONE +[2026-09-04T03:13:44+00:00] qCI ALL-DONE +[2026-09-05T23:55:09+00:00] qCJ ALL-DONE +[2026-09-06T01:19:15+00:00] qCK ALL-DONE +[2026-09-06T04:54:15+00:00] qCL ALL-DONE +[2026-09-06T09:04:32+00:00] qCM ALL-DONE +[2026-09-06T21:36:55+00:00] qCN ALL-DONE +[2026-09-07T06:09:02+00:00] qCO ALL-DONE +[2026-09-07T06:50:08+00:00] qCP ALL-DONE +[2026-09-07T06:58:49+00:00] qCR ALL-DONE +[2026-09-07T08:00:48+00:00] qCS ALL-DONE +[2026-09-07T08:17:37+00:00] qCT ALL-DONE +[2026-09-07T10:37:04+00:00] qCQ ALL-DONE +[2026-09-07T13:22:23+00:00] qCU ALL-DONE +[2026-09-07T18:15:01+00:00] qCV ALL-DONE +[2026-09-07T18:33:15+00:00] qCW ALL-DONE +[2026-09-07T19:27:59+00:00] qCX ALL-DONE +[2026-09-08T01:00:48+00:00] qCY ALL-DONE +[2026-09-08T01:05:18+00:00] qCX2 ALL-DONE +[2026-09-08T02:42:27+00:00] qCX3 ALL-DONE +[2026-09-08T03:37:46+00:00] qCY2 ALL-DONE +[2026-09-10T05:45:27+00:00] qDA ALL-DONE +[2026-09-10T08:20:34+00:00] qDA ALL-DONE +[2026-09-10T11:21:15+00:00] qDB ALL-DONE +[2026-09-10T12:27:44+00:00] qDC ALL-DONE +[2026-09-10T14:49:23+00:00] qDD ALL-DONE +[2026-09-10T15:21:43+00:00] qDG ALL-DONE +[2026-09-10T15:33:58+00:00] qDF ALL-DONE +[2026-09-11T17:47:46+00:00] qDE ALL-DONE +[2026-09-11T18:33:08+00:00] qDH ALL-DONE +[2026-09-12T02:04:43+00:00] qDI ALL-DONE +[2026-09-12T09:40:58+00:00] qDK ALL-DONE +[2026-09-12T11:28:31+00:00] qDJ ALL-DONE +[2026-09-12T12:43:43+00:00] qDL ALL-DONE +[2026-09-12T12:49:00+00:00] qDM ALL-DONE +[2026-09-12T14:23:00+00:00] qDN ALL-DONE +[2026-09-14T12:59:11+00:00] qDO ALL-DONE +[2026-09-14T13:07:47+00:00] qDP ALL-DONE +[2026-09-14T13:12:58+00:00] qDQ ALL-DONE +[2026-09-14T13:18:58+00:00] qDR ALL-DONE +[2026-09-15T13:39:42+00:00] qDS ALL-DONE +[2026-09-15T13:52:28+00:00] qDT ALL-DONE +[2026-09-16T07:18:39+00:00] qDU ALL-DONE +[2026-09-17T07:19:21+00:00] qDV ALL-DONE +[2026-09-17T22:16:17+00:00] qDW ALL-DONE +[2026-09-18T02:20:54+00:00] qDX ALL-DONE +2026-09-18T04:18:45Z qDY ALL-DONE rc=1 (probe log: results/log or docker logs of cli-l3d_arangodb_dense_search_deep10m_r1; artifact results/probe_f55/mp_arango_b1.json) +2026-09-18T04:42:16Z qDY ALL-DONE rc=0 (probe log: results/log or docker logs of cli-l3d_arangodb_dense_search_deep10m_r1; artifact results/probe_f55/mp_arango_b1.json) +[2026-09-18T17:45:45+00:00] qEA ALL-DONE +[2026-09-19T00:37:32+00:00] qEB ALL-DONE +[2026-09-19T03:11:38+00:00] qCAL ALL-DONE +[2026-09-19T12:40:31+00:00] qOA ALL-DONE +qOAR ALL-DONE +[2026-09-19T12:49:46+00:00] qOA2 ALL-DONE +qOAR3 ALL-DONE +qOAR3 ALL-DONE +qOAR3 ALL-DONE +qOAR3 ALL-DONE +[2026-09-20T21:24:58+00:00] qOC ALL-DONE +qOD ALL-DONE +qOI ALL-DONE +qOD2 ALL-DONE +qOA3 ALL-DONE +qOD3 ALL-DONE +qOA4 ALL-DONE +qOE ALL-DONE +qOF ALL-DONE +qOG ALL-DONE +qOH ALL-DONE +[2026-10-05T16:21:32+00:00] overlay_guard: qOH ALL-DONE, exiting +qOB2 ALL-DONE +qRA ALL-DONE +qT01 ALL-DONE +qP01 ALL-DONE +qP02 ALL-DONE +qP35 ALL-DONE +qP03 ALL-DONE +qP04 ALL-DONE +qP05 ALL-DONE +qP06 ALL-DONE +qP07 ALL-DONE +qP08 ALL-DONE +qP09 ALL-DONE +qP10 ALL-DONE +qP11 ALL-DONE +qP12 ALL-DONE +qP13 ALL-DONE +qP14 ALL-DONE +qP15 ALL-DONE +qP16 ALL-DONE +qP17 ALL-DONE +qP18 ALL-DONE +qP19 ALL-DONE +qP20 ALL-DONE +qP21 ALL-DONE +qP22 ALL-DONE +qP23 ALL-DONE +[2026-10-18T05:01:37+00:00] qA00..qA15 installed and waiting (the user's go 2026-10-18): the ArcadeDB 26.10.2 pass, pin e854692736 (the released image's and wheel's buildNumber), qA00 builds the matched pair after qP34 ALL-DONE (DECISIONS #184, #186, #188) +qA00 ALL-DONE +[2026-10-18T05:10:07+00:00] qA01..qA15 stopped by hand before any cell ran: qA00 started early because its wait grep matched the phrase "qP34 ALL-DONE" inside the 05:01 install note (my bug). qP24..qP34 continue; the 26.10.2 pass is re-installed after the fix. +qP24 ALL-DONE +qP25 ALL-DONE +qP26 ALL-DONE +qP27 ALL-DONE +qP28 ALL-DONE +qP29 ALL-DONE +qP30 ALL-DONE +qP31 ALL-DONE +qMA00 ALL-DONE +qMA01 ALL-DONE +qMA02 ALL-DONE +qMA03 ALL-DONE +qMA04 ALL-DONE +qMA05 ALL-DONE +qMA06 ALL-DONE +[2026-10-23T06:01:59+00:00] qMA05 finished +qMA05 ALL-DONE +[2026-10-23T06:02:49+00:00] qMA06 SKIP: conf/skip-qMA06 exists +qMA06 ALL-DONE +[2026-10-23T06:03:44+00:00] fb-jvm-aot: qMA06 is done: starting jvm-aot as a single-lane stage (/home/tk/ab-2610/repros/jvm-aot-ab-20261022-fb/mini_driver.sh) +[2026-10-23T06:03:44+00:00] jvm-aot: stage mode (single lane, CPUs 2,4): waiting for the machine to be alone +[2026-10-23T06:03:56+00:00] jvm-aot START (stage mode): lane 1 CPUs 2,4 siblings 3,5, helpers 16-19, cool-down 70 C cap 600 s, results /home/tk/ab-2610/out/jvm-aot-ab-20261022 +[2026-10-23T06:03:56+00:00] jvm-aot: warm-up of the uv cache (network, helper cores 16-19) +[2026-10-23T06:13:40+00:00] native-scale: waiting for the alone slot: process alive: 3175933/cmdline: bash /home/tk/ab-2610/lanes/fallback_stage.sh jvm-aot +[2026-10-23T06:51:12+00:00] jvm-aot finished rc=0 (completed rounds 0..24, min clean pairs 5): /home/tk/ab-2610/out/jvm-aot-ab-20261022/DONE written +[2026-10-23T06:51:12+00:00] fb-jvm-aot: jvm-aot driver exited rc=0: rc=0 2026-10-23T06:51:12+00:00 completed rounds 0..24, min clean pairs 5 +[2026-10-23T06:51:12+00:00] fb-native-ab: queued: waits for the main queue (qMA06) and for other fallback jobs diff --git a/benchmarks/experiments/make_2611_stages.py b/benchmarks/experiments/make_2611_stages.py index e27eaf8dac2..1c0a2981ee6 100644 --- a/benchmarks/experiments/make_2611_stages.py +++ b/benchmarks/experiments/make_2611_stages.py @@ -27,7 +27,12 @@ * REPS. `--reps N` (default 3, at most 5) is baked in as `REPS=N`; a stage environment that declares fewer (the image defaults arm) keeps its own. * THE CHAIN. `--after ` is the marker the first stage waits for (`grep -qx " ALL-DONE"`), or `none`. It is - required: the previous chain's last stage is not a default anyone should inherit. + required: the previous chain's last stage is not a default anyone should inherit. It must be the LAST item of the + queue already on the machine (2026-10-23: `qMA06 ALL-DONE` was already in mini's STATUS.txt because the study was + skipped, so drafts waiting on it would have started beside the running A/Bs). `--status-file PATH` is required with a + marker: the generator reads that copy of the machine's STATUS.txt and REFUSES a marker already in it, because a wait + that is true at once is no wait. `--status-file none` says on purpose that there is no queue (the chain starts + when launched, or the file is a fresh machine's). * ORDER. `biggest-last` (default) or `paper` (the table order); `--project CELLS_TSV` prices each stage from a per-cell hours table, scaled to N repetitions. @@ -35,10 +40,11 @@ python3 make_2611_stages.py --check [--drafts DIR] # selection, coverage and instrument proofs; lints DIR's scripts python3 make_2611_stages.py --project CELLS.tsv --check # plus the projected hours per stage ARCADEDB_WHEEL=... ARCADEDB_SERVER_IMAGE=... ARCADEDB_ENGINE_COMMIT=<40 hex> \\ - python3 make_2611_stages.py --after qR15 --id-prefix qS --out DIR [--engines a,b] [--lanes graph,dense] [--second-list] + python3 make_2611_stages.py --after qR15 --status-file STATUS.txt --id-prefix qS --out DIR [--engines a,b] [--lanes graph,dense] [--second-list] python3 make_2611_stages.py --arcadedb-release 26.11.1 --engine-commit <40 hex> --image-digest sha256:<64 hex> \\ --wheel-name arcadedb_embedded-26.11.1-.whl --wheel-sha256 <64 hex> --wheel-url \\ - --after --id-prefix qT --out DIR + --after --status-file STATUS.txt --id-prefix qT --out DIR + python3 make_2611_stages.py --check --drafts DIR [--status-file STATUS.txt] # also: the drafts' first wait is not already in STATUS.txt """ from __future__ import annotations @@ -586,21 +592,46 @@ def lint_draft(text, name, engines=None): return out -def lint_drafts(directory, engines=None): - """Lint every script in a folder, and check the chain: each stage waits for the one before it in id order.""" +def marker_in_status(marker, status_file): + """True when `marker ALL-DONE` is already a whole line of the STATUS file (the test every wait makes: `grep -qx`).""" + want = f"{marker} ALL-DONE" + with open(status_file, encoding="utf-8", errors="replace") as fh: + return any(line.rstrip("\n") == want for line in fh) + + +def status_problems(marker, status_file): + """A wait on a marker the machine already holds is no wait: the stage starts at once, beside whatever still runs. + 2026-10-23: `qMA06 ALL-DONE` was in mini's STATUS.txt (the study was skipped) while four A/B jobs still ran.""" + if marker is None or status_file is None: + return [] + if not os.path.isfile(status_file): + return [f"--status-file {status_file}: no such file"] + if marker_in_status(marker, status_file): + return [f"the start marker `{marker} ALL-DONE` is already a line of {status_file}: a stage waiting on it starts at " + f"once. Pick the LAST item of the queue that is still to run (it writes its marker whether it runs or skips)"] + return [] + + +def lint_drafts(directory, engines=None, status_file=None): + """Lint every script in a folder, and check the chain: each stage waits for the one before it in id order. + With a STATUS file, the first stage's wait must not already be true there.""" files = sorted(glob.glob(os.path.join(directory, "*.sh"))) out = [] if not files: return [f"{directory}: no stage scripts"] prev = None + first = True for f in files: name = os.path.basename(f) text = open(f, encoding="utf-8").read() out += lint_draft(text, name, engines) - waits = re.findall(r'^while ! grep -qx "(\S+) ALL-DONE"', text, re.M) + waits = re.findall(r'^while ! grep -qx "([^"]+?) ALL-DONE"', text, re.M) if prev is not None and waits != [prev]: out.append(f"{name}: waits for {waits or 'nothing'}, expected {prev}") prev = name[:-3] + if status_file is not None and first: + out += [f"{name}: {p}" for p in status_problems(waits[0] if len(waits) == 1 else None, status_file)] + first = False return out @@ -1311,7 +1342,12 @@ def _after(text): def main(argv=None) -> int: ap = argparse.ArgumentParser(description="the next instrument's multi-model subset stages") ap.add_argument("--out", help="directory for the generated scripts (a draft folder, not the repo)") - ap.add_argument("--after", help="the stage the first one waits on (its ALL-DONE marker); `none` for no wait. Required to emit") + ap.add_argument("--after", help="the marker the first stage waits on (` ALL-DONE`): the LAST item of the queue already on the " + "machine, e.g. `mini-ab FINAL` on mini; `none` for no wait. Required to emit, no default") + ap.add_argument("--status-file", metavar="PATH|none", + help="a copy of the machine's STATUS.txt: the generator refuses an --after marker already in it (the first stage " + "would start at once). Required to emit with a marker; `none` says there is no queue to wait for. " + "With --check --drafts DIR: also refuses drafts whose first wait is already true there") ap.add_argument("--id-prefix", default=DEFAULT_PREFIX, help=f"stage id prefix (default {DEFAULT_PREFIX})") ap.add_argument("--engines", help=f"comma list of subset engines ({', '.join(ENGINES)}); default every engine of the mode") ap.add_argument("--lanes", help="comma list: graph, cross-model, documents, dense (core); sparse, timeseries, lifecycle " @@ -1334,6 +1370,7 @@ def main(argv=None) -> int: ap.add_argument("--wheel-sha256") ap.add_argument("--wheel-url") a = ap.parse_args(argv) + status_file = None if a.status_file is None or a.status_file.strip().lower() == "none" else a.status_file problems = instrument_problems() if problems: @@ -1364,7 +1401,7 @@ def main(argv=None) -> int: bes = stage_backends(st) print(f" {st[0]} {st[2]:9} {','.join(st[4]) or '-':26} {len(bes):2} arms {st[1]}") if a.check and a.drafts: - problems += lint_drafts(a.drafts, set(engines)) + problems += lint_drafts(a.drafts, set(engines), status_file) for p in problems: print(f" PROBLEM {p}") if problems: @@ -1383,6 +1420,14 @@ def main(argv=None) -> int: after = _after(a.after) if after is False: raise SystemExit("--after is required to emit: the stage whose ALL-DONE the first stage waits for, or `none`") + if after is not None and a.status_file is None: + raise SystemExit("--status-file is required with an --after marker: a copy of the machine's STATUS.txt, which must not " + "hold ` ALL-DONE` yet (or `--status-file none` when there is no queue)") + bad = status_problems(after, status_file) + if bad: + for p in bad: + print(f" PROBLEM {p}") + return 1 if pins is None: pins = installed_pins() os.makedirs(a.out, exist_ok=True) diff --git a/benchmarks/experiments/test_stage_generator_2611.py b/benchmarks/experiments/test_stage_generator_2611.py index 10e09a01524..512ac3e9754 100644 --- a/benchmarks/experiments/test_stage_generator_2611.py +++ b/benchmarks/experiments/test_stage_generator_2611.py @@ -36,14 +36,14 @@ def run(args, tmp_path=None, env_extra=None, drop=()): def waits(path): - return re.findall(r'^while ! grep -qx "(\S+) ALL-DONE"', path.read_text(), re.M) + return re.findall(r'^while ! grep -qx "([^"]+?) ALL-DONE"', path.read_text(), re.M) @pytest.fixture(scope="module") def drafts(tmp_path_factory): tmp = tmp_path_factory.mktemp("g") out = tmp / "stages" - r = run(["--second-list", "--after", "qR20", "--out", str(out)], tmp) + r = run(["--second-list", "--after", "qR20", "--status-file", "none", "--out", str(out)], tmp) assert r.returncode == 0, r.stdout[-600:] + r.stderr[-600:] return out @@ -192,7 +192,7 @@ def test_release_mode_refuses_without_the_digests(): def test_release_mode_writes_the_pair_install_and_arcadedb_only_stages(tmp_path): out = tmp_path / "rel" - r = run(_release_args() + ["--after", "qS12", "--id-prefix", "qT", "--lanes", "graph,dense", "--out", str(out)]) + r = run(_release_args() + ["--after", "qS12", "--status-file", "none", "--id-prefix", "qT", "--lanes", "graph,dense", "--out", str(out)]) assert r.returncode == 0, r.stdout[-500:] + r.stderr[-500:] pair = (out / "qT00.sh").read_text() assert DIGEST in pair and WSHA in pair and "build_matched_pair.sh" in pair and waits(out / "qT00.sh") == ["qS12"] @@ -305,8 +305,8 @@ def test_a_pre_start_abort_writes_the_marker_so_the_chain_goes_on(tmp_path): SHA_LIST = HERE / "stage_drafts_2611.sha256" GENERATIONS = { # case: (arguments, whether the comparator pair comes from the environment) - "comparators": (["--second-list", "--after", "qR20"], True), - "comparators-paper-5reps": (["--second-list", "--order", "paper", "--reps", "5", "--after", "qR20", "--id-prefix", "qU"], True), + "comparators": (["--second-list", "--after", "qR20", "--status-file", "none"], True), + "comparators-paper-5reps": (["--second-list", "--order", "paper", "--reps", "5", "--after", "qR20", "--status-file", "none", "--id-prefix", "qU"], True), "arcadedb-release": (None, False), } diff --git a/benchmarks/experiments/test_stage_generator_status.py b/benchmarks/experiments/test_stage_generator_status.py new file mode 100644 index 00000000000..a4347509edf --- /dev/null +++ b/benchmarks/experiments/test_stage_generator_status.py @@ -0,0 +1,75 @@ +"""`make_2611_stages.py --status-file`: a start marker that is already in the machine's STATUS.txt is refused. + +Run with `python -m pytest test_stage_generator_status.py -q` from this directory. + +2026-10-23: the drafts waited for `qMA06 ALL-DONE`. Mini's STATUS.txt already held that line (the study was skipped with +conf/skip-qMA06, and the skipped stage still writes its marker), so installed stages would have started at once, beside +the A/B jobs still running. The marker must be the LAST item of the queue. First choice was `jvcall-last ALL-DONE`; after the +queue was reordered (bindings-r2 and jvcall-last left mini) it is `mini-ab FINAL ALL-DONE`, the line a waiter writes after +native-scale, the last A/B item. The marker has a space: the wait and the lint must take it whole. The fixture is an excerpt of mini's STATUS.txt of that day. +""" +import sys +from pathlib import Path + +import pytest + +HERE = Path(__file__).resolve().parent +sys.path.insert(0, str(HERE)) + +from test_stage_generator_2611 import run, waits # noqa: E402 +import make_2611_stages as G # noqa: E402 + +MINI_STATUS = HERE / "fixtures" / "mini_status_20261023.txt" +LAST_MARKER = "mini-ab FINAL" + + +def test_the_fixture_is_the_state_that_bit_us(): + assert G.marker_in_status("qMA06", str(MINI_STATUS)) + assert not G.marker_in_status(LAST_MARKER, str(MINI_STATUS)) + assert not G.marker_in_status("qMA0", str(MINI_STATUS)) # a prefix of a marker is not the marker + + +def test_a_marker_already_in_status_is_refused_and_nothing_is_written(tmp_path): + out = tmp_path / "o" + r = run(["--after", "qMA06", "--status-file", str(MINI_STATUS), "--lanes", "graph", "--out", str(out)], tmp_path) + assert r.returncode == 1 + assert "qMA06 ALL-DONE` is already a line" in r.stdout and not list(out.glob("*.sh")) + + +def test_the_last_queue_item_is_accepted_and_the_first_stage_waits_on_it(tmp_path): + out = tmp_path / "o" + r = run(["--after", LAST_MARKER, "--status-file", str(MINI_STATUS), "--lanes", "graph", "--out", str(out)], tmp_path) + assert r.returncode == 0, r.stdout[-400:] + r.stderr[-400:] + assert waits(out / "qS01.sh") == [LAST_MARKER] + + +def test_a_marker_needs_a_status_file_and_none_must_be_said(tmp_path): + r = run(["--after", LAST_MARKER, "--lanes", "graph", "--out", str(tmp_path / "o")], tmp_path) + assert r.returncode != 0 and "--status-file is required" in (r.stdout + r.stderr) + r = run(["--after", "none", "--lanes", "graph", "--out", str(tmp_path / "o2")], tmp_path) # no marker, no queue: no file needed + assert r.returncode == 0, r.stdout[-400:] + r = run(["--after", LAST_MARKER, "--status-file", str(tmp_path / "missing.txt"), "--lanes", "graph", "--out", str(tmp_path / "o3")], tmp_path) + assert r.returncode == 1 and "no such file" in r.stdout + + +def test_a_marker_is_matched_as_a_whole_line_like_the_stage_wait(tmp_path): + f = tmp_path / "STATUS.txt" + f.write_text("[2026-10-23T06:02:49+00:00] qMA06 ALL-DONE (a log line, not the marker)\nxqMA06 ALL-DONE\nqMA06 ALL-DONE extra\n") + assert not G.marker_in_status("qMA06", str(f)) + f.write_text("qMA06 ALL-DONE\n") + assert G.marker_in_status("qMA06", str(f)) + + +def test_check_drafts_refuses_drafts_whose_first_wait_is_already_true(tmp_path): + out = tmp_path / "o" + r = run(["--after", "qMA06", "--status-file", "none", "--lanes", "graph", "--out", str(out)], tmp_path) + assert r.returncode == 0 + r = run(["--check", "--drafts", str(out), "--status-file", str(MINI_STATUS)], tmp_path) + assert r.returncode == 1 and "qS01.sh: the start marker `qMA06 ALL-DONE` is already a line" in r.stdout + good = tmp_path / "good" + r = run(["--after", LAST_MARKER, "--status-file", str(MINI_STATUS), "--out", str(good)], tmp_path) + assert r.returncode == 0 + r = run(["--check", "--drafts", str(good), "--status-file", str(MINI_STATUS)], tmp_path) + assert r.returncode == 0, r.stdout[-400:] + r = run(["--check", "--drafts", str(good)], tmp_path) # without a file: the old lint only + assert r.returncode == 0 From f4f0e63285b895c86a91af47e810fcb3228ec8bc Mon Sep 17 00:00:00 2001 From: Taewoon Kim Date: Fri, 23 Oct 2026 16:55:10 +0900 Subject: [PATCH 2/2] make_2611_stages: emit the subset rep-major, in engine priority order The user, 2026-10-23: order the comparators in priority; do n=1 for all dbs, then n=2, etc. --reps N now emits pass 1 of every stage (core lanes, then the second list), then pass 2, then pass 3. Each stage runs one repetition (--only-reps PASS); a pass above 1 runs a cell only when rep 1 was clean (rep-1-first), and only a rep-1 timeout feeds the cap rule. A per-host state file (rep-state-2026-11-PIN.tsv) records which reps exist, so a pass can be stopped and the next one resumed with no regeneration. Inside a lane the engines run in ENGINE_PRIORITY. test_land_stage_pin passes --status-file none (the CI failure of this PR). Co-Authored-By: Claude Sonnet 5.5 --- benchmarks/experiments/CAMPAIGN.md | 2 +- benchmarks/experiments/make_2611_stages.py | 119 +++++++++--- .../experiments/stage_drafts_2611.sha256 | 140 +++++++++++---- benchmarks/experiments/test_cap_rule.py | 2 +- benchmarks/experiments/test_land_stage_pin.py | 2 +- .../test_stage_generator_repmajor.py | 169 ++++++++++++++++++ 6 files changed, 374 insertions(+), 60 deletions(-) create mode 100644 benchmarks/experiments/test_stage_generator_repmajor.py diff --git a/benchmarks/experiments/CAMPAIGN.md b/benchmarks/experiments/CAMPAIGN.md index ae51303faac..a55a5c01496 100644 --- a/benchmarks/experiments/CAMPAIGN.md +++ b/benchmarks/experiments/CAMPAIGN.md @@ -241,7 +241,7 @@ The detail behind item 8: **The next campaign's stages are generated by `make_2611_stages.py`.** One template carries every guard the campaign learned (cap table, shadowed definitions, budgets against the cap, whole-cell cost, images present and current, comparator digests frozen at generation, the JPype pin read out of the image, the pinned wheel by sha256, the cap rule, the ALL-DONE trap); the instrument, `REPS` and the banner are its parameters. The generator selects the multi-model subset. The subset is `ENGINES` in the file: ArcadeDB (embedded and served), SurrealDB (embedded and served), ArangoDB, Memgraph, PostgreSQL with pgvector, AGE and TimescaleDB (and plain PostgreSQL where a lane uses it), MongoDB with MongoDB Search, DuckDB with VSS and DuckPGQ, SQLite with sqlite-vec, the composed Qdrant plus Neo4j stack, Neo4j and Qdrant on their own (graph and dense; sparse on the second list), and LadybugDB on every lane it supports. Every registered arm is either in the subset or in `OUTSIDE`, so a newly registered arm forces a decision (`--check`). The core lanes are graph (interactive and analytics), cross-model, documents and dense; `--second-list` adds lifecycle, then sparse and time series, after them. TimescaleDB runs whenever the time-series lane does; `--without-timescaledb` leaves it out. Every generated stage exports `BENCH_INSTRUMENT=2026-11` before its first Python call, reads the selection back from `bench_common` and aborts if the tree does not select it, writes `runs_page__2611.jsonl` (and overlay directories with the same suffix) so one rows file never holds two instruments, and fixes `REPS` at generation (`--reps`, default 3, at most 5). The generator re-executes itself with the variable set and refuses a different value in the environment. `land_stage.py` reads only 2026-10 rows today, so landing the new rows is a change of its own, made when the first 2026-11 tables land. -The comparators are the default mode and run on the release pair already installed (`ARCADEDB_WHEEL`, `ARCADEDB_SERVER_IMAGE`, `ARCADEDB_ENGINE_COMMIT`): `python3 make_2611_stages.py --second-list --after --status-file STATUS.txt --id-prefix qS --out DIR`. `--after` is required, with no default (a marker name, or `none`), and the first stage waits for `grep -qx " ALL-DONE"`, each later one for the stage before it. The marker must be the LAST item still to run, one that writes its line whether it runs or is skipped: a marker already in the machine's STATUS.txt makes the first stage start at once, beside the running jobs (2026-10-23: `qMA06 ALL-DONE`, written by a skipped study). So `--status-file` is required with a marker (a copy of that STATUS.txt, or `none` when there is no queue) and the generator refuses a marker the file already holds; `--check --drafts DIR --status-file STATUS.txt` makes the same test on drafts that exist. The ArcadeDB pass is `--arcadedb-release X.Y.Z` with `--engine-commit`, `--image-digest sha256:...`, `--wheel-name`, `--wheel-sha256` and `--wheel-url`; it refuses unless all five are given, because the release may not exist when the drafts are made. It writes `00`, the pair install (official image by digest, wheel by sha256, `build_matched_pair.sh`, `verify_pair_c25.sh`), and ArcadeDB's lane stages behind it. +The comparators are the default mode and run on the release pair already installed (`ARCADEDB_WHEEL`, `ARCADEDB_SERVER_IMAGE`, `ARCADEDB_ENGINE_COMMIT`): `python3 make_2611_stages.py --second-list --after --status-file STATUS.txt --id-prefix qS --out DIR`. `--after` is required, with no default (a marker name, or `none`), and the first stage waits for `grep -qx " ALL-DONE"`, each later one for the stage before it. The marker must be the LAST item still to run, one that writes its line whether it runs or is skipped: a marker already in the machine's STATUS.txt makes the first stage start at once, beside the running jobs (2026-10-23: `qMA06 ALL-DONE`, written by a skipped study). So `--status-file` is required with a marker (a copy of that STATUS.txt, or `none` when there is no queue) and the generator refuses a marker the file already holds; `--check --drafts DIR --status-file STATUS.txt` makes the same test on drafts that exist. The subset is emitted REP-MAJOR (2026-10-23): with `--reps N` the chain is pass 1 of every stage (core lanes, then the second list), then pass 2 of every stage, then pass 3, and each stage runs ONE repetition (`--only-reps $PASS`). If time runs out, every engine has the same n; repetitions days apart show drift. A stage whose environment declares fewer reps (`REPS=k`) is left out of the later passes. Inside a lane the engines run in `ENGINE_PRIORITY` (SurrealDB, ArangoDB, PostgreSQL, MongoDB, Redis 8, composed Qdrant+Neo4j, Neo4j, Qdrant, DuckDB, SQLite, Memgraph, LadybugDB, CrateDB; ArcadeDB's arms lead it when they join; Redis and CrateDB are skipped until their adapters are in `ENGINES`). The rep-1-first rule and the cap rule hold across passes: a pass above 1 runs a cell only when rep 1 of it was clean, and only a timeout of rep 1 censors the larger sizes. WHICH REPS EXIST is `~/rep-state-2026-11-.tsv` on the host (one `label, rep, ok|fail` line per finished repetition; the rows themselves carry the rep number in the runner's results file): stop after any pass, and the next pass, or a restarted stage, picks up from it with no regeneration; N can go to 3 or stop at 2. Delete that file to start a chain over. The ArcadeDB pass is `--arcadedb-release X.Y.Z` with `--engine-commit`, `--image-digest sha256:...`, `--wheel-name`, `--wheel-sha256` and `--wheel-url`; it refuses unless all five are given, because the release may not exist when the drafts are made. It writes `00`, the pair install (official image by digest, wheel by sha256, `build_matched_pair.sh`, `verify_pair_c25.sh`), and ArcadeDB's lane stages behind it. The ArcadeDB pair's guards are split by what a stage runs. Every stage exports the pinned wheel (`ARCADEDB_WHEEL`, with `ARCADEDB_SERVER_IMAGE` and `ARCADEDB_ENGINE_COMMIT`) before `build_images.sh`, which bakes it into every generic image (client, duckdb, dense), and so every stage guards that the file exists at the pinned path and has the pinned sha256; `build_images.sh` copies it from that path and nothing in it or the Dockerfiles reads `dist/` itself. Only a stage that runs an ArcadeDB arm (the `--arcadedb-release` pass) also guards the rest: exactly one wheel in `dist/` (it protects `verify_pair_c25.sh`), the server image, the wheel and JPype read back out of `dbbench:arcadedb`, and `verify_pair_c25.sh`. A comparator stage on a host whose `dbbench:arcadedb` is the previous release's therefore runs. `build_images.sh` has no PyPI fallback: it refuses to build the `arcadedb` image (named or by default) without `ARCADEDB_WHEEL`, and refuses a wheel that is not a file, and refuses a wheel whose `arcadedb_embedded/core.py` lacks `_INSERT_MANY_CHUNK` (`wheel_guard.py`: before 26.10.2 `insert_many` parsed the whole input into one Java array, which the kernel killed on l4/ts1000/arcadedb_ts_doc on 2026-10-08; use a 26.10.2 or newer wheel); the images that take no wheel can be built alone by naming them. Every ABORT hands on: the `ALL-DONE` trap is set right after the wait, before the first guard, so a stage that aborts before its START line still writes its marker and the next stage runs (its own guards then run too). The ABORT line is in `STATUS.txt`, where `mini_watch.sh` reports it; to resume, fix the cause and run the aborted stage's script again by hand after the chain, and landing reads only the rows that exist. `make_2611_stages.py --check --drafts DIR` lints both rules. The default order is the core block first, then the second list. Inside the core block the large tiers (deep10m, tpch10, the full SF1 network) run after the small ones, and the cells that dominate the hours (Memgraph's deep10m dense cells, SurrealDB's documents at tpch1, the full SF1 network's analytics) run last of all in stages of their own, where they are easiest to drop if time runs short; `BIGGEST` in the file names them, and `--order paper` keeps the table order. Splitting moves stage boundaries only, and `--check` proves the cells are the same. `--project TABLE` prints projected hours per drafted stage from a per-cell hours table (tab separated: lane, workload, scale, backend, class, hours at 3 repetitions, hours at 5 repetitions; a cell with no clean rep carries its one failed attempt). `--check --drafts DIR` lints written scripts: the instrument exported and never 2026-10, the 2611 rows file, only subset arms, each stage waiting for the one before it. Drafts are written to a folder outside the tree and copied to the bench host by hand on the owner's go. Which stage is running is state, not method: it is in `STATUS.txt`'s tail and in HANDOFF, never here. `test_stage_generator_2611.py` holds the written drafts byte for byte against `stage_drafts_2611.sha256`, so a stage cannot move without the list changing in the same commit. diff --git a/benchmarks/experiments/make_2611_stages.py b/benchmarks/experiments/make_2611_stages.py index 1c0a2981ee6..839b4d50a7c 100644 --- a/benchmarks/experiments/make_2611_stages.py +++ b/benchmarks/experiments/make_2611_stages.py @@ -221,7 +221,8 @@ def _page_lanes(): def stage_backends(spec): only = spec[8] if len(spec) > 8 and spec[8] else None # a lane's main stage leaves out the arms that run only part of it: they have stages of their own - return list(only) if only else [b for b in runner.LANES[spec[2]][1] if b not in runner.restricted_arms(spec[2])] + bes = list(only) if only else [b for b in runner.LANES[spec[2]][1] if b not in runner.restricted_arms(spec[2])] + return sorted(bes, key=engine_rank) # stable: arms of one engine keep the lane's order def check_coverage(stages=None): @@ -385,6 +386,19 @@ def check_jpype_pin(dockerfile_text=None, pin=None): SECOND_ORDER = ("lifecycle", "l3s", "l4") +# THE ORDER INSIDE A LANE (the user, 2026-10-23: "order the comparators in priority"), highest first: when a pass is cut short the +# engines that matter most have their rep. ArcadeDB's four 26.11.1 arms (JVM/native x embedded/server) go on top when 26.11.1 +# ships. Redis 8 and CrateDB are named here before their adapters are merged: an engine that is not in ENGINES is skipped cleanly. +ENGINE_PRIORITY = ("arcadedb", "surrealdb", "arangodb", "postgresql", "mongodb", "redis", "qdrant-neo4j", "neo4j", "qdrant", + "duckdb", "sqlite", "memgraph", "ladybug", "cratedb") + + +def engine_rank(backend): + """Sort key of an arm: its engine's place in ENGINE_PRIORITY (an engine outside the list sorts last).""" + eng = engine_of(backend) + return ENGINE_PRIORITY.index(eng) if eng in ENGINE_PRIORITY else len(ENGINE_PRIORITY) + + def engine_of(backend): """The subset engine an arm belongs to, or None.""" for eng, (_what, prefixes) in ENGINES.items(): @@ -875,6 +889,7 @@ def has_arcadedb_arm(backends): # a second convention would only mean # land_stage silently pulls nothing. REPS={reps} # fixed at generation (make_2611_stages --reps) +PASS={pass_no} # the ONE repetition this stage runs (rep-major: the chain runs pass 1 of every stage, then pass 2, ...) say() {{ echo "[$(date -Is)] $*" >> "$S"; }} {wait} # AN ABORT MUST NOT STRAND THE CHAIN. Every ABORT hands on (the convention of the qMA stages: "an EXIT trap set after the wait @@ -1062,25 +1077,28 @@ def has_arcadedb_arm(backends): {stage_env} BACKENDS="{backends}" -say "$ID START: {title}, {nbe} engines, REPS=$REPS, pin $PIN, instrument {instrument}" +say "$ID START: {title}, {nbe} engines, rep pass $PASS of $REPS, pin $PIN, instrument {instrument}" {cap_rule_helpers} +{rep_helpers} run_overlay() {{ #