Merge branch 'hosted-ci-notes' into main
Merge hosted-ci-notes: machine load per lane; hosted flake log Each lane ends with one line of load and CPU, memory and disk pressure. HOSTED-CI-PROGRESS.md lists the flakes seen on hosted.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2 files changed,
+47
−1
docs/superpowers/plans/HOSTED-CI-PROGRESS.md+28 −0scripts/ci-test.py+19 −1
CI passed — run details
diff --git a/docs/superpowers/plans/HOSTED-CI-PROGRESS.md b/docs/superpowers/plans/HOSTED-CI-PROGRESS.md| index cd193534..e22effdc 100644 |
| --- a/docs/superpowers/plans/HOSTED-CI-PROGRESS.md |
| +++ b/docs/superpowers/plans/HOSTED-CI-PROGRESS.md |
| @@ -143,6 +143,34 @@ In the merge run: prepare 11 s, compile 39 s (core packages changed), |
| checks 92 s, perf 25 s; the runner lanes it did not touch replayed from |
| the cache. |
| +On `oficina/equipo` itself (hosted on at 32 CPUs since 2026-11-11): |
| + |
| +| run | what | steps | |
| +|---|---|---| |
| +| cdc159e | `hosted-ci` tip, cold (the repository had no cache yet) | 216 s, green | |
| +| 4462596 | main after the merge, cold | red twice, then 201 s, green | |
| + |
| +## Flakes seen on hosted |
| + |
| +Main went green on its third run. Each red was one test, a different one |
| +each time, in a run where all 24 shards started on an empty cache: |
| + |
| +| test | runs | what it said | |
| +|---|---|---| |
| +| TestHeadless/1_first_token (headless) | 2 | `runner exited: provider_uncertain` after 45 s | |
| +| TestContractTransferTooLarge (thintest) | 1 | `waiting for send_pack: context deadline exceeded` after 45 s | |
| +| TestNamespaceRecoveryCrashBeforeExit (containment, in runner-host) | 1 | `invalid argument` | |
| +| TestCoordinatorRecoveryCallRefusalKeepsServing (runner) | 1 | `runner.invalid` | |
| +| TestGateVerifyByMarkerAlone (runner/mac) | 2 | fixed: the test raced the child's exec | |
| + |
| +The transfer and first token ones are the family CI-PROGRESS.md already |
| +lists (timeouts under load). None is quarantined yet: a quarantined test |
| +is retried once in the quarantine shard, and whether to widen that to |
| +"retry any failed test once and say FLAKE" is Paul's call. Each lane now |
| +ends with a `machine:` line (load, and how long tasks waited for CPU, |
| +memory and disk), so the next red run says whether the machine was the |
| +cause. |
| + |
| ## Open |
| - Timing budgets are reported, not enforced (`EQUIPO_CI_DEDICATED` is |
diff --git a/scripts/ci-test.py b/scripts/ci-test.py| index e148a643..86126811 100755 |
| --- a/scripts/ci-test.py |
| +++ b/scripts/ci-test.py |
| @@ -270,6 +270,22 @@ def run_compile(): |
| return subprocess.call(cmd) |
| +def machine_load(): |
| + """One line on how busy the machine was, for whoever balances the |
| + shards or meets a timeout: the load average, and the share of the last |
| + minute some task waited for a CPU or for memory.""" |
| + parts = [] |
| + try: |
| + with open("/proc/loadavg") as f: |
| + parts.append("load " + f.read().split()[0]) |
| + for name in ("cpu", "memory", "io"): |
| + with open("/proc/pressure/" + name) as f: |
| + parts.append(name + " waiting " + f.readline().split("avg60=")[1].split()[0] + "%") |
| + except (OSError, IndexError): |
| + pass |
| + print(f"machine: {os.cpu_count()} CPUs, " + ", ".join(parts), flush=True) |
| + |
| + |
| def run_shard(): |
| index = int(os.environ.get("AMADAN_SHARD", "-1")) |
| count = int(os.environ.get("AMADAN_SHARD_COUNT", "0")) |
| @@ -278,7 +294,9 @@ def run_shard(): |
| sys.exit(f"ci-test: shard {index} of {count}, but there are {len(LANES)} lanes and " |
| f"{len(EXTRA_SHARDS)} extra shards; name the step 20-check@{shards}") |
| if index < len(LANES): |
| - return run_lane(LANES[index][0]) |
| + status = run_lane(LANES[index][0]) |
| + machine_load() |
| + return status |
| targets = EXTRA_SHARDS[index - len(LANES)] |
| print(f"shard {index}: make {' '.join(targets)}", flush=True) |
| # runner-host reruns tests the lanes ran; the quarantine shard beside |