Watch
0
0
Fork
You've already forked hyperhive
0
Commit graph hyperhive/nix/vm-tests/semi-spread.nix
Author SHA1 Message Date
atlas
3f71739852 semi-spread: show the controller pod's log where the test printed the empty journal
The swarm-controller runs as a pod, so journalctl -u swarm-controller on the
swarm machine has no entries. When create_agent gives up, and when the
agents do not settle, the test now prints the pod's log, and counts the
deploy requests in it instead of in the journal.
2026-11-27 21:30:12 +01:00
atlas
fbc670087a swarmctl, vm tests: wait for the store's active node after an unseal
An unsealed store has no active node for a few seconds and refuses writes
with "local node not active". swarmctl bao grant-bootstrap now repeats
bao policy list and bao policy write every second, up to a minute, while
the store answers that; setup.md says so. The full-setup and semi-spread
tests wait for bao policy list with the root token before the bootstrap.

full-setup.py: when create_agent gives up it also prints the controller
pod's logs, the pod list and the swarm builder's journal. A run that
failed with no archetype "reviewer" for 13 minutes left no controller or
builder output to read.
2026-11-27 21:30:12 +01:00
atlas
4bb6c573ae swarm-nats: the pod's raw rule lets through the interfaces the firewall opens the client port on
The hostPort's raw-table drop for the queue's client port let through only the host's loopback, the bridge and the pods' interfaces, so a hive on another host, reaching the queue over wg0 where the firewall's own rule opens the port, timed out. The rule now also returns for every interface whose networking.firewall.interfaces entry opens the port. semi-spread dumps the queue's network state when the hive cannot reach it, and asserts the port answers over wg0 and not on the public address.
2026-11-27 21:30:12 +01:00
atlas
ee6b5f69f6 full-setup and the host swarmctl reach the controller as a pod, not through a host socket 2026-11-27 21:29:38 +01:00
atlas
cead194b2a vm-tests: every test's globalTimeout stays under the one-hour job limit
full-setup 7200 -> 2400, semi-spread 10800 -> 3000, and 1800 on the four tests that used the driver's one-hour default. The runner kills a job at one hour and reports nothing, so a longer test timeout could never fire.
2026-11-19 21:55:34 +01:00
atlas
0370076463 semi-spread vm test: a controller journal entry with no message cannot crash the settle loop 2026-11-19 14:27:59 +01:00
atlas
7c2f7443fb semi-spread: wait for the pushed repo, bound the settle, name swarm faults
The test created its agents 0.5 s after pushing hyperhive/hyperhive, while
the forge still read the repo as empty, so the create's update_meta failed
and the next try came on the controller's 10-minute round. It now waits for
the two forge reads update_meta makes.

settle_hive_agents waited 3600 s, the CI job's own limit, so a stall was
killed rather than reported. It now waits 1200 s and also stops on a swarm
fault: a build the builder did not push to the cache, or an update_meta or
build_meta failure no later round got past. Timeouts and faults dump the
swarm builder's journal from heavyduty too.

Refs #6627
2026-11-19 12:25:39 +01:00
atlas
de43dac33c ci: type-check the semi-spread and swarm-builder-offline test scripts with stand-in values 2026-11-13 11:00:04 +01:00
atlas
df02ff89aa vm tests: fail on a missing log port, give up early on a broken hive 2026-11-13 09:04:09 +01:00
atlas
8fbb3c65fd semi-spread vm test: the merged swarm machine keeps attic private, like heavyduty 2026-11-12 07:41:50 +01:00
atlas
26152161ca semi-spread vm test: bao on the store machine uses the operator leaf 2026-11-11 10:10:18 +01:00
atlas
fa07f32cdf semi-spread test: bao on the store host presents a client certificate 2026-11-11 09:07:00 +01:00
atlas
bcd698eb43 vm-tests: semi-spread, the example on three machines and an outside client 2026-11-11 00:14:24 +01:00