Repository navigation
fix(e2e): unblock Tier 2 parallel runs (#56) - #60
Merged
Merged
Conversation
Full Tier 2 went from 3/24 passing (systemic 10-min timeouts) to 17/24 in
316s. Four fixes, in order of impact:
1. (THE root cause) waitForRunning/waitForState/terminateByName/instanceState
parsed spawn list via CombinedOutput(), which prepends stderr ('Searching
region ...') to the JSON → json.Unmarshal failed on every poll → every
instance-launching test silently timed out with 'last state: <empty>'.
New spawnStdout() captures stdout only; the four JSON pollers use it.
2. (product) launch registered DNS by SSHing into the instance even with
--wait-for-ssh=false — blocking on an SSH that isn't ready yet. Gate DNS
registration on waitForSSH; print a notice + 'spawn dns register' hint when
skipped. Normal launches (--wait-for-ssh defaults true) are unchanged.
3. (product) connect + registerDNS SSH now pass ControlMaster=no /
ControlPath=none so spawn never piggybacks the user's ~/.ssh ControlMaster
socket — parallel SSH no longer serializes on one shared socket.
4. (harness) launchSem caps the launch burst at 6 concurrent (not via
go test -parallel) to smooth the AWS API storm; running/assertion phases
stay fully parallel. Reaper/TTL/Cleanup untouched — cost control intact.
The remaining 7 failures are separate product/test issues (FSx fake-id,
hibernate, IAM-policy propagation, pre-stop/command SSH timing, #313 name
resolution), NOT the harness timeout — triaged separately. #58 still tracks
real N-way concurrent-launch scaling (the semaphore caps test concurrency,
doesn't validate it).
Fixes #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.
Fixes #56. Full Tier 2 went from 3/24 passing (systemic 10-min timeouts) to 17/24 in 316s against real AWS (spore-host-dev).
Root cause (the real one)
waitForRunning/waitForState/terminateByName/instanceStateparsedspawn list -o jsonviaCombinedOutput(), which prepends stderr (Searching region us-east-1...) to the JSON →json.Unmarshalfailed on every poll → every instance-launching test silently looped until its 10-min deadline withlast state: <empty>. The instances were fine; the harness just never parsed the list. NewspawnStdout()captures stdout only.Also fixed (real product bugs found en route)
--wait-for-ssh— launch SSHed into the instance to register DNS even with--wait-for-ssh=false, blocking on an SSH that isn't ready. Now gated onwaitForSSH(+ a 'register later' hint when skipped). Normal launches unchanged (flag defaults true).connect+registerDNSnow passControlMaster=no/ControlPath=noneso parallel SSH doesn't serialize on one shared socket.launchSemcaps the launch burst at 6 (not via-parallel); running/assertion phases stay parallel. Reaper/TTL/Cleanup untouched.Remaining 7 failures — separate, triaged
Not the harness timeout. Will file/handle individually: FSx test uses a fake fs-id; hibernate (×2)
spawn hibernateexit 1; IAM-policy propagation timing; pre-stop / command SSH timing; #313 name-resolution.Scope note
#58 still tracks real N-way concurrent-launch infra scaling — the semaphore caps test concurrency, it doesn't validate it.
Verification
3-test subset green (PublicIP 33s, ConnectSSH 45s, ConnectAutoStart 93s — the stop→connect→wake cycle). Full suite 17/24 in 316s. Cost control verified: 0 e2e instances remain across regions after each run.