Repository navigation
Description
kind.yml's probe job (the Kubernetes executor end-to-end on a real cluster) has never once passed in CI, across every dispatch and schedule run. Four distinct causes were found and fixed; the first green run is still outstanding and is what this ticket is for.
What was wrong, in the order it was peeled back
| Fix | Cause |
|---|---|
| #614 | the probe gated on /healthz, a static literal that answers 200 while Postgres is unreachable; /readyz is the real signal. Also added the api() diagnostics that found the next cause. |
| #622 | the probe still called POST /v1/orgs/{org}/jobs, which stopped existing when the datasets work made every job route dataset-scoped (2026-11-04). It surfaced as a bare JSONDecodeError. |
| #624 | the executor classes requested cpu: "1" against a 2-vCPU runner with 1.55 already committed. The task pod sat Pending for the whole of phase 1's 420s budget, so it reported as "job never reached succeeded" — a timeout — rather than Insufficient cpu. |
| #610 | phase 6 needs three pods the budget never counted (idle colour + task pod + the re-fired pre-upgrade hook): 2.15 of ~2.0. |
The through-line is worth keeping: a pod the scheduler refuses sits Pending until the phase's wait expires, so every one of these surfaced as a timeout about a job rather than as the thing it was. #610 adds a cpu_budget preflight and an unconditional budget log so that class of failure names both figures instead.
What is left
-
Get one green six-phase run on
mainafter test(kind): prove a task pod survives a colour cutover (the half PR13 left out) #610 lands, byworkflow_dispatch. Nothing below is worth doing until that exists. -
Confirm
timeout-minutes: 120still fits six phases. It was sized for "the cold image build is ~40 min on its own" plus five phases. Measured 2026-11-06:kind upalone ran 30+ min, and phase 6 adds ~22 min ofhelm --waitand a 420s job wait. The first green run's step timings settle whether this needs raising — do not raise it on speculation, and note the comment's own worry is "a slow build and a slow pipeline together would cancel the job just before its most interesting assertion", which phase 6 now is. -
Re-decide the gate status, and fix the comment either way. The header currently reads:
Nightly + manual, and DELIBERATELY NOT a required check: the frontend-testing standard says a gate must be observed failing before it is trusted, and this one has not been yet.
That premise is now false — it has been observed failing four times, for four different reasons. The conclusion may well still hold (it builds a full release image in-job, which is the wrong cost for every PR), but it needs restating on the real grounds rather than on a stale one. Note test(kind): prove a task pod survives a colour cutover (the half PR13 left out) #610 already splits out a per-PR
assertionsjob that runs in ~1s, so the cheap half is covered; this is only about the two-hour cluster half.
Guardrails
kind.ymlhas apaths:filter, which is safe only because nothing in it is a required check. Making the probe required would mean removing the filter and adding adetectjob, exactly asfrontend.ymlhad to (ci-and-supply-chain).- The probe is not a required check today, so a red run there is information, not a merge blocker.
Activity
athvin commentedon Nov 6, 2026
Three things from the Phase 3/5 work that bear on the "re-decide its gate
status" half of this, posted here rather than as a second ticket (I opened one
before reading this — closing it as a duplicate).
The probe grew a fifth phase.
run_all_fullas seven pods: seven distinctJob objects, seven distinct pod uids, one launch each,
initpublishing arun_planat modefull,standardizepinning both the plan and the corpusingest's pod landed, and the run ledgeredfull @ v0001. It's the only phasethat can catch a stage reading what the previous stage's process wrote —
seed_lexicon's session-local table is the worked example.Its assertions have been observed failing; the workflow has not. Eight
planted defects, all eight caught with a legible message: a relaunched stage, a
missing pod uid, two stages sharing one Job, a lost
ingesthandoff, the wrongmode, a missing stage, a failed stage, a stage with no output. Plus the Phase 4
exit path — emptying
LEGACY_ARM_KINDSmakes the legacy half stand down ratherthan fail. So what's unobserved for gate purposes is the job going red, not
the checks being vacuous.
The trigger question is the real blocker, not the greenness. It builds the
full release image in-job, ~40 min cold, which is the wrong cost for every PR —
so it's
workflow_dispatch+ nightly today. A nightly-only required checkblocks every PR that hasn't had one, so making it required means deciding what
triggers it. Worth noting the timeout went 90 → 120 min in #477, because a cold
build plus seven sequential pods against a 30-minute wait was getting cancelled
just before the most interesting assertion.
One argument for requiring it, from the same work: phases 1–4 were silently
broken against main by the datasets route switchover and nothing caught it —
precisely because this workflow is nightly and billing had stopped it running.
(That's the same cause as #622 above; I hit it independently and fixed it in
#477 with a
jobs_pathhelper, so the call sites can't drift again.)athvin commentedon Nov 6, 2026
Two probe runs were in flight when this was filed — read them first
Both were dispatched before #624/#610 merged and will have finished after. Their branches were deleted on merge; the runs survived that and kept going.
assert_cpu_roompreflight)As of 02:28Z both were still in
kind up— 38 min and 22 min respectively — so neither had reached an assertion yet.What to look for
check_kind: node CPU budget: <req>m requested of <alloc>m allocatablenear the top of the probe step. This is the first time allocatable CPU on a GitHub runner will have been recorded. Every sizing decision invalues-kind.yamlassumes ~2000m; it was inferred, never observed (a 1-CPU request was refused with 1550m committed, which bounds allocatable below 2550m but does not pin it). If it is not ~2000m, redo both sums in that file.kind upactually took, and how much of the 120-minute budget phases 1–6 left. Run 42146041698 is the better control since it has no phase 6.assert_cpu_room, the message names needed-vs-free and that is the answer, not a mystery — the 450m constant is idle colour 100m + task pod 250m +er-schema-migrate100m, and it is asserted against a steady state measured at 1250m.Caveat worth stating plainly
#610 merged on its three required gates (rust, frontend, infra) plus the new per-PR
assertionsjob, which passed in ~1s. Phase 6 itself has never executed. That is not a regression — the probe step has never passed for any reason — but it does mean the cutover assertion is unexercised code until one of the runs above says otherwise.athvin commentedon Nov 7, 2026
Input for the "re-decide its gate status" half of this issue — and it argues against promoting it. See #814 for the full write-up.
The probe is green on
main(all six phases, exit 0, zero FAIL lines, verified on #756's branch). But it is also green with a genuine classifier row broken. Two rows iner_k8s::classify::terminalwere mutated, each deployed and each verified running byimageIDrather than by tag, and the probe passed both times:ApplyRecord(record)→TimedOut: unreachable on happy paths — clause (a) returns first (if row.finish_landed { return RecordEvidence }), because the pod reportsfinishthrough the attempt channel.RowState::Canceling→Wait: shadowed byexecutor.rs'scancel_sweep(), which callssettle_canceleddirectly (744–776, 1126, 1205).classify::terminalis a fallback layer whose rows are shadowed by the primary mechanisms, so this workflow header's standard — "a gate must be observed failing before it is trusted" — is not met by breaking the classifier, and cannot be. Restate the criterion against something the probe actually depends on before promoting it.Separately, local runs of the probe are unreliable for exactly this kind of exercise until #815 is fixed:
kind_env.shpins the mutable tagIMAGE_TAG=kindwith noimagePullPolicy, so a node holding that tag keeps the stale layer and a mutation silently never reaches the cluster.athvin commentedon Nov 8, 2026
Claimed — working in #837 (draft). Closing that PR releases the claim.
docs(kind): restate the probe's not-required decision on observed his…
athvin commentedon Nov 8, 2026
First green runs — recorded 2026-11-08
Step 1 was already satisfied before this claim. The 2026-11-07 nightly (run 42348330935, main at
59d3f60, after #610 merged 2026-11-06) ran all six phases green —ALL PHASES PASS— in 28m42s job time. Nobody recorded it here.Confirmed again on current main: dispatch run 42447724542 on
b586498, all six phases green.Step 2 settled: 120 holds with ~4x headroom; phase 6's feared ~22 min ran in about a minute both times. No raise.
Step 3: the gate stays non-required — restated on cost grounds (in-job release-image build is the wrong per-PR price; the ~1s
assertionsjob covers PRs) in #837, since the never-observed-failing premise is now false.docs(kind): restate the probe's not-required decision on observed his…