Watch
0
0
Fork
You've already forked hyperhive
0
hyperhive/nix/script-tests
Repository files (latest commit first)
Filename Latest commit message Latest commit date
maia df9cd8c7e6 archive: an empty prefix lists as no users, not as a failure
swarm-archive-users and hive-archive-backup read "No value found" on
stderr to tell a prefix that holds nothing from an error. With
`kv list -format=json`, bao answers such a prefix with status 2, `{}` on
stdout and nothing on stderr, so on a swarm whose archive has no users
yet the unit failed every 30 seconds forever, and every switch reported
it.

store_list, in the shared store helper, prints the names as a JSON array
and `[]` for a prefix that holds nothing: failed, empty stderr, stdout
`{}`. It is not decided on status 2 alone, which a refused token, a
sealed store and an unreachable store end with as well (their error is on
stderr). The two scripts use it. The script test runs it against a stub
that answers as bao does, with controls for a refusal, a sealed store and
a warning beside an empty answer, and the archive VM test's stub no
longer prints the table format's message for a JSON list. full-setup
waits for the users file to be rendered on a fresh swarm.

Closes #6840
2026-11-24 18:19:26 +01:00
..
agent-backend-env-fake-bao.sh swarm: an agent's backend secrets get a store leaf of their own, and its backend environment reads back 2026-11-20 20:36:33 +01:00
agent-backend-env.nix fetch the agent's backend env file from the store, seeded from the existing file 2026-10-28 01:24:29 +01:00
agent-backend-env.sh swarm: an agent's backend secrets get a store leaf of their own, and its backend environment reads back 2026-11-20 20:36:33 +01:00
agent-bao-fetch.nix agents keep their github token in /run, fetched on every start, not in the state dir 2026-11-15 14:08:57 +01:00
agent-bao-fetch.sh agents keep their github token in /run, fetched on every start, not in the state dir 2026-11-15 14:08:57 +01:00
agent-hive-facts.nix hand agents the dashboard port, pinned claude and otel labels at container start 2026-10-22 07:11:46 +02:00
agent-hive-facts.sh send agent traffic through squid once its hive announces it 2026-10-28 17:24:34 +01:00
agent-memory-cap.nix agents: hand over the kept drop-in's cap, warn at boot without one 2026-10-12 10:59:12 +02:00
agent-memory-cap.sh bash tasks are the OOM killer's first victims: score 1000, subagent runs 900, MemoryHigh on the bash daemon 2026-11-19 08:03:07 +01:00
agent-ssh-cert.nix sign ssh certificates on demand from ssh itself, warn before setup, say what to do when a host key changes 2026-11-16 20:31:18 +01:00
agent-ssh-cert.sh run the ssh cert script test under bash 2026-11-16 20:31:18 +01:00
archive-metrics.nix swarm-archive: check each agent's restic repository weekly 2026-11-14 11:53:27 +01:00
archive-metrics.sh swarm-archive: check each agent's restic repository weekly 2026-11-14 11:53:27 +01:00
attic-init.nix run swarm-attic in its own network namespace 2026-11-03 07:42:10 +01:00
attic-init.sh attic-init: replace the stored public key with the one the cache reports 2026-11-07 10:40:07 +01:00
attic-root-facts.nix nix trusts the swarm's root through its own CA bundle, so root's nix clients reach the cache 2026-11-08 18:37:34 +01:00
attic-root-facts.sh nix trusts the swarm's root through its own CA bundle, so root's nix clients reach the cache 2026-11-08 18:37:34 +01:00
cache-pull-substitute.nix hive-priv: fetch the swarm signature from attic before verifying a locally valid closure 2026-11-08 11:49:51 +01:00
cache-pull-substitute.sh hive-priv: fetch the swarm signature from attic before verifying a locally valid closure 2026-11-08 11:49:51 +01:00
database-size-push.nix matrix: report homeserver up, latency and database size through existing collectors 2026-11-05 08:30:06 +01:00
database-size-push.sh matrix: report homeserver up, latency and database size through existing collectors 2026-11-05 08:30:06 +01:00
grafana-secret-key.nix read grafana's datasource key from the store into /run, seeding an empty store from the old file 2026-10-30 16:59:07 +01:00
grafana-secret-key.sh read grafana's datasource key from the store into /run, seeding an empty store from the old file 2026-10-30 16:59:07 +01:00
granter-login-fake-bao.sh report the real error when the granter role's bootstrap step fails, and retry on a standby store 2026-11-05 08:57:10 +01:00
granter-login.nix report the real error when the granter role's bootstrap step fails, and retry on a standby store 2026-11-05 08:57:10 +01:00
granter-login.sh report the real error when the granter role's bootstrap step fails, and retry on a standby store 2026-11-05 08:57:10 +01:00
nats-render-config.nix swarm-nats: take the callout issuer and user keys from the store 2026-10-06 14:53:33 +02:00
nats-render-config.sh swarm-nats: take the callout issuer and user keys from the store 2026-10-06 14:53:33 +02:00
oidc-client-secrets.nix run authelia's digest under a real shell, not the service user's nologin 2026-11-09 15:50:23 +01:00
oidc-client-secrets.sh run authelia's digest under a real shell, not the service user's nologin 2026-11-09 15:50:23 +01:00
otlp-gauges.nix archive: push restic backup and prune metrics, and add a backups dashboard 2026-11-14 11:08:57 +01:00
otlp-gauges.sh archive: push restic backup and prune metrics, and add a backups dashboard 2026-11-14 11:08:57 +01:00
refresh-consumer.nix swarm-bao-agent-pki: decide openbao's restart on the shared locale-independent compare 2026-10-13 17:00:56 +02:00
refresh-consumer.sh pull swarm closures through the nix daemon: substituters in the fragment, merged root-only netrc 2026-11-08 11:06:28 +01:00
retry-in-job.nix agent trust bundle: retry the root fetch inside its start job so a dns blip at boot queues the harness instead of failing it 2026-11-01 13:35:01 +01:00
retry-in-job.sh agent trust bundle: retry the root fetch inside its start job so a dns blip at boot queues the harness instead of failing it 2026-11-01 13:35:01 +01:00
store-seeded-secret.nix archive: an empty prefix lists as no users, not as a failure 2026-11-24 18:19:26 +01:00
store-seeded-secret.sh archive: an empty prefix lists as no users, not as a failure 2026-11-24 18:19:26 +01:00