Nightly suite triage: a standing plan for an autonomous run¶
Status, 2026-11-19: standing plan, revised for its second run, whose target is
real-data solve3D (decision 13). Written 2026-11-01 (base eefc7e1a1); first
run 2026-11-01/02, ruled and committed as 4f3fed7e5.
A plan that is run again whenever the nightly suite needs attention. It runs the suite and reports the status of every entry, looks for regressions in entries that still pass, repairs what has an evident repair, speeds up what has an evident speed-up, fuses entries that repeat each other's work, brings the nightly test code to the style guides, describes with a proposal every failure it cannot repair, and proposes tests for the code that changes most and is tested least.
The plan stays in planned/. Before a run, the launcher fills section 1; the
standing body (sections 2 to 10) changes only by a ruling. The run writes its
report beside the plan (nightly_suite_triage_report.md; git keeps the earlier
ones) and its Progress at the end; when it starts, it moves the previous run's
Progress into one line of "Previous runs". For arun: PLAN= this file
(PLAN_DONE unset: the plan stays in planned/), ALLOW_TABLE="## 10. File
table", PHASES= the phases of section 1.
1. This run¶
| item | value |
|---|---|
| Base | the run's HEAD (state/base_head; 7e88a551e when this was written). The run works on its own copy of the dell's checkout in <run root>/repo; this plan travels as a launch difference unless it is committed first (decision 15) |
| Reference | 603c44490 (2026-11-15), a default (section 3): the commit at which Hans read the three real sets as perfect (Known 7) |
| Machine | dell2: Ubuntu 26.04 (the CI runner's release), 16 cores (4 P, 8 E, 4 low-power E), 61 GB, idle |
| Run root | /data2/agent_runs/nightly_triage behind ~/agent_runs/nightly_triage on dell2; the scratch is its scratch/ |
| Phases | 0 1 2 3 5 7 (4 and 6 left out: both ran on 2026-11-01/02) |
| Target | real-data solve3D: about 1 run in 10 fails subtly (Hans, 2026-11-19) |
| Real-data cases | the three real sets of the class and pose student runs (decision 18), below |
| Real-data stacks | on dell2 under /data2/dell_data/, in the layout of the dell's /data, with the dell's checksums in /data2/dell_data/MD5SUMS (copied 2026-11-19, Known 8). Phase 0 remaps frozen copies of the input projects to them |
| Phase 1 budget | 72 h of wall time on dell2 (guessed; Phase 0 prices it again from one run per set) |
Real-data cases (decision 18). Each run is a plain solve3D on a frozen copy of
the set's selection project, single state, nthr=16, with SIMPLE_SEED=<seed>
(seeds 1 to 10, the same on both builds), each run in its own directory. The
keys are the student runs' (pose_student_physical_raw_picks.md, the teachers'
tools/teacher.sh):
| set | input project | keys | particles selected | final box, pixel size |
|---|---|---|---|---|
| bgal | /data2/bgal_addon/3_selection/bgal_addon.simple |
nsample=1500 mskdiam=180 pgrp=d2 pgrp_start=c1 |
2 756 | read in Phase 0 |
| trpv1 | /data2/trpv1_c2/3_selection/trpv1_c2.simple |
nsample=5000 mskdiam=175 pgrp=c2 pgrp_start=c2 |
35 504 | read in Phase 0 |
| strep | /data2/dell_data/10335-streptav/tst/3_selection/tst.simple |
nsample=5000 mskdiam=85 pgrp=d2 pgrp_start=c1 |
6 821 | read in Phase 0 |
The failure criterion, frozen here before any run (the method of the small-membrane note, Known 7):
- A run fails when it does not complete, or when its final FSC=0.143
resolution (the
POSTPROCESSlow-pass value) is coarser than its set's ceiling. The ceiling is the median of the reference's ten runs on the set, plus the larger of3sand one Fourier shell at the final box and pixel size (sis 1.4826 times the median absolute deviation of the ten). It is computed when the reference's ten runs of the set are done, and frozen before any base run of the set is read. The worst reference run is not the anchor, because the reference may fail one run in ten itself. The origin is measured (the reference runs), the rule guessed. - The consolidation readout, reported for every run and not a gate: overlap at least 0.30 and angular change at most 30° at the end of stage 3 or 4, read from the iteration log as the note did. A run that passes its ceiling without consolidating, or consolidates and then fails, is flagged.
- Reported, not gated: the final map, the halves and the log of every failed
or flagged run, and of seed 1 on both builds, kept under
<scratch>/keep/real/with their paths in the report, for Hans to read. He judges a "subtle" failure the ceiling misses.
Known at writing (2026-11-19, against CI and the tree at 7e88a551e; Phase 0
checks each again):
ci_test.ymldid not run from 2026-11-09 to 11-16. The last night every job passed is 11-08, at913d50765: 91 commits before7e88a551e, 64 of them insolve/,strategies/,sigma2/,volume/ornu_filt/.- 11-17, 11-18 and 11-19 are red on Ubuntu only, all nine failed jobs (3, 4
and 2 of the 4 Ubuntu groups) for one reason: in the build step's fast gate,
unit_numericsfails HHCNN'stest_thread_identity("the chunked reduction gives the same weights at one thread and at a team of 4, bit for bit",src/main/learn/simple_hhcnn_tester.f90). On 11-17 and 11-19 the other Ubuntu jobs of the same commit passed it, macOS passed every time, andec990429f("fixed flaky hhcnn test", 11-16) is in all three commits. A failed build step runs no test: Ubuntu has not run theworkflowsgroup since 11-08. - Green is not right. On 11-08
simulated_workflow_6vxx's map was wrong on both platforms (truth correlation 0.52, below the wrong-truth control's 0.60; FSC 31 and 50 Å) and passed because its map rows were reports then.3c3e0ee8e(11-12) raised the fixture's SNR and restored the hard map and pose gates (MIN_VOL_CORR0.80, FSC 6 Å,MAX_PAIR_POSE_ERR15°,MIN_PAIR_FRAC50.45). The floors carry no profile; the test card asks for a fresh 20-seed profile (the last, 2026-10-19: 2 of 20 missed the map). simulated_workflow_1jxywas removed on 11-17 (fd9af0add): itssolve3Dfailed the pose gate in 13 of 40 solves, the pair fraction within 5° at 0.48-0.50 while the map passed. That is a subtle failure of the kind the target names. No registered entry runssolve3Dover parts since.- CI keeps the test reports 14 days. The 11-08 reports are saved on dell2 in
/data2/agent_runs/ci_artifacts/42449321961_913d50765_2026-11-08/(37metrics.tsv); those of 11-17 to 11-19 expire on 12-01 to 12-03. - A run records its 64-bit seed in the project's info segment
(
adopt_run_seed):rnd_seed_w1tornd_seed_w4, 16 bits each, low word first, andrnd_version(print_project_field oritype=projinfo).SIMPLE_SEED=<seed>replays it, except draws made before the seed was set in a run started withoutSIMPLE_SEED.restarted_exec(nrestarts=) gives every restart the same environment and does not vary the seed, so each triage run is its own process with its ownSIMPLE_SEED. Whether a real-data run repeats at 16 threads is not known; Phase 0 measures it. - The small-membrane note
(archived 2026-11-17) found the same kind of failure on PorF at
603c44490: one restart in five or six at 7.43 Å against 4.11-4.22 Å, separated from the successes by a stage-3/4 consolidation readout. It read streptavidin, beta-galactosidase and TRPV1 as perfect at603c44490. Thesolve3Dsampling changes since then came from it: 31 first-parent commits from603c44490to7e88a551e, among them360fbeb4f,8363af240,e94681175and11f832a8e. The 3D in-plane posterior insertion, off by default at603c44490, was on by default from1ea0f8340untilfd9af0addremoved it.nsample_rampis not part of the library: added by76110d3f5as a switch off by default, which the real-data cases never set, it was withdrawn by6668fb842. On 2026-11-19 it had no trace insrc/, the skills, the generated indexes or the build; only the solve3D policy names it, as withdrawn. The note's seeded restarts and per-stage summary line (its decisions 6 and 7) were never implemented. - dell2 has the three sets' project folders (
/data2/bgal_addon,/data2/trpv1_c2), but not their particle stacks. The projects point at the dell's/data/bgal/DAT/sumstack.mrc(1.46 GB),/data/trpv1/flipnew.mrc(9.37 GB) and/data/10335-streptav/(2.5 GB, with streptavidin's project). dell2 has no/data. On 2026-11-19 they were copied to dell2 under/data2/dell_data/, keeping the layout below/data. The projects still name/data, so Phase 0 writes remapped copies withupdate_project old_root=/data new_root=/data2/dell_data. The remap matches whole path components, so the/data2/...class-average paths stay as they are.
2. The suite¶
The nightly is .github/workflows/ci_test.yml: Ubuntu and macOS jobs in four
groups (library and platform, workflows, rest, multi-state workflows; the last
Linux only, decision 8). Each builds Release with the fast gate, then runs its
CTest selection with explicit timeouts and report uploads. Re-read the workflow
and the registry at the start of every run; group membership and the process
budget change. The contracts are in doc/policies/test_environment_policy.md,
the registry rows in src/main/commanders/test/simple_test_registry.f90, the
CTest registrations in production/CMakeLists.txt.
The entries that run solve3D, for decision 13: simulated_workflow_6vxx
(single state, shared memory, one thread, deterministic; 1 129 s, reserving 2
cores), solve3D_addon (eight threads, 289 s, reserving 11) and
multistate_workflows (eight threads, 1 913 s for all routes, reserving 11;
suite= runs one route). The times are the test cards' and skills'; Phase 0
measures them on the run's machine.
Ruben owns runner closeout in the consolidated testing plan; Hans reviews floors and CTest entries.
GitHub's standard runners are small (Linux 4 cores and 16 GB, macOS 3 cores and 7 GB) and end a job at 6 hours. A local run finds what is broken; only the CI logs show what fails on those runners and on macOS.
3. Decisions and rulings¶
Standing (Hans, 2026-11-01):
- The run reads the CI logs and test reports itself with
gh(logged in on the machine; read access tohael/SIMPLEis enough). - A production fix that makes a failing entry pass is applied in the working tree, verified, and listed apart from the test fixes in the report.
.github/workflows/ci_test.ymlandci_push.ymlmay be changed in the working tree.- Entries that should be fused are fused, and nightly test code that does not follow the style guides is brought to them.
- Hot areas (code that changes a lot) with poor coverage get proposed tests in the report; Hans decides which are written. The run writes none of them.
Rulings of 2026-11-02 on the first run's report (carried out in 4f3fed7e5):
multistate_assignmentis retired and not restored.- The
species_discoveryfloors were re-derived by the floor rule; thelib_cart_align3Dperturbation lies inside the rotation bound. multistate_workflowshas a 4 h deadline and runs on Linux only in CI.ci_push.ymlbuilds and runs the fast gate on every push tomasterthat touches code.classify3D_refsand the probability-table fill stay proposals: a workflow and a library-tier fixture, not quick tests.- The stream chain tests (
lib_stream's chain sub-suite,stream_chains) belong to Joe and Ruben: a failure there is described with its evidence, not repaired.
Rulings of 2026-11-19 (this revision):
- Fast entries that fail in CI are in scope and triaged as nightly entries: a failed fast gate stops its CI group before any nightly entry runs.
- Regressions in entries that still pass are in scope (Phase 1). The target
of the 2026-11 run is real-data
solve3D, which fails subtly in about 1 run in 10. - Real data stays outside the suite (test policy, section 6.6): real-data runs are made by hand, from the cases of section 1, on the export builds Phase 1 names; reported, not gated.
- The run stays on its base:
masteris not pulled during the run. - The real-data runs follow section 1: its cases, its seeds and its failure criterion, frozen before any run.
- A comparison of one entry across commits holds its test fixed (Phase 1, step 2): the test commanders run production in process, so a test change between two commits is a change in what is measured.
- (Hans) The real-data cases are the real sets of the class and pose student runs: beta-galactosidase, TRPV1 and streptavidin.
Defaults taken without a question (2026-11-19; vetoed by editing section 1 before launch):
- Reference
603c44490, where Hans read the three real sets as perfect (Known 7). The last green CI night,913d50765, is older and its ownsimulated_workflow_6vxxseed 0 missed the map (Known 3). Phase 1 measures the reference before it attributes anything to the range. If the real-data runs already failed at603c44490, Hans names an earlier commit. - The real-data protocol of section 1: plain
solve3Don each set's selection project with the student runs' keys,nthr=16, seeds 1 to 10 per build, and the failure ceiling of the reference's median plus the larger of3sand one shell. - The real-data stacks live on dell2 under
/data2/dell_data/, and the inputs are remapped copies (Known 8), so no/datais needed on dell2. - Phases 4 (fusion, style) and 6 (coverage) are left out.
- Simulated entries: 20 seeds per arm, 100 for a lead on a target entry, 50 for any other lead (Phase 1, step 4).
simulated_workflow_1jxyis profiled as a lead: at the reference, where it still exists, and at the base only as a scratch patch on an export that restores its suite (removed infd9af0add), never in the working tree.- The Phase 1 budget of section 1.
4. Not in this plan¶
- Writing the proposed tests (decision 5); new CTest entries; restoring
simulated_workflow_1jxyin the working tree. - The real-data dataset layer (test policy, section 6.6; testing plan, section 5) and real-data CTest entries.
- Stream chain repairs (decision 11).
- Any write on GitHub (section 7).
- Files outside the file table.
5. Terms¶
- Entry: a CTest registration (
ctest -Nlists them). Nightly entries: theplatform,libraryandhighlevellabels; fast entries that fail in CI count as nightly entries (decision 12). - Base, reference: the two commits of section 1. Export build: a
Release build of a
git archiveexport in its own directory under the scratch, configured with the checkout's CMake options (-DFORTLS=OFF); never the checkout'sbuild/. - Regression: a gate metric of an entry, or the failure count of a real-data case, worse at the base than at the reference by the rule of Phase 1, step 4. Lead: a difference the screen or the rule points at but does not decide.
- Evident repair: the cause is shown (a log line, a diff, a commit) and the repair restores what the test was written to check, without changing what it asserts.
- Triage class of a failure or a regression, one of:
- stale test: a renamed program or key, a moved or renamed output, a registry or CMake row out of step;
- environment: runner memory, cores or deadline, platform, the workflow;
- deliberate divergence: production changed on purpose and the test does not know;
- regression: production is broken;
- unstable: the entry passes and fails on the same code (seeds, threads).
6. Change types and gates¶
| Phase | Kind | Gate |
|---|---|---|
| 0, 1, 6 | measurement; no edit but this plan's section 1 and Progress | none |
| 2 | test repairs: tests only. Production repairs: identical or result-changing | identical: test=identity at one thread, base export against the repaired build. Result-changing: the rule of Phase 1, step 4: the repaired build no worse than the reference, and its repaired metric better than the base |
| 3, 4 | identical | test=identity at one thread; the other entries' gate rows at seed offset 0 equal, or inside the base profile where Phase 1 measured one |
| 5 | the CI workflow | parsed, and actionlint if present; proven only by its first run on GitHub |
| 7 | verification | the full nightly; the Phase 1 rule for every repaired regression |
7. Rules¶
- Never lower a floor, widen a tolerance, weaken or remove an assertion, skip a check, or raise a deadline to make an entry pass. Such a change, when the evidence supports it, is a proposal in the report with that evidence. The test policy treats a widened tolerance as a finding.
- A failure at seed offset 0 is a failure. Runs at other seeds or thread counts
(
test=profile) characterise it and never overturn it. - Shrinking a test (fewer particles, iterations or seeds, a smaller box) changes what it can detect: a proposal with the measured saving, not a change.
- A fusion or style refactoring keeps every check and the result (section 6).
test=identitybetween the baseline and the final run is the cheapest proof that test edits changed no result; in the first run it found the one production defect. - No new CTest entries. A fusion lowers
SIMPLE_CTEST_BUDGETand updates, in one change, the registry row, the CTest registration, the test UI and router,scripts/check_test_registry.pyif needed, and the policy's tables. - A repair adds the files it changes to the file table, with the reason, before editing them.
- Git is read-only; nothing is committed. Older commits are built from
git archiveexports, never by checking them out. A bisection is done by hand overgit rev-list, sincegit bisectwrites repository state. ghis read-only too:gh run list,gh run view,gh run downloadand GET requests ofgh api. The run never pushes, dispatches, re-runs, comments or changes a setting on GitHub, whatever the token would allow.- Fortran: the
simple-modern-fortranskill, the compile-time policy and the test policy (sections 2 and 5). New or changed OpenMP code gets a tester that forces a team and compares it with one thread bit for bit, and a stress run by hand at the machine's full thread count (16 on dell2, 24 on the dell). THROW macros are never continued with//&; no.and.short-circuit on allocatable arrays. - Run outputs go to the scratch, on a disk with at least 60 GB free (the
high-level entries alone grow to about 37 GB).
build/test_runs, where CTest works, may be a link to it. Bulky outputs are deleted once their numbers are in the journal; reports,metrics.tsv,executions.tsvandrun.logfiles are kept. On dell2 both drives are QLC and slow down under long sustained writes; delete bulky outputs as soon as their numbers are read. - Timings: nothing else heavy runs on the machine while timings are measured.
On dell2 the four low-power cores make thread timings noisy: a timing records
the cores it ran on, and a before/after pair runs pinned to the same cores
(
taskset). Timings are compared only within one machine. - Journal times come from
date, never estimated.
8. Stop conditions¶
Stop and report when:
- the base build or the reference export build breaks (an export at a bisection step that does not build is skipped and recorded, not a stop);
- the run's repository differs at launch from its HEAD by more than this plan
and what the spec's rulings name (
state/launch_status.txt); - a real-data stack is missing on dell2, or its checksum differs from the dell's (Phase 0, step 5);
- a disk falls under 20 GB free;
- a repair would need a floor, tolerance, assertion or deadline to move.
Not a stop: Phase 1 reaching its budget (what is left is reported as leads).
Gates no ruling may waive: the fast gate after every edit; test=identity for
every change claimed identical; Phase 7's full nightly; the Phase 1 rule for
every result-changing production repair.
9. Phases¶
Phase 0: evidence and baseline¶
- Record the base (
state/base_head) and the launch differences (state/launch_status.txt) in section 1, then the reference, compiler, CMake cache (build type, flags), machine, load and disks. - CI history of every
ci_test.ymlrun since 2026-11-02:gh run list -R hael/SIMPLE -w ci_test.yml, for each rungh run view <id> --logand, while it exists,gh run download <id>into the scratch (the 11-08 reports are already saved, Known 5). Per night, platform and group: the build step's result and, for a failed fast gate, the failing check; each entry's verdict and time; each gate metric's value frommetrics.tsv; not run for a group whose build step failed, cancelled for a job the matrix cancelled. - Build the run's repository in its
build/(Release), the fast gate, install. Build the base and the reference again as export builds (<scratch>/keep/build_base,<scratch>/keep/build_ref), with each one's fast gate. They stay untouched until Phase 7. - The baseline at the base, one tier after the other on the otherwise idle
machine:
ctest -L platformandctest -L library(with--output-junit), thensimple_test_exec test=nightly ncunits=<cores> dir=<scratch>/nightly_base(the same command lines and environment asctest -L highlevel, plus each gate's value and floor, wall time, peak CPU and memory innightly_report.tsv). Thentest=nightlyof the reference export build (dir=<scratch>/nightly_ref). - Real data (section 1, decision 16):
- Check the stacks of Known 8 with
md5sum -c /data2/dell_data/MD5SUMS. - Freeze a remapped copy of each input project under
<scratch>/keep/real/inputs/, with its checksum:update_project projfile=<copy> old_root=/data new_root=/data2/dell_data projfile_out=<frozen>with the base build. bgal and trpv1 are copied from/data2/bgal_addonand/data2/trpv1_c2, and their checksums are compared with the dell's inMD5SUMS. Every run copies its input from there. - Read each set's final box and pixel size, and so the width of one Fourier shell at the reference's median resolution, once that is known.
- Check each set's command line against the UI's required keys on both builds.
- Run one base run per set at seed 1 and record its wall time and peak memory. If 10 seeds × 3 sets × 2 builds does not fit the budget beside the simulated profiles, trpv1 drops to 5 seeds per build first; the report labels it a lead.
- Run bgal at seed 1 a second time. If the two runs' final maps are identical, real-data runs are replayable at 16 threads and Phase 1's bisection by seed applies to them; otherwise real data gets rates only.
Exit: the status table, one row per nightly entry: local verdict at base and reference, wall time and peak memory, the CI verdict and time per platform since 2026-11-02, and for every failure its triage class with the evidence; the entries removed since the last run, and what nothing gates since; both export builds and both nightly reports; the real-data stacks on dell2 with matching checksums, the frozen inputs, the run times, and the replay check.
Phase 1: regressions in entries that pass¶
The question is whether a change between the reference and the base made an entry, or a real-data case, worse while it still passes. One run cannot show a rate of 1 in 10. So verdicts come from paired profiles, and attribution comes from deterministic runs.
- Screen every entry from Phase 0: per gate metric, its seed-0 value at
reference and base, its CI series since 11-02, and the profile median and
spread written beside its floor, where there is one. A metric worse at the
base by more than its spread
s, or, without a recorded spread, any change in a one-thread entry, is flagged. The screen only chooses what is profiled; its threshold is guessed. - Hold the test fixed. Before comparing one entry across commits, list the
commits that change its test:
git log <ref>..<base>on its test commander and fixtures. If there are any, the older export takes the base's versions of those files, as a patch. If they do not compile there, the comparison's older end moves forward to the first commit where they do, and the report says so. Since603c44490the workflow test changed only byfd9af0add(the 1jxy suite removed), so 6vxx comparisons from the default reference already hold the test fixed. An older reference crosses3c3e0ee8e, which changed the 6vxx fixture (Known 3). - Profile on the reference and base export builds, at the entry's CTest
thread count, with
test=profile target=<entry> nseeds=20 keep_outputs=no dir=<scratch>/profiles/<build>_<entry>. Compare withtest=profile dir1= dir2=, and read the values per seed from eachexecutions.tsv. Profiled whatever the screen says: the target entriessimulated_workflow_6vxxandsolve3D_addon;multistate_workflows, one route, when a real-data case is multi-state; and the leadsimulated_workflow_1jxy(section 3, defaults). Then every flagged entry, while the budget lasts. The base profile ofsimulated_workflow_6vxxis also the fresh profile its test card asks for. - The verdict rule, frozen here before any profile is run:
- Executions are paired by seed offset. A seed fails a gate metric as
test=profilecounts it: a failing row, no row, or a failed or timed-out execution. - Failure count:
bseeds fail at the base and pass at the reference,cthe reverse. A regression is a one-sided exact sign test onbagainstcat p ≤ 0.05 (for example 5 against 0, 7 against 1, 9 against 2). - Value: the per-seed difference in the metric's good direction, ties
dropped. A regression is a median difference worse than one
s(the larger robust spread of the two profiles) together with a one-sided sign test at p ≤ 0.05 (for example 15 of 20 seeds worse). - A lead (
b > c, or a median worse by more than half ans, without the test) is profiled once more: 100 seeds per arm on a target entry, 50 on any other. The first 20 seeds of a one-thread entry must repeat their gate rows exactly, a check of the export builds. The same rule then decides; what it does not decide stays a lead, not a finding. - Power, stated before the run: a rise from 0 to 1 failure in 10 reaches
b≥ 5 atc= 0 with 20 seeds about 4 % of the time, with 50 about 57 %, with 100 about 98 %. A rate like 1jxy's (13 in 40) shows at 20. - Control: a threaded entry gets a second base profile at the same seeds. The rule applied base against base must find nothing; otherwise that entry's verdicts are leads only. A one-thread entry's control is the repetition above.
- The report lists every entry and metric tested beside the findings: at p ≤ 0.05 about one test in twenty finds a difference by chance.
- Attribute each regression of a one-thread entry. The commits are
git rev-list --first-parent --reverse <ref>..<base>. - For each of up to three seeds that fail at the base and pass at the
reference, search by bisection for the first commit where the seed fails:
one run per step, from an export build with the test held fixed. A commit
that does not build is replaced by its neighbour and recorded. The range
is not monotone where a behaviour was switched on and later removed (the
in-plane insertion,
1ea0f8340tofd9af0add, Known 7). A bisection that lands inside that span runs the seed atfd9af0addas well; when it passes there, the search continues fromfd9af0addto the base. - When the seeds agree on a commit C, profile C and its parent with the regression's number of seeds; the rule of step 4 confirms C or not.
- When the seeds point to different commits and none is confirmed, any result-changing commit can flip a seed's trajectory. The report gives the commits and the profiles as a lead.
- A regression of a threaded entry is not bisected by seed. Its commit range
and the
solve3Dcommits in it are reported; a profile per bisection step needs a ruling. - Real data (section 1, decision 16). These runs come before the simulated profiles, one run at a time on the whole machine.
- The reference's runs on each set, seeds 1 to 10. Then each set's ceiling goes into Progress, before any base run of that set is read.
- The base's runs on each set, at the same seeds.
- The rule of step 4 on the failure counts, paired by seed, per set and
pooled over the three sets. Power, stated before the run: with one
failure in ten at the base and none at the reference, 10 pairs reach
b≥ 5 almost never, and 30 pooled pairs about 18 % of the time. The rates are therefore a lead unless the failures are many; replaying single seeds is what decides. - Each seed that fails at the base and passes at the reference is
bisected, when Phase 0 found real-data runs replayable. The search runs
over
git rev-list --first-parent --reverse <ref>..<base>as in step 5, one real-data run per step: 31 commits take five or six runs. Two or more seeds, of any set, that agree on a commit C attribute the failure to C; one seed alone is a lead. C is then checked on the simulated target entries' profiles at C and its parent (steps 3 and 4). When runs are not replayable, the report gives the base's failing seeds and the commit range. - A seed that fails on both builds predates the range: it is reported, and nothing is attributed.
- Classify each regression (class 3 or 4, from its commit's message and the policy notes of the area) and hand it to Phase 2 with its evidence.
Exit: for every target entry and every flagged metric, the reference and base
profiles and the verdict of step 4 (regression, lead or none) with b, c,
the median shift, the seeds and the control. For every regression, its
confirmed commit, its commit range, or its spread over several commits. For
every real-data set: its ceiling; a table of every seed on both builds
(completed, FSC=0.143 and 0.5, the consolidation readout, the flags); the
verdict; and, for each seed that fails only at the base, its commit or the
reason there is none. The test-fixed comparisons and their moved older ends.
The budget used.
Phase 2: repairs¶
For each failure and each Phase 1 regression, in this order: failures on every platform, fast-gate failures that stop CI groups, failures on one platform, then regressions:
- Read the entry's
run.log, report andmetrics.tsv, the test, and the history of the test and of the production code it drives since the entry last passed (git log -pon both). When the history does not decide it, build the older commit from agit archiveexport and run the entry there. - Classes 1 and 2: repair. Class 4: repair when the defect and its repair are
evident, otherwise describe it. Class 3: describe what production does now,
what the test expects, and the proposal (adapt the test, or restore the
behaviour). Adapt the test only when the commit that changed production
says the change is intended and the test's guarantee survives it. Class 5:
test=profile target=<entry> nseeds=20(5 at least when time is short, reported as a lead), the failure rate, and a proposal: a profile entry, a stronger signal, or a fix of the instability's cause. A failure seen only in CI is reproduced under the runner's conditions: the fast label on four pinned cores, its entries in parallel ascompile_clean.shruns them, at least 20 times. Its local failure rate is reported beside the CI one. - After each repair: build, the fast gate, the entry rerun alone in its own scratch directory. A production repair also reruns the fast suite of its area and every nightly entry that drives the changed code, and a result-changing one passes its gate (section 6).
- The floors of
simulated_workflow_6vxxget their origin from the Phase 1 base profile, in the code and the test card, when the floor rule admits them. Otherwise they are a proposal.
Exit: every failure and regression repaired and verified, or described with a proposal.
Phase 3: speed¶
- Rank the entries by core-hours (wall time times peak CPU) from the baseline, and estimate each one's time on the CI runners from the CI logs where they hold it.
- Profile the slow entries' stages (their
BENCHfiles, logs,perfwhere it helps). Evident speed-ups are made: the same fixture built several times, threads reserved but idle, work whose result nothing reads. Each is measured before and after under the timing rule (section 7) and keeps the entry's results (section 6). - Anything else that would shorten the suite is a proposal with its saving.
Exit: every change measured, every proposal priced.
Phase 4: fusion and style¶
- Fusion candidates: entries or sub-suites that build the same fixture or run
the same pipeline prefix, or one entry that splits what one process could
do without losing isolation that matters (a crash in one part hiding the
others, memory, CI packing). A candidate is fused when it removes repeated
work or setup, keeps every check, keeps each part runnable alone
(
suite=), and does not lengthen the CI wall time. Otherwise it is listed with the reason it stays. - Style: the nightly test code (the high-level test commanders, the library
suites' testers, the registry and the runner) against the
simple-modern-fortranskill and the test policy:use ..., only:, large objectsclass(T), allocatablein testers,new/killsymmetry, assertions throughsimple_test_utils, tolerances named and derived, draws fromset_fixed_seed, gate rows throughsimple_test_gate(metrics.tsv), one!@descr:per file. Changes are verified as identical (section 6).
Exit: fusions done and verified, with the budget, registry, CMake, UI and policy in step; style changes verified; what was left, with the reason.
Phase 5: the CI workflow¶
Bring ci_test.yml to what the phases found:
- both platforms always finish (fail-fast: false);
- the test reports, metrics.tsv files and CTest logs are uploaded as
artifacts, also on failure;
- explicit job timeouts;
- groups of entries run as parallel jobs, each under its own 6-hour limit,
where the baseline shows it pays;
- entries the macOS runner cannot hold (registry mem_gb against 7 GB) are
handled explicitly, never silently skipped;
- whether a failed fast gate must keep a group's nightly entries from running
(Known 2). A change keeps the job red when the fast gate fails.
The report's retention (14 days) against the history a triage needs is Ruben's (testing plan, section 6): a proposal, not a change.
The YAML is checked locally (parsed, and with actionlint if present). A
workflow is only proven by its first run on GitHub; the report says so.
Exit: the workflow changed and checked, or the reasons it was left.
Phase 6: hot areas and their coverage¶
- Churn: over the last eight weeks (
git log --since='8 weeks ago' --no-merges --numstat, renames followed), per file and per subsystem undersrc/, testers excluded: commits, lines changed, and commits whose message names a fix. Bulk renames and moves are not churn. The hot areas are the top twenty files, and the subsystems they belong to. - Coverage: a scratch build directory configured with the coverage flags on
the CMake command line (
--coveragefor Fortran, C and C++, Release otherwise; nothing in the repository's CMake changes). Instrument the hot files only: with every file instrumented, the threaded entries of the first run were 13 to 39 times slower. Run the fast gate,ctest -L libraryandtest=nightlyfrom it; summarisegcov --json-formatper file and per tier (fast alone, and all tiers). The run's timings are not baseline timings. - For each hot area: its line coverage per tier, which entries reach it, and whether a test asserts its behaviour or a workflow only executes it. A hot area that only the high-level workflows execute, or that nothing executes, is poorly covered.
- For each poorly covered hot area, a proposed test: the guarantee it pins, its tier and suite (a sub-suite of an existing area suite before a new entry), how its expected values are derived independently of the code (test policy, section 2.1), its negative control, and its cost in run time, priced from the code it must run (a whole workflow, a fixture with noise spectra) before it is offered as a quick test.
Exit: the churn and coverage table of the hot areas, and the proposed tests.
Phase 7: verification and report¶
- Build from a clean configure in a scratch build directory, the fast gate,
then the full nightly again (
platform,library,test=nightly);test=identityof every one-thread entry against the Phase 0 baseline, except the entries a result-changing repair changes, which pass the Phase 1 rule instead. - The report
nightly_suite_triage_report.md, in the order of the plan guide (section 8): what was learned, Phase 1's verdicts first; what changed, phase by phase; decisions taken under delegation; deviations, and every file changed outside the table; the evidence (the status table before and after, profiles, identity comparisons); what is left open, as reported-not-gated items, data-dependent items (real data) and follow-up runs; a commit message. It also says what is not verified (macOS, the CI runners) and how to verify it, and resolves each item of Known at writing. - Add the run as evidence to section 6 of the consolidated testing plan.
- End with
git status.
Exit: the second nightly passes, or every failure in it is in the report with its class and proposal; every Phase 1 verdict is in the report.
10. File table¶
| file | why | phases |
|---|---|---|
doc/refactoring_notes/planned/nightly_suite_triage.md |
this plan: section 1 and Progress | each |
doc/refactoring_notes/planned/nightly_suite_triage_report.md |
the run's report | 7 |
doc/implementation_notes/planned/testing_and_benchmarking_plan.md |
the run as nightly evidence | 7 |
doc/policies/test_environment_policy.md |
entries, fusions, budget, timings, the 6vxx card's profile | 2 3 4 |
src/main/commanders/test/ |
high-level tests, fixtures, registry, runner | 2 3 4 |
src/main/exec/simple_test_exec_highlevel.f90, src/main/apis/simple_test_exec_api.f90 |
routers of the test programs | 2 4 |
src/main/ui/simple_test/ |
test UI programs and suite= help |
2 4 |
production/CMakeLists.txt |
CTest registrations, deadlines, budget | 2 3 4 |
scripts/check_test_registry.py, scripts/ctest_budget.py, scripts/run_fast_gate.sh |
the registry lint and the gate | 2 4 |
scripts/simple_args_generator.pl |
keys of the test front door | 2 4 |
.github/workflows/ci_test.yml, .github/workflows/ci_push.yml |
the nightly and push workflows | 5 |
src/main/learn/simple_hhcnn_tester.f90 |
the CI-only fast-gate failure (Known 2) | 2 |
src/main/learn/simple_hhcnn.f90 (if needed) |
a production repair of the chunked reduction's thread identity | 2 |
A repair, speed-up or fusion that touches other files adds them below, with the reason, before editing them.
Added by this run:
| file | why | phases |
|---|---|---|
Previous runs¶
- 2026-11-01/02 on the dell, interactive, base
eefc7e1a1: every red entry classified; CI split into four parallel groups andci_push.ymladded; one production repair (measured FFTW plans only without a fixed seed, for one-thread reproducibility); the test-code style review; nine proposed tests. Ruled and committed as4f3fed7e5. Its Progress is in this file atcfbad5a26and its report at4f3fed7e5(doc/refactoring_notes/planned/nightly_suite_triage_report.md). Its rulings are decisions 6 to 11; its lessons are in sections 7 and 9.
Progress¶
(written by the run, one entry per phase)