Repository navigation
test(e2e): strengthen connect wake/reconnect coverage (stopped + hibernated) - #59
Merged
Merged
Conversation
…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 Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
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.
Strengthens Tier 2 coverage of the 'connect implies start' contract (#57) — connect should wake a stopped or hibernated instance and connect, transparently.
Changes
ConnectAutoStartnow asserts the instance is genuinelystoppedbefore connect and genuinelyrunningafter — 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(notstart) → assert the RAM marker survived and state isrunning. 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 vetclean undere2e_tier2.Refs #57 (connect-implies-start contract), #56 (harness blocker).