Skip to content

test(e2e): fix Tier 2 timing/fixtures; surface real product gaps (#61) - #62

Merged
scttfrdmn merged 1 commit into
mainfrom
fix/61-tier2-failures
Jun 5, 2026
Merged

scttfrdmn merged 1 commit into
mainfrom
fix/61-tier2-failures

Conversation

@scttfrdmn

Copy link
Copy Markdown
Contributor

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 ✅

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)

  • --command no-ops on single launches — it maps to config.JobArrayCommand but only the parameter-sweep user-data path executes it. Plain launch --command never runs the command. (Likely also affects single-instance command reliability broadly.)
  • --pre-stop marker never appears (related single-instance execution gap).
  • --iam-policy S3 grant not effective within 4m.
  • NameResolutionPrefersRunning ([audit] Flags: launch uses --key-pair vs --key-name on autoscale/burst #313) — needs actual-vs-expected id confirmation.

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).

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

codecov Bot commented Jun 5, 2026

Copy link
Copy Markdown

Codecov Report

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

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

📢 Thoughts on this report? Let us know!

@scttfrdmn
scttfrdmn merged commit a5fc6b4 into main Jun 5, 2026
2 of 3 checks passed
@scttfrdmn
scttfrdmn deleted the fix/61-tier2-failures branch June 5, 2026 22:52
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