oficina / equipo Public

CI-PROGRESS: timings; print only cache misses whose inputs changed

Go's "input list not found" also appears for packages it then replays,
so only "test output not found" is reported as a miss.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by claude agent, operated by paul@keymail.dev 525890553e4ad71b38172b5c567205a97cb12a31 parent 88f8111
2 files changed, +30 −7
  • CI-PROGRESS.md +23 −2
  • scripts/ci-test.py +7 −5

CI passed — run details

diff --git a/CI-PROGRESS.md b/CI-PROGRESS.md
index 4357ae53..9521137d 100644
--- a/CI-PROGRESS.md
+++ b/CI-PROGRESS.md
@@ -93,6 +93,27 @@ Not addressed:
blind; the openAccount unlock fix may cover it if it was a lingering
lock. Quarantine it by name once a log shows it.
-## Timings
+## Timings (docs-t1 CI, whole job, sum of steps)
-See the branch report; measured on docs-t1 CI.
+Before (thin-v1-darwin 092d8ce, `-count=1`, load 25 to 40): 524 s, test
+step 450 s (headless alone 7m28s). thin-v1-claudetoken: test step 600 s.
+Every run paid this: a rerun after a flake, a docs edit, a one-package
+change.
+
+After (ci-speed, box load about 3 to 10 this evening, so not like for
+like):
+
+| run | job | test step | quarantine step |
+|---|---|---|---|
+| first run of the branch, nothing cached (5a1890a) | 511 s | 313 s (headless lane) | 114 s |
+| rerun, nothing changed (d747ee8) | 67 s | 13 s | 7 s |
+| one package changed, internal/tryequipo (88f8111) | 218 s | 165 s | 8 s |
+| testci changed, imported by most heavy packages (d747ee8) | 436 s | 286 s | 92 s |
+
+A one-package change reruns that package, its importers, and
+equipotest: its release and dead-reference tests read the whole tree
+(testci.RepoFiles), so it reruns on any commit (about 2.5 min).
+
+Needs a dedicated runner: strict per-package time budgets
+(`EQUIPO_CI_DEDICATED=1` in the runner's environment). runner/thin
+measured 52 to 74 s locally against its 45 s record, reported only here.
diff --git a/scripts/ci-test.py b/scripts/ci-test.py
index 3d0f54d8..a47bd215 100755
--- a/scripts/ci-test.py
+++ b/scripts/ci-test.py
@@ -158,8 +158,8 @@ def budget_test(packages, env):
def run_reporting_misses(cmd, env):
"""Run cmd with go's test cache debugging on, and print one line per
- package that missed the cache instead of go's ID-by-ID trace, so the
- log says what ran and, where go knows, why."""
+ package that missed the cache because its inputs changed, instead of
+ go's ID-by-ID trace."""
env = dict(env)
env["GODEBUG"] = ",".join(filter(None, [env.get("GODEBUG", ""), "gocachetest=1"]))
p = subprocess.Popen(cmd, env=env, stderr=subprocess.PIPE, text=True, bufsize=1)
@@ -169,10 +169,12 @@ def run_reporting_misses(cmd, env):
sys.stderr.write(line)
continue
m = re.match(r"testcache: (\S+): (.*)", line.strip())
- if m and m.group(1) not in missed and not m.group(2).startswith(("test ID ", "save ")):
+ # "test output not found" is go finding the test it ran before with
+ # different inputs. A test it has never run, or one it is about to
+ # replay after all, says only "input list not found": not printed.
+ if m and m.group(1) not in missed and m.group(2).startswith("test output not found"):
missed.add(m.group(1))
- reason = m.group(2).split(": cache entry not found")[0]
- print(f"cache miss: {m.group(1)}: {reason}", flush=True)
+ print(f"cache miss: {m.group(1)}: its inputs changed", flush=True)
return p.wait()