Findings¶
Measured on 29 November 2026 with Ichnos itself, in a Linux container on an arm64 Mac. On a GitHub-hosted runner only Ichnos's own tests and its action have run: tracing works there, low-overhead mode included, and a second run on unchanged files is skipped through the shared memory.
Does it work¶
| Check | Result |
|---|---|
| Unit and end-to-end tests | 67 pass on Linux under each tracer, and on a GitHub-hosted runner |
ai-running-coach, 1,119 unittest classes |
1,111 remembered, 8 fail in the container |
home-assistant-csnet-home, 35 pytest files |
33 remembered, 2 fail in the container; second run skips all 33 |
Tracing overhead, ai-running-coach |
1.6× elapsed (201 s to 327 s on 8 CPUs), 1.3× CPU time |
Tracing overhead, csnet-home |
1.2× CPU time (61 s to 74 s) |
Memory size, ai-running-coach |
about 8 KB per unit, uncompressed |
The overhead is well under the 3.7× of the first spike, because strace --seccomp-bpf only stops
the process on the syscalls Ichnos needs.
Is a skip ever wrong¶
Jump of 12 merges (5 to 25 November), ai-running-coach. Results remembered at the old commit,
then checked at the new one. 22 classes were skipped. Run anyway, all 22 passed and read exactly
the same files. The sample is small because three weeks of changes invalidated nearly everything.
Merge by merge over the same 12 merges. Ichnos runs at each merge with the memory built so
far, then every skipped class is run anyway and compared (validation/walk.py). Final run:
| Skips audited | 8,126, out of 13,537 class runs |
| Skipped classes that failed when run anyway | 0 |
| Skipped classes whose footprint differed when run anyway | 0 |
| Test time skipped | 43% (12,745 of 29,351 CPU seconds) |
| Classes skipped per merge | from 63 to 1,122 of about 1,130 |
The audit was run three times, and each of the first two found a bug that is now fixed:
- Copying a
.pyccounted as reading its source. Footprints of some tests went from about 15 files to about 100. An error on the safe side: needless runs, no wrong skip. - Padded
stracelines were dropped.stracepads the result of a short line with spaces, and those lines were ignored: about one call in a thousand. A read lost that way left the file out of the footprint, so a wrong skip was possible. It showed as 10 footprints that differed between two runs of the same test.
The second run also had one wrong skip, caused by a flaky test:
test_llm_subscriptions.ReviewFixTests fails in the container at 12 of 13 revisions, passed once,
and was skipped at the next merge. Ichnos now remembers failures and puts a pass that follows a
failure on probation (design), which would have caught it. That rule was
added after the final run, where the test happened never to pass, so the audit does not show it
at work.
Not yet repeated with the real tool: the mutation test of the feasibility study.
What it costs in waiting time¶
Skipping 43% of the test time did not make ai-running-coach faster. Elapsed time of the suite on
8 CPUs, second audit run:
| Seconds | |
|---|---|
| Without Ichnos (measured at one revision) | 201 |
| With Ichnos, mean of the 12 merges | 198 |
| With Ichnos, median merge | 185 |
| Best three merges, nearly everything skipped | 33 to 34 |
| Worst five, nearly everything run again | 269 to 399 |
Tracing costs 1.6× here. A merge that touches a module read by most tests runs everything, traced, and those merges cancel the gain of the others. The elapsed times of the final run are not used: other work was running on the machine.
Where the tracing time goes¶
60 classes of ai-running-coach taken at random, one at a time:
| Seconds | Relative | |
|---|---|---|
| Plain | 59.5 | 1× |
Under strace, as Ichnos runs it |
125.1 | 2.1× |
Under strace without --seccomp-bpf |
179.7 | 3.0× |
| Ichnos reading the traces afterwards | 14.6 | +0.25× |
strace itself is four fifths of the cost. A class makes about 24,000 traced calls, and in the
trace examined 71% of them are newfstatat: Python probing for modules.
The eBPF tracer¶
The whole suite of ai-running-coach (1,140 classes, 8 at a time), each tracer twice:
| Result | |
|---|---|
Remembered by strace / by eBPF |
1,132 / 1,132 (the other 8 fail) |
| Classes eBPF would not vouch for | 0 |
| Same footprint under both tracers | 1,131 of 1,132 |
| Same footprint on two runs, eBPF | 1,132 of 1,132 |
Same footprint on two runs, strace |
1,132 of 1,132 |
The one difference is eBPF being right. TestMacReleaseSigning writes its own
scripts/fetch-sparkle.sh in a temporary folder and runs it by that relative name. The strace
reader did not know the working directory of that new process and took it for the repository's
file of the same name. A needless dependency there, but the same confusion could hide a real one:
a known weakness of the strace reader, not fixed.
Elapsed time, first round (the second was disturbed by other work on the machine):
| Seconds | Relative | |
|---|---|---|
| Plain | 158 | 1× |
| eBPF | 225 | 1.4× |
strace |
327 | 2.1× |
Reading the trace was then made faster (a path without escapes is not decoded, what a path stands for is remembered, a path looked at many times is recorded once), with identical footprints for all 1,132 classes under both tracers. Where the time of an eBPF run goes now, two runs:
| Seconds | |
|---|---|
| Running the tests | 192 and 209, against 148 and 179 plain |
Waiting for bpftrace to finish writing |
10 and 7 |
| Reading the trace | 24 and 24 (about 44 before) |
| Remembering the results | 1 |
| Whole run | 226 and 242: 1.4× plain, as before |
So the faster reading did not shorten the whole run. Run one at a time, the tests are not slowed
by eBPF (60 classes: 55 s against 51 to 56 s plain). Eight at a time they are, by 30 to 40 s,
and bpftrace is still several seconds behind when they end: it writes 1.5 GB of text from a
single thread. Plain runs on this machine also vary by 30 s from one to the next, so these
figures are rough. The next gain is in producing fewer events, not in reading them faster.
Fewer events were then reported: looks at paths under system folders (23% of the events of a
sample of 240 classes, Python looking for its modules), the end of folder listings and fcntl
commands that change nothing. 28% fewer events on that sample, and the same footprints for all
1,132 classes of the whole suite. Leaving out every look already seen in the same unit would
remove 43% of the events, but bpftrace can only do that with a table of several hundred
megabytes in the kernel.
Elapsed time of the whole suite after that, in the order the runs were made:
| Run | Seconds |
|---|---|
| Plain | 194 |
| eBPF | 221 (tests 192, waiting for bpftrace 7, reading 21) |
| Plain | 269 |
| eBPF | 177 (tests 161, waiting for bpftrace 4, reading 11) |
| Plain | 151 |
Plain runs range from 151 to 269 s on this machine, more than the difference being measured. Fastest against fastest, eBPF is at 1.2× plain. A quieter machine is needed to say more.
On GitHub's runners¶
The whole suite of ai-running-coach (1,140 classes, 4 at a time) on three hosted runners
(4 processors, Linux 7.0, bpftrace 0.25), each running it plain, with eBPF and with strace,
in a different order:
| Runner | Plain | eBPF | strace |
Second run, everything skipped |
|---|---|---|---|---|
| 1 | 461 s | 586 s, 1.27× | 823 s, 1.79× | 2 s |
| 2 | 631 s | 840 s, 1.33× | 1,237 s, 1.96× | 3 s |
| 3 | 445 s | 573 s, 1.29× | 853 s, 1.92× | 2 s |
- eBPF costs 1.3×,
strace1.8× to 2×. Under eBPF the tests take 13% to 20% longer, and reading the trace afterwards adds 48 to 75 s. - Deciding to skip 1,140 classes takes 2 to 3 seconds.
- Same footprints. 1,136 of the 1,137 classes both tracers remembered have the same footprint; the other one is the class described above, where eBPF is right.
- eBPF refused 3 classes because they use io_uring, whose file accesses are not syscalls.
straceremembered them without noticing: a blind spot ofstracefound on a real project.
On a GitHub-hosted runner (4 processors, Linux 7.0, bpftrace 0.25): a session starts in 0.8 s
and stops in 0.3 s, all four processors are seen, and the 67 tests of Ichnos pass under eBPF.
How much it saves¶
ichnos estimate replays the last 100 commits of the main line against today's footprints.
The ai-running-coach line was measured after the two fixes, the other one before.
| Repository | Units | Work still run, mean | Median commit | Commits running nothing | Commits running 90% or more |
|---|---|---|---|---|---|
ai-running-coach |
1,132 classes | 58% | 68% | 3 | 38 |
home-assistant-csnet-home |
33 files | 54% | 29% | 16 | 46 |
ai-running-coach gains little per commit. A handful of modules are read by more than 800 of its
classes (coach_config.py, arc_contract.py, arc_metrics.py), and 18 of the last 100 commits
touch one of them. Coupling in the code, not the tracing rules, sets the limit.
The other repositories¶
Share of merged pull requests whose merge commit has exactly the files of the pull request's last
commit. For those, the run on main repeats a run that already passed, and Ichnos would skip all
of it if the pull request's results are in the shared memory.
| Repository | Main workflow, median | Identical merges | Worth it |
|---|---|---|---|
graft |
CI, 6.0 min | 30 of 38 | Yes |
ai-nutrition-coach |
ci, 5.9 min | 27 of 39 | Yes |
leanproxy-mcp |
Test 3.9 min + Lint 2.5 min | 34 of 40 | Yes |
proton-faces |
Test 2.9 min, publish 5.1 min | 15 of 37 | Partly: a third of Test runs are scheduled |
ai-finance-coach |
CI, 2.9 min | 14 of 38 | Modest |
home-assistant-csnet-home |
Replay samples 18.4 min (pull requests only), others under 2 min | 26 of 40 | For the replay job |
paeon |
CI, 1.3 min | 39 of 40 | Little to gain: already fast |
mornati-blog |
build 1.5 min, deploy 2.5 min | 26 of 40 | Little to gain |
pinakas, system-one-router, ai-email-assistant, home-assistant-mel-garbage-collection |
under 1 min | most | No |
Durations are whole workflow runs, setup included. All these repositories are public, so the gain is waiting time, not money.
ai-running-coach, the run on main¶
The same question, asked to GitHub with ichnos passed-in-pull-request for the last 40 commits of
main and every job of the Tests workflow (3 to 11 minutes per run): 11 would not have repeated
them, 18 came from a pull request that was not up to date, and 11 from a pull request on which not
all of those jobs ran.
Only the two repositories in the previous section were traced with a passing result.
ai-nutrition-coach¶
It is a Node and pnpm monorepo (Vitest, Playwright, docker), not Python.
- Tracing follows Node. One traced
pnpm testgave a footprint of 898 of the 1,323 files, among themdocs/,infra/nginxand the workflow files that the repository's hand-written path filter lists by hand as "read by the unit tests". - Tracing is expensive on Node. On an idle machine,
pnpm testtakes 57 to 78 s plain. Traced, the command takes 115 to 187 s (2× to 2.4×) and Ichnos then needs about 50 s more to read the trace, so close to 3× in all. - Time limits break. One test with a 5 s limit took 10 s under tracing and failed in one traced run out of two. Another test of the suite is flaky in the container even without tracing.
- As a single unit the suite reads two thirds of the repository, so tracing would add little over the existing path filter. Splitting it per test file was not tried.
- The sure gain needs no tracing.
ichnos passed-in-pull-requestasks GitHub whether the merged pull request passed the same jobs on the same git tree. Replayed on the last 40 commits ofmain: 15 would not have repeated their tests, 10 came from a pull request that was not up to date, and 15 from a pull request whose tests the path filter had skipped. The 27 of 39 in the table above counted identical files only, not whether the tests had run. - Seen working. The change was merged in ai-nutrition-coach#80. Its own merge was the first
case: on
main, unit, unit-dst, build and both e2e jobs were skipped,ci-okwas green and the image was published. The whole run took 3.7 minutes, against a median of 5.9.
The run on main, in four repositories¶
ichnos passed-in-pull-request is now merged in four repositories. In each, the merge of the
pull request that added it was the first case, and the run on main skipped as expected.
| Repository | Skippable, of the last 40 commits of main |
Run on main after the merge |
Before |
|---|---|---|---|
ai-nutrition-coach |
15 | 3.7 min: unit, build and e2e skipped, image and publish run | 5.9 min median |
graft |
11 | 17 s: everything skipped | 6.0 min median |
ai-running-coach |
22 | 18 s: everything skipped | 3 to 11 min |
leanproxy-mcp |
about 30 | Lint 30 s instead of 2.5 min. Test unchanged, about 5 min: the test job still runs for the Codecov base report |
"Skippable" was replayed against GitHub's records before the change, not observed over time.