Skip to content
suit Check-in [6d70dcc76a]
Login

Check-in [6d70dcc76a]

Overview
Comment:Phase 1: the config parser, the no-change run and the speed bench

suit check parses suit.conf strictly and prints a canonical dump. Any unknown kind or key, duplicate, cycle or dangling name rejects the whole file with its line number.

suit run compares a stamp against the files it names and exits without writing, allocating or printing when nothing changed.

suit bench times suit run against an empty program built the same way and against /usr/bin/true, interleaved, and fails the build when the no-change run costs more than 1 ms over the empty program or 1 MiB more memory. It measured 0.65 to 0.94 ms over, quiet and under load. A system binary starts 0.6 to 1.5 ms faster than any built binary on macOS, so it is shown for information and is not the baseline.

94 unit checks, 100 shell cases and a libFuzzer target for the parser.

Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 6d70dcc76a002270f29c05b88b7099db0ddd33d828c0095096c9201ddc028b79
User & Date: dmestas on 2026-11-12 19:36:41.674
Other Links: manifest | tags
Context
2026-11-12
21:17
Every branch of suit's own code is tested, and the gates that keep it so

make cover fails unless every function, line, region and branch in src/ is run by a test. Every system call goes through a wrapper in platform.c that a test build can make fail, so failed-call branches are tested too. The release binary carries none of that code, and a test checks it.

Also: ensure() for invariants, a wider warning set as errors, the clang static analyzer, a second fuzz target for the stamp reader, a replay binary for saved fuzz inputs, a release build that the speed budget now measures, and make ci for the forge's Linux runner: the suite under gcc's sanitizers, then under a pinned Fil-C.

210 unit checks and 214 shell cases. The no-change run measured 0.56 to 0.60 ms over an empty program with the release build.

The Fil-C run and the Linux build have not been run yet. They run first on the forge's runner.

Decisions recorded: the wardrobe is two repositories, libfossil is used through its C API with suit's own file writer, and where each gate runs. check-in: 3f905be4f2 user: dmestas tags: trunk

19:36
Phase 1: the config parser, the no-change run and the speed bench

suit check parses suit.conf strictly and prints a canonical dump. Any unknown kind or key, duplicate, cycle or dangling name rejects the whole file with its line number.

suit run compares a stamp against the files it names and exits without writing, allocating or printing when nothing changed.

suit bench times suit run against an empty program built the same way and against /usr/bin/true, interleaved, and fails the build when the no-change run costs more than 1 ms over the empty program or 1 MiB more memory. It measured 0.65 to 0.94 ms over, quiet and under load. A system binary starts 0.6 to 1.5 ms faster than any built binary on macOS, so it is shown for information and is not the baseline.

94 unit checks, 100 shell cases and a libFuzzer target for the parser. check-in: 6d70dcc76a user: dmestas tags: trunk

19:36
Start the rewrite: vocabulary, decisions, evidence and phases check-in: ac44a32bed user: dmestas tags: trunk
Changes
Added Makefile version [c9209a03df].
Added src/bench.c version [3e12a900e7].
Added src/bench.h version [7fbc715b57].
Added src/conf.c version [4340f4760e].
Added src/conf.h version [8e9274fc6e].
Added src/main.c version [fe656958b1].
Added src/platform.c version [9c7db28676].
Added src/platform.h version [af1b8d9b45].
Added src/stamp.c version [8d5f4ab476].
Added src/stamp.h version [9fbff308f3].
Added test/budget.sh version [e763027f8d].
Added test/empty.c version [ef30bf8ab4].
Added test/fuzz.c version [c6b31b0c77].
Added test/run.sh version [7f4fea22aa].
Added test/unit.c version [48c4f2f994].