Skip to content

The kind probe has never passed in CI — land the first green run and re-decide its gate status #655

Closed

Description

@athvin

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

  1. Get one green six-phase run on main after test(kind): prove a task pod survives a colour cutover (the half PR13 left out) #610 lands, by workflow_dispatch. Nothing below is worth doing until that exists.

  2. Confirm timeout-minutes: 120 still 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 up alone ran 30+ min, and phase 6 adds ~22 min of helm --wait and 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.

  3. 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 assertions job that runs in ~1s, so the cheap half is covered; this is only about the two-hour cluster half.

Guardrails

  • kind.yml has a paths: filter, which is safe only because nothing in it is a required check. Making the probe required would mean removing the filter and adding a detect job, exactly as frontend.yml had 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

  1. added
    ci-backlog
    on Nov 6, 2026
  2. athvin commented on Nov 6, 2026

    @athvin
    OwnerAuthor

    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_full as seven pods: seven distinct
    Job objects, seven distinct pod uids, one launch each, init publishing a
    run_plan at mode full, standardize pinning both the plan and the corpus
    ingest's pod landed, and the run ledgered full @ v0001. It's the only phase
    that 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 ingest handoff, the wrong
    mode, a missing stage, a failed stage, a stage with no output. Plus the Phase 4
    exit path — emptying LEGACY_ARM_KINDS makes the legacy half stand down rather
    than 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 check
    blocks 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_path helper, so the call sites can't drift again.)

  3. athvin commented on Nov 6, 2026

    @athvin
    OwnerAuthor

    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.

    Run Content What it isolates
    42146041698 #624 only (classes 250m, api/dispatcher still 250m) phases 1–5. No phase 6 on that branch, so this is a clean test of whether the CPU fix alone makes the probe reach the end.
    42148011553 #610 (adds phase 6, the 100m headroom and the assert_cpu_room preflight) all six phases.

    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 allocatable near the top of the probe step. This is the first time allocatable CPU on a GitHub runner will have been recorded. Every sizing decision in values-kind.yaml assumes ~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.
    • The step timings, for item 2 above: how long kind up actually 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.
    • If phase 6 fails on 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-migrate 100m, 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 assertions job, 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.

  4. athvin commented on Nov 7, 2026

    @athvin
    OwnerAuthor

    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 in er_k8s::classify::terminal were mutated, each deployed and each verified running by imageID rather 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 reports finish through the attempt channel.
    • RowState::Canceling → Wait: shadowed by executor.rs's cancel_sweep(), which calls settle_canceled directly (744–776, 1126, 1205).

    classify::terminal is 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.sh pins the mutable tag IMAGE_TAG=kind with no imagePullPolicy, so a node holding that tag keeps the stale layer and a mutation silently never reaches the cluster.

  5. self-assigned this
    on Nov 8, 2026
  6. athvin commented on Nov 8, 2026

    @athvin
    OwnerAuthor

    Claimed — working in #837 (draft). Closing that PR releases the claim.

  7. athvin commented on Nov 8, 2026

    @athvin
    OwnerAuthor

    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.

    2026-11-07 nightly 2026-11-08 dispatch
    kind up + image 25m36s 29m04s
    probe (six phases) 3m04s 3m26s
    job total vs 120 budget 28m42s 33m51s

    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 assertions job covers PRs) in #837, since the never-observed-failing premise is now false.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

ci-backlog

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions