Repository navigation
Gated live smoke test — self-termination regression guard (#27) - #37
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 theEC2Providerintegration tests against it — the real SDK path: launch →spawn:*tags →list/get→ theSpawnClientmonitor firing a realTerminateInstanceson an expired TTL. Runs withSUBSTRATE_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 teststill auto-skips (hermetic — 248 pass).Tier 2 — real AWS (OIDC, opt-in, ships disabled)
scripts/live-smoke.mjslaunches onet4g.nanowith 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.mddocuments 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-reposuballowlist; OIDC provider +spored-instance-profileexist in infra966362334030, while compute-in-dev435415984226would be architecturally purer but has no OIDC yet). Once you pick an account + wire the role, setvars.LIVE_SMOKE_ROLE_ARN/LIVE_SMOKE_REGIONand it activates — no code change.