Skip to content

eBPF-based security platform

testing: say that CI does not run the proofs

Daniel Borkmann418d89ad2ae2
diff --git a/.agents/skills/proofs/SKILL.md b/.agents/skills/proofs/SKILL.md
index 7dfb597d..15bc8541 100644
--- a/.agents/skills/proofs/SKILL.md
+++ b/.agents/skills/proofs/SKILL.md
@@ -20,9 +20,11 @@ testing/proofs/cbmc/run.sh -v <proof> # whole output and traces
make proofs-lean4 # the Lean 4 proofs
```
-Cap the memory of a long run, `ulimit -v 24000000` in the shell that
-starts it: a proof that grows past a few gigabytes is one to reshape, not
-to wait for.
+CI does not run the proofs, as all of them take about an hour: run the
+ones covering the code you changed by name, and all of them after a
+change to `proof.h` or `run.sh`. Cap the memory of a long run, `ulimit
+-v 24000000` in the shell that starts it: a proof that grows past a few
+gigabytes is one to reshape, not to wait for.
## Write
diff --git a/AGENTS.md b/AGENTS.md
index f28a52ab..e566baf1 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -309,9 +309,11 @@ one usually still compiles and passes tests.
- `make proofs` runs the CBMC proofs of `testing/proofs/cbmc/`, which
check parsers and emitters for every input within a bound, and the Lean
4 proofs of `testing/proofs/lean4/`, which prove models of algorithms
- for every input. A change to code a proof covers, or to an algorithm a
- model follows, runs them, and a new parser gets a proof where CBMC can
- carry one; the `proofs` skill says how.
+ for every input. CI does not run them: a full run takes about an hour.
+ A change to code a proof covers, or to an algorithm a model follows,
+ runs those proofs by name, all of them after a change to `proof.h` or
+ `run.sh`, and a new parser gets a proof where CBMC can carry one; the
+ `proofs` skill says how.
- CI runs `.github/scripts/build-commits.sh`, `check-style.sh`,
`check-dco.sh`, `check-coccinelle.sh`, `check-sparse.sh`,
`check-spdx.sh` and the documentation check on every pull request;
diff --git a/Documentation/contribute/testing/proofs.rst b/Documentation/contribute/testing/proofs.rst
index fb68a4c9..aab77984 100644
--- a/Documentation/contribute/testing/proofs.rst
+++ b/Documentation/contribute/testing/proofs.rst
@@ -60,7 +60,11 @@ Run the proofs
Each CBMC line names a proof, the number of checks CBMC made and the
time it took, and ``proofs: <n> hold`` ends a run in which all of them
- held. ``Build completed successfully`` ends the Lean 4 run.
+ held. ``Build completed successfully`` ends the Lean 4 run. CI does
+ not run the proofs: all of them take about an hour, a few of them
+ minutes and gigabytes each. Run the ones that cover the code you
+ change by name, as the next step shows, and all of them after a
+ change to ``proof.h`` or ``run.sh``.
2. Run one kind, or some CBMC proofs by name: