Skip to content

CI only: acceptance for #231 at a56c11b0 - #238

Closed
scotwells wants to merge 14 commits into
proto/site-delivery-declarationfrom
ci/accept-231
Closed

scotwells wants to merge 14 commits into
proto/site-delivery-declarationfrom
ci/accept-231

Conversation

@scotwells

@scotwells scotwells commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

CI only, not for merge: acceptance for #231 at a56c11b.

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 #231.

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

🤖 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 force-pushed the proto/site-delivery-declaration branch from d2e9ba1 to 476b9df Compare November 27, 2026 22:41
@scotwells scotwells changed the title CI only: acceptance for #231 at d2e9ba13 CI only: acceptance for #231 at 476b9df0 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 force-pushed the proto/site-delivery-declaration branch from 476b9df to f4e7d7b Compare November 27, 2026 22:50
@scotwells scotwells changed the title CI only: acceptance for #231 at 476b9df0 CI only: acceptance for #231 at f4e7d7b7 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 force-pushed the proto/site-delivery-declaration branch from f4e7d7b to f10bbf5 Compare November 27, 2026 23:45
@scotwells scotwells changed the title CI only: acceptance for #231 at f4e7d7b7 CI only: acceptance for #231 at f10bbf53 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 force-pushed the proto/site-delivery-declaration branch from f10bbf5 to 67ac797 Compare November 28, 2026 00:05
@scotwells scotwells changed the title CI only: acceptance for #231 at f10bbf53 CI only: acceptance for #231 at 67ac7979 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 proto/site-delivery-declaration branch from 67ac797 to bda505e Compare November 28, 2026 01:18
@scotwells scotwells changed the title CI only: acceptance for #231 at 67ac7979 CI only: acceptance for #231 at bda505ef 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 proto/site-delivery-declaration branch from bda505e to aca2456 Compare November 28, 2026 01:31
@scotwells scotwells changed the title CI only: acceptance for #231 at bda505ef CI only: acceptance for #231 at aca24560 Nov 28, 2026
@scotwells scotwells removed the multiplane-acceptance Run the multiplane acceptance suites on GitHub-hosted runners label Nov 28, 2026
@scotwells scotwells added the multiplane-acceptance Run the multiplane acceptance suites on GitHub-hosted runners label Nov 28, 2026
@scotwells
scotwells force-pushed the proto/site-delivery-declaration branch from aca2456 to 6eda2ce Compare November 28, 2026 02:09
@scotwells scotwells changed the title CI only: acceptance for #231 at aca24560 CI only: acceptance for #231 at 6eda2cea 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 14 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>
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 force-pushed the proto/site-delivery-declaration branch from 6eda2ce to a56c11b Compare November 28, 2026 02:43
@scotwells scotwells changed the title CI only: acceptance for #231 at 6eda2cea CI only: acceptance for #231 at a56c11b0 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 #231 at a56c11b passed in run 46099508559, every shard and the aggregate job. Recorded on #231.

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