.f0rge/ci/README.md 2.6 KiB 28 lines Raw

CI steps

The filename order is the run order. Exit 0 is a pass. The first non-zero exit fails the run.

StepWhat it proves
00_tools.shuv is present; CI installs it into the target cache if the host lacks it.
01_fmt.shThe workspace and every bundle are formatted.
02_clippy.shNo warning survives -D warnings in the workspace or a bundle.
03_check.shEvery engine crate and every standalone bundle builds; the in-repo fixtures test on the host, and an external engine only compiles.
04_shape.shNo unsafe in crates/, no version in a client route, twelve capability pages, workspace lints on every engine crate, own lints in every bundle, no external engine on a host path, and no host compilation in the image pipeline.
05_goldens.shThe engine runs against the real binary and the client survives every fault.
06_build.shThe engine and every bundle build; every process bind has a binary at the path that section 17 rule 9 names, and a container bind only has to name an image. The mixed fixture proves both paths.
07_release.sh [version]A release directory holds the binaries, the unit, and the install script. CI uses 0.0.0-ci when no version is given.
08_image.shThe control image builds with digest-pinned bases and records their resolved refs in target/control.lock; ops/images.sh builds and checks the mock bundle's own self-contained image; that final image runs through the container gate. A host without docker fails.
09_bundles.shEvery bundle directory has the five parts and a golden, ignores model/, tracks no weights, and matches its digest. Fixtures run their host golden; external engines are skipped on the host and belong to the container gate.
10_install.shinstall.sh stages both binaries and the unit from a checkout and from a release directory.
11_compose.shThe compose control starts its sibling mock engine, the token and state survive a restart, and the same image passes the container gate.

There are twelve steps. The runner is .f0rge/ci/ci.env: runner: local, a target directory, and the uv path that step 00 fills. It is local because the container gate and the compose proof need the host Docker socket; the engine bundles still run only in their containers. The host executes engine-neutral crates and the in-repo fixtures (mock, toy, echo). An external engine is compiled in 03/06 and judged only through its image in 08; rule 12 of 04_shape.sh fails a step that names one on a host execution path, and rule 13 fails ops/images.sh if it compiles on the host.

view raw