Repository navigation
test(e2e): fix Tier 2 timing/fixtures; surface real product gaps (#61) - #62
Merged
Merged
Conversation
Replace fixed sleeps + single-shot assertions with polling helpers (sshExecEventually, hibernateEventually) so instance-side assertions wait for the real condition instead of racing spored bootstrap. Resolved (validated against real AWS): - HibernateAndResume, ConnectWakesHibernated: retry spawn hibernate until the hibernation agent is ready (EC2 rejects it ~1m post-boot). Both PASS (~186s/190s). - FSxTagsWritten: --fsx-id is validated against the real FSx API at launch, so a fake id can't work. Skip unless E2E_FSX_ID is set; the tag-writing regression (#314) is already covered without AWS by pkg/aws/tags_test.go. Improved but still failing due to suspected PRODUCT gaps (not test timing) — detailed in #61: - CommandExecution: --command on a SINGLE launch sets config.JobArrayCommand, but the execution code only runs inside the parameter-sweep user-data block (keyed on the spawn:command tag) — so --command appears to no-op for single instances. Needs product investigation. - PreStop: pre-stop marker never appears — likely same/related execution gap. - IAMPolicyApplied: S3 access via --iam-policy not granted within 4m. - NameResolutionPrefersRunning: connect-by-name metadata check. Helpers poll correctly now, so these fail for the right reason (real behavior, not a flaky sleep). Tracking the product fixes in #61.
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.
Works through the 7 post-#56 Tier 2 failures. 3 resolved, 4 revealed as real product gaps (now failing for the right reason, not flaky sleeps). Validated against real AWS (spore-host-dev).
Resolved ✅
spawn hibernate~1 min post-boot returns exit 1 (EC2 hibernation agent not yet initialized). NewhibernateEventuallyretries until accepted. Both PASS (~186s/190s).--fsx-idis validated against the real FSx API at launch, so a fake id can never work. Now skips unlessE2E_FSX_IDis set; the [audit] Flags: async flag is --detach (launch/sweep) vs --detached (pipeline launch); pipeline flag is also a no-op #314 tag-writing regression is already covered without AWS inpkg/aws/tags_test.go.Test quality
Replaced fixed sleeps + single-shot assertions with polling helpers (
sshExecEventually,hibernateEventually) so instance-side checks wait for the real condition instead of racing spored bootstrap.Still failing — real product gaps (detailed in #61, NOT this PR's scope)
--commandno-ops on single launches — it maps toconfig.JobArrayCommandbut only the parameter-sweep user-data path executes it. Plainlaunch --commandnever runs the command. (Likely also affects single-instance command reliability broadly.)--pre-stopmarker never appears (related single-instance execution gap).--iam-policyS3 grant not effective within 4m.These 4 stay open in #61 as product work. The polling helpers mean they now fail deterministically on the real behavior.
Tier 2 status
17 originally-passing + 2 hibernate + 1 FSx-skip = 20 green, 4 blocked on the product gaps. No harness issues (#56 fixed). Cost control intact (0 instances leaked across all runs).