Skip to content

CI only: acceptance for #201 at 0d32bb2d - #244

Closed
scotwells wants to merge 11 commits into
feat/registration-stage-2from
ci/accept-201
Closed

scotwells wants to merge 11 commits into
feat/registration-stage-2from
ci/accept-201

Conversation

@scotwells

Copy link
Copy Markdown
Contributor

CI only. Runs the multi-plane acceptance (local VM and Redfish) for #201 at 0d32bb2, with the #208 and #232 workflow commits on top. Not for review or merge; closed and deleted once the run passes.

🤖 Generated with Claude Code

scotwells and others added 11 commits November 27, 2026 21:56
Agents queued for one shared Colima VM to run the multi-plane
acceptance. This runs both modes on disposable GitHub-hosted runners.

Make the runtime, Docker context, site architecture and guest
accelerator explicit run parameters whose defaults leave the Colima run
unchanged. CI mode requires a GitHub-hosted runner, its own Docker
socket and a usable /dev/kvm, probes the runner directly, never calls
Colima, and fails closed on any accelerator it cannot honor.

Local VM mode runs its guest under KVM. The site runtime refuses KVM
without /dev/kvm and publishes its accelerator. A worker runs only
against a runtime with its own accelerator, and each installation's
journaled boot admission binds it. Evidence requires the domain
definitions and every QEMU command line to show it. Redfish lab targets
stay on TCG.

The Pod and Job interruptions now land on an installer guest held
paused once its kernel prints, so they no longer depend on install
speed. A guest that printed its receipt first fails the run.

The workflow runs on demand, nightly, and when a pull request gets the
multiplane-acceptance label. It records the tested commit, rescans and
redacts evidence after any outcome, uploads only evidence/, samples
runner memory, and passes only when every phase and teardown passed. A
redacted secret fails the job. Milo is pinned by its multi-arch index,
whose arm64 entry is the previous pin.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The installer traces its commands on the serial console that the kernel
also prints to, so a kernel message can land at the start of the line
that carries the one traced sfdisk command. Evidence counted only lines
starting with the trace and failed a run whose install had partitioned
the disk exactly once and printed its one receipt: the Redfish job on
this branch failed that way.

Count the trace wherever it appears in the log, still requiring exactly
one, and report the count on failure.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Counting the sfdisk shell trace anywhere on a line was not enough: a
later local VM run found it zero times after an install that printed
its one receipt. The shell writes its trace to the serial console in
pieces, and the kernel's own messages can land between them.

The installer now prints one FLEET-PARTITIONED line, with its receipt,
in a single write once sfdisk succeeds, as it already does for the
install receipt. Evidence requires exactly one such line, carrying the
finished install's receipt, and counts only receipts when it checks
their order.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The installer runs with set -x on the console it prints to, so the
shell's trace of the FLEET-PARTITIONED printf also contains the marker
and a clean install counted it twice.

Match the marker followed by a 64-character receipt instead: the trace
shows the format at that position, not a receipt, and a kernel message
before the real line still matches. Evidence requires the one match to
carry the operation's receipt. A harness test runs the printf under a
traced shell, prefixes a kernel message, and checks the trace is
ignored and a second partition is counted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On a CI runner the kernel killed the run's local registry while it
stored the site image: its 128 MiB container limit also counts the page
cache of the layers it writes, which a fast runner fills quickly. Raise
it to 512 MiB. The topology still fits the documented overcommit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The topology picked free host ports up front and bound them later, so
another bind could take one in between: a CI run failed creating the
platform cluster with "port is already allocated".

Docker now assigns the registry's host port as it binds it, and the
harness reads it back. kind resolves every cluster port, including its
own API port, before starting the node, so the window there cannot be
removed. Each cluster is created through a helper that retries only
that failure, deleting this run's own half-created cluster first and
choosing fresh ports, at most three times. The failure comes from the
node container's start, before anything runs in the cluster, so a
retry repeats no effect. Any other error stops at once. A fake-kind
test covers the retry, the bound and the immediate stop.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The deadline and fail-closed scenarios spent about thirteen minutes of
each run waiting on timers sized for production: a six-minute deadline
plus the coordinator's two-minute skew margin, and kro's three-minute
health timeout on the bad revision.

Make each a lab setting with a short default. The short-deadline
installation gets two minutes, still many times the seconds it needs to
journal its boot and lose its Machine; if it runs out, the scenario says
so. In CI mode every process reads one Linux kernel clock, so the lab
coordinator's skew margin is 30 seconds there; the Colima run keeps two
minutes because its VM clock can drift from the workstation's. The
scenario still requires the wipe to be admitted after the worker
stopped. The bad kro revision also sets a 45-second health timeout, and
the recovery revision restores the usual one. Production defaults are
unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Each acceptance job rebuilt the race-instrumented readiness tests and
the site binary from scratch, because the shared setup-go cache held
another workflow's builds. Give each mode its own Go build cache, keyed
by commit and restored from the newest for the same go.sum, else the
newest for the mode.

Stop deleting preinstalled toolchains: it took one to two minutes, and
the runner has far more free disk than the harness requires. The job
now samples free disk in the Docker data root every 10 seconds and
reports the minimum.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Redfish mode ran its lab targets under software emulation even on
runners with /dev/kvm, so its installs and wipes took several times as
long as local VM mode's.

The lab adapter now takes the accelerator from the site's run
parameter and defines or starts a target only while the site runtime
publishes the same one beside the libvirt socket, with no software
fallback. Evidence requires every QEMU command line of target A to name
it, and preflight accepts KVM in Redfish mode on an amd64 runtime with
/dev/kvm.

The Pod, Job and BMC interruptions relied on a slow installer to land
mid-install. Redfish mode now holds target A paused once its kernel
prints, as local VM mode does, reading only console output written
after the hold was armed, and evidence fails if the interruptions did
not land on the held guest.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Each suite ran every scenario in sequence on one runner, so a run took
as long as all of them together.

Add a scenario group setting. Every group builds the same topology and
runs the scenarios through the Pod and Job lifecycle checks. The flux
group then runs the Flux scenarios, and the release group the
reflection, release, reuse, deadline, rebuild, wrong-location and
closed-boot scenarios; all, the local default, runs both. Evidence
checks what each group produces: the flux group leaves the Device
allocated, so the release, wipe and final custody checks run in the
release group. The result records the group, and verify requires the
expected one.

The workflow runs each suite as a flux and a release shard on separate
runners, and a new acceptance job passes only if every shard passed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With every run split into flux and release shards, no CI run put the
release, reuse, deadline and rebuild scenarios on a topology that had
just been through the Flux restart, fail-closed recovery and retention
scenarios, so a recovery that left kro or the dispatcher subtly wrong
would pass.

Keep the split for labeled pull request runs, which need the speed.
The nightly run, and a manual run unless its new groups input asks for
split, runs the all group per mode: every scenario in order on one
topology. The aggregate result and the per-run verify rules are
unchanged, and an all run saves the Go build cache. The operations doc
records which run covers what, and a harness check pins the rule.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@scotwells scotwells added the multiplane-acceptance Run the multiplane acceptance suites on GitHub-hosted runners label Nov 28, 2026
@scotwells scotwells closed this Nov 28, 2026
@scotwells
scotwells deleted the ci/accept-201 branch November 28, 2026 04:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

multiplane-acceptance Run the multiplane acceptance suites on GitHub-hosted runners

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant