Skip to content

CI only: acceptance for #229 at 8ac1862d - #237

Closed
scotwells wants to merge 14 commits into
proto/virtual-media-deliveryfrom
ci/accept-229
Closed

scotwells wants to merge 14 commits into
proto/virtual-media-deliveryfrom
ci/accept-229

Conversation

@scotwells

@scotwells scotwells commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

CI only, not for merge: acceptance for #229 at 8ac1862.

This branch applies #208 (ci/multiplane-acceptance at 96eff8d) and #232 (ci/fast-acceptance at 48c43ee) onto that exact head. It adds the virtual media suite (run.sh --redfish --virtual-media) as a matrix mode. The multiplane-acceptance label runs every shard. This PR is closed and its branch deleted once the run is recorded on #229.

The conflict resolutions are the start of the real restack onto #208:

  • run.sh keeps feat(site): Deliver installs over Redfish virtual media #229's media and IPAM flags beside feat(multiplane): Run acceptance in GitHub Actions #208's run parameters and scenario group.
  • The rgd, dispatcher, stop.sh and teardown.sh keep both the media service and the accelerator.
  • The lab adapter keeps virtual media devices and the accelerator check.
  • acceptance-redfish.sh and evidence.py keep synchronized DHCP beside the scenario groups.
  • The local VM boot records stay keyed by operation UID on this base.
  • The media suite gets its host address and Docker context from the run's parameters, and the matrix lists every shard, so a single-mode dispatch runs its shards.

🤖 Generated with Claude Code

@scotwells scotwells added the multiplane-acceptance Run the multiplane acceptance suites on GitHub-hosted runners label Nov 27, 2026
@scotwells scotwells changed the title CI only: acceptance for #229 at f9b7a95f CI only: acceptance for #229 at b9877446 Nov 27, 2026
@scotwells scotwells added multiplane-acceptance Run the multiplane acceptance suites on GitHub-hosted runners and removed multiplane-acceptance Run the multiplane acceptance suites on GitHub-hosted runners labels Nov 27, 2026
@scotwells scotwells changed the title CI only: acceptance for #229 at b9877446 CI only: acceptance for #229 at 3419ecc0 Nov 27, 2026
@scotwells scotwells added multiplane-acceptance Run the multiplane acceptance suites on GitHub-hosted runners and removed multiplane-acceptance Run the multiplane acceptance suites on GitHub-hosted runners labels Nov 27, 2026
@scotwells scotwells changed the title CI only: acceptance for #229 at 3419ecc0 CI only: acceptance for #229 at 42c43245 Nov 28, 2026
@scotwells scotwells added multiplane-acceptance Run the multiplane acceptance suites on GitHub-hosted runners and removed multiplane-acceptance Run the multiplane acceptance suites on GitHub-hosted runners labels Nov 28, 2026
@scotwells
scotwells force-pushed the ci/accept-229 branch 2 times, most recently from 35e80ac to 7b12a9a Compare November 28, 2026 01:18
@scotwells scotwells changed the title CI only: acceptance for #229 at 42c43245 CI only: acceptance for #229 at e18d799e Nov 28, 2026
@scotwells scotwells added multiplane-acceptance Run the multiplane acceptance suites on GitHub-hosted runners and removed multiplane-acceptance Run the multiplane acceptance suites on GitHub-hosted runners labels Nov 28, 2026
@scotwells scotwells changed the title CI only: acceptance for #229 at e18d799e CI only: acceptance for #229 at f0983bef Nov 28, 2026
@scotwells scotwells added multiplane-acceptance Run the multiplane acceptance suites on GitHub-hosted runners and removed multiplane-acceptance Run the multiplane acceptance suites on GitHub-hosted runners labels Nov 28, 2026
@scotwells scotwells changed the title CI only: acceptance for #229 at f0983bef CI only: acceptance for #229 at 24fcff1a Nov 28, 2026
@scotwells scotwells added multiplane-acceptance Run the multiplane acceptance suites on GitHub-hosted runners and removed multiplane-acceptance Run the multiplane acceptance suites on GitHub-hosted runners labels Nov 28, 2026
scotwells and others added 4 commits November 27, 2026 20:40
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>
scotwells and others added 10 commits November 27, 2026 20:40
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>
The restack onto #229's base keys boot records by operation UID, so the accelerator tests read them that way.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The virtual media suite assumed Colima: its Docker context, and the
host gateway lab Pods use to reach the workstation's media service.

run.sh records the host address and the network Pods arrive from: the
host gateway and loopback under Colima, the kind network's gateway and
subnet on a CI runner. The certificate, the media service's listeners
and the report relay's upstream use them. The workflow runs the suite as
a third mode, in one shard.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A dispatch of one mode left the matrix's mode axis empty, so GitHub ran no shard. The matrix now lists each shard for each mode.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Each held media installation waited out the lab's 5 and 10 minute windows. On CI the fetch window is 2 minutes, which covers the BMC fetching the boot medium after a held install settles, and the report window 3 minutes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@scotwells scotwells changed the title CI only: acceptance for #229 at 24fcff1a CI only: acceptance for #229 at 8ac1862d Nov 28, 2026
@scotwells scotwells added multiplane-acceptance Run the multiplane acceptance suites on GitHub-hosted runners and removed multiplane-acceptance Run the multiplane acceptance suites on GitHub-hosted runners labels Nov 28, 2026
@scotwells

Copy link
Copy Markdown
Contributor Author

Acceptance for #229 at 8ac1862 passed in run 46099504081, every shard and the aggregate job. Recorded on #229.

@scotwells scotwells closed this Nov 28, 2026
@scotwells
scotwells deleted the ci/accept-229 branch November 28, 2026 03:14
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