Skip to content
suit Check-in [79385a1b35]
Login

Check-in [79385a1b35]

Overview
Comment:suit install retries a load that failed, and says so until it works

When the loader fails, suit install now writes one item to the attention file: timers load: written but not loaded, with the loader's name and exit status, or could not run when it never started. suit status and suit status --line show it. Running suit install again, with the files unchanged and that item present, loads again in place of saying already installed. A success removes the item; suit uninstall removes it too. If writing the item fails as well, install still exits 3 and reports both.

make quick now rebuilds the dev binaries before it runs, so it cannot test a stale build.

49 new shell cases. 1269 unit checks, 477 shell cases, 669 store cases, 612 placement cases and 378 project cases, under clang, under gcc 16, with no user name set, and under a strict umask, in one run of make gate (31 minutes). 100% coverage in all 23 source files. No suite has fewer cases than at the last check-in.

Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 79385a1b35a8f24ce24378111973caf2378e1326da6bc18a97948305db4eb070
User & Date: dmestas on 2026-11-14 11:41:21.331
Other Links: manifest | tags
Context
2026-11-14
13:15
Phase 8a: needs are checked, listed, and shown until they are done

A need is a step a harness must do for itself, such as registering a slot in its own settings. suit never edits those settings; it says what is needed and can tell when it has been done.

The done test has two forms and nothing else: PATH exists, and PATH contains "TEXT". suit needs lists every need as done, not done or cannot tell, and changes nothing. suit need HARNESS NAME prints the prompt's exact bytes so it can be handed to the harness.

After each apply the attention file holds one item for each need not done and none for those that are. Other kinds of item are left alone and keep their order, and nothing is written when nothing changed. If that update fails, apply writes no stamp, so the next run tries again. A bad need stops apply before it places anything. suit off removes the items.

suit-run is untouched and the speed budget still passes.

An eighth fuzz target covers the done-test parser.

1355 unit checks, 479 shell cases, 669 store cases, 745 placement cases and 378 project cases, under clang, under gcc 16, with no user name set, and under a strict umask, in one run of make gate (34 minutes). 100% coverage in all 24 source files. No suite has fewer cases than at the last check-in. check-in: 3598f9d78d user: dmestas tags: trunk

11:41
suit install retries a load that failed, and says so until it works

When the loader fails, suit install now writes one item to the attention file: timers load: written but not loaded, with the loader's name and exit status, or could not run when it never started. suit status and suit status --line show it. Running suit install again, with the files unchanged and that item present, loads again in place of saying already installed. A success removes the item; suit uninstall removes it too. If writing the item fails as well, install still exits 3 and reports both.

make quick now rebuilds the dev binaries before it runs, so it cannot test a stale build.

49 new shell cases. 1269 unit checks, 477 shell cases, 669 store cases, 612 placement cases and 378 project cases, under clang, under gcc 16, with no user name set, and under a strict umask, in one run of make gate (31 minutes). 100% coverage in all 23 source files. No suite has fewer cases than at the last check-in. check-in: 79385a1b35 user: dmestas tags: trunk

10:41
The test gate runs in half an hour, not eighty minutes, and loses nothing

make check now runs the unit program and the four shell suites side by side, each to its own log, then prints them in the fixed order and fails if any failed. JOBS=1 gives the old one-after-another order, and a machine with fewer than four cores gets it by default. In test/store.sh the two sync fault sweeps and the clone fault loop run one worker per fault, each with its own remote and machines under a private folder of the same depth, so the same code paths run as before.

Measured on a loaded machine: make check 847 s to 276 s, make cover to 83 s, the whole four-run gate to 30 minutes.

Nothing was removed, renamed, skipped or made to assert less. The list of case names is identical before and after, the counts are unchanged, and coverage is still 100% in 23 files. No product code changed.

Two new targets. make quick SUITE=NAME runs one suite three ways: as it is, with no user name set, and under a strict umask; it is the first thing to run after touching a suite. make gate runs the whole local gate as one command.

One test fixed. a-link-already-gone-is-dropped-quietly looked for the bare text s1 in the ledger, which the scratch folder's random name can contain, so it failed about once in a few hundred runs. It now looks for the link's full path, and requires both no output and the path gone, where before any output at all let it pass.

1269 unit checks, 428 shell cases, 669 store cases, 612 placement cases and 378 project cases, under clang, under gcc 16, with no user name set, and under a strict umask. check-in: c3280ef4fa user: dmestas tags: trunk

Changes