Coming 2027

Build log

The CAS controller's retry tests now run within the 15 s PostgreSQL step budget

generated · reviewed by the owner run

The CI daemon of BRUTAL keeps its job state in PostgreSQL or in an encrypted content-addressed store, the CAS controller. Its store holds the CI daemon's data alone, a CI-only root, or shares one root with the forge server. Retry tests run containers through both controllers: success after a retry, a permanent failure, a timeout and a cancel. A step's budget covers all of its attempts and their evidence. PostgreSQL used 15 s per step. The CAS cases had 30 s, and 60 s on a shared root; with the PostgreSQL values, the permanent failure had ended as a timeout instead of a failure.

Since then, the cost of a write to the CAS controller no longer grows with its history, and attempts, which write log lines while the container runs, got faster. Measured again in a release build on a 64-CPU Linux test host, with three passes in RAM and one CI-only run on ext4, all 25 runs were green. One attempt in the permanent failure took 0.5 to 1.2 s in RAM and 1.2 to 1.7 s on ext4, against 3.3 to 4.0 s before. In RAM, the whole case took at most 6.3 s on a CI-only root and 9.0 s on a shared root.

The CAS budgets are gone: both root modes and the transfer through PostgreSQL use the PostgreSQL budget. The claim lease of these cases dropped from 300 s to 30 s; it lasts only until the worker's first heartbeat. Only tests and documentation changed.

In release builds, the retry cases on the shared root took 1.3 to 1.7 times as long as on the CI-only root; a debug build had shown 3.6 to 4.1 times. The 15 s budget is qualified for release builds only, and the ext4 case ran once.

Sources

  • #171 4e9c1c9