Skip to content

test(e2e): strengthen connect wake/reconnect coverage (stopped + hibernated) - #59

Merged
scttfrdmn merged 1 commit into
mainfrom
test/tier2-strengthen-wake
Jun 4, 2026
Merged

scttfrdmn merged 1 commit into
mainfrom
test/tier2-strengthen-wake

Conversation

@scttfrdmn

Copy link
Copy Markdown
Contributor

Strengthens Tier 2 coverage of the 'connect implies start' contract (#57) — connect should wake a stopped or hibernated instance and connect, transparently.

Changes

  • ConnectAutoStart now asserts the instance is genuinely stopped before connect and genuinely running after — so a connect that returns without actually waking the instance can't pass (previously only checked the command's echo output).
  • ConnectWakesHibernated (new) — the hibernate analog: launch --hibernate → write a RAM marker → hibernate → connect (not start) → assert the RAM marker survived and state is running. Proves wake-via-connect works for hibernation, not just stop.
  • instanceState() helper for point-in-time state assertions.

Status

Code change only — not yet run green, because Tier 2 runs are blocked on the harness parallelism bug (#56: ~22 concurrent launches overwhelm waitForRunning). These will be validated once #56's harness fix lands. Compiles + go vet clean under e2e_tier2.

Refs #57 (connect-implies-start contract), #56 (harness blocker).

…rnated)

connect should imply start for both stopped and hibernated instances (#57).
Strengthen the assertions so a connect that succeeds without actually waking
the instance can't pass:

- ConnectAutoStart: assert state is genuinely 'stopped' before connect and
  'running' after (was: only checked the exec output).
- ConnectWakesHibernated (new): hibernate → connect (not start) → assert RAM
  marker intact AND state 'running' — the hibernate analog of auto-start.
- instanceState() helper for point-in-time state assertions.

Note: not yet run green — blocked on the Tier 2 harness parallelism bug
(#56). Code change only.

Refs #57, #56
@codecov

codecov Bot commented Jun 4, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 15 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
test/e2e/helpers.go 0.00% 15 Missing ⚠️

📢 Thoughts on this report? Let us know!

@scttfrdmn
scttfrdmn merged commit b112fdd into main Jun 4, 2026
2 of 3 checks passed
@scttfrdmn
scttfrdmn deleted the test/tier2-strengthen-wake branch June 4, 2026 00:25
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.

1 participant