Skip to content

Gated live smoke test — self-termination regression guard (#27) - #37

Merged
scttfrdmn merged 1 commit into
mainfrom
feat/live-smoke-test
Jul 22, 2026
Merged

scttfrdmn merged 1 commit into
mainfrom
feat/live-smoke-test

Conversation

@scttfrdmn

Copy link
Copy Markdown
Contributor

A workflow_dispatch-only regression guard for the self-termination guarantee — which regressed silently once (#19). Never runs on push/PR. Closes #27.

Tier 1 — substrate (default, zero credentials)

Builds substrate from source (pinned v0.73.0, CORS on) and runs the EC2Provider integration tests against it — the real SDK path: launch → spawn:* tags → list/get → the SpawnClient monitor firing a real TerminateInstances on an expired TTL. Runs with SUBSTRATE_REQUIRED=1, which turns the usual "unreachable → skip" into a hard failure, so a substrate that failed to boot can't produce a false green (the silent-skip trap that hid #19).

Verified locally end-to-end: passes with substrate up (2/2), hard-fails when it's down, and the default npm test still auto-skips (hermetic — 248 pass).

Tier 2 — real AWS (OIDC, opt-in, ships disabled)

scripts/live-smoke.mjs launches one t4g.nano with the spored instance profile, waits ~5 min for spored to self-terminate on its TTL, then backstop-terminates + leak-checks (<1¢). Authenticates via GitHub OIDC — no stored keys — the upstream spore.host pattern.

It's if: vars.LIVE_SMOKE_ROLE_ARN != '', so it ships disabled and does nothing until an OIDC role is wired. Enabling it is a decision still open (see below). docs/live-smoke.md documents the exact role/trust/vars needed.

Still needs a decision (not blocking this PR)

The real-aws tier needs an OIDC role. The spore-host org already runs this pattern (a shared GitHubActions-* role with a per-repo sub allowlist; OIDC provider + spored-instance-profile exist in infra 966362334030, while compute-in-dev 435415984226 would be architecturally purer but has no OIDC yet). Once you pick an account + wire the role, set vars.LIVE_SMOKE_ROLE_ARN/LIVE_SMOKE_REGION and it activates — no code change.

workflow_dispatch-only .github/workflows/live-smoke.yml, two tiers:

- substrate (default, zero-cred): builds substrate from source (pinned v0.73.0,
  CORS on), runs the EC2Provider integration tests with SUBSTRATE_REQUIRED=1 so
  an unreachable substrate FAILS instead of silently skipping (the trap that hid
  #19). Verified locally end-to-end: passes with substrate up, hard-fails when
  down; default `npm test` still auto-skips (hermetic).
- real-aws (opt-in, OIDC — no stored keys): scripts/live-smoke.mjs launches one
  t4g.nano with the spored profile, observes self-terminate on a 5-min TTL,
  backstop-terminates + leak-checks. Ships DISABLED (if: vars.LIVE_SMOKE_ROLE_ARN
  != '') until an OIDC role that trusts this repo's live-smoke environment is
  wired — matching the spore-host org's existing OIDC pattern.

Adds SUBSTRATE_REQUIRED to the integration test + docs/live-smoke.md. 248 tests.
@scttfrdmn
scttfrdmn merged commit 951faa8 into main Jul 22, 2026
1 check passed
@scttfrdmn
scttfrdmn deleted the feat/live-smoke-test branch July 22, 2026 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Gated real-AWS smoke test (self-termination regression guard)

1 participant