open-nomad/e2e/e2eutil
Michael Schurter 21eced0a4e
test: extend timing and output of overlap e2e test (#14894)
Keeps failing in the nightly e2e test with unhelpful output like:
```
Failed
=== RUN   TestOverlap
    overlap_test.go:92: Followup job overlap93ee1d2b blocked. Sleeping for the rest of overlap48c26c39's shutdown_delay (9.2/10s)
    overlap_test.go:105: 1500/2000 retries reached for github.com/hashicorp/nomad/e2e/overlap.TestOverlap (err=timed out before an allocation was found for overlap93ee1d2b)
    overlap_test.go:105: timeout: timed out before an allocation was found for overlap93ee1d2b
--- FAIL: TestOverlap (38.96s)
```

I have not been able to replicate it in my own e2e cluster, so I added
the EvalDump helper to add detailed eval information like:

```
=== RUN   TestOverlap
1/1 Job overlap7b0e90ec Eval c38c9919-a4f0-5baf-45f7-0702383c682a
  Type:         service
  TriggeredBy:  job-register
  Deployment:
  Status:       pending ()
  NextEval:
  PrevEval:
  BlockedEval:
   -- No placement failures --
  QueuedAllocs:
  SnapshotIdx:  0
  CreateIndex:  96
  ModifyIndex:  96

...
```

Hopefully helpful when debugging other tests as well!
2022-10-14 14:15:07 -07:00
..
input e2e: Wait for deployment to finish before disconnect (#12795) 2022-04-27 12:27:03 -04:00
allocs.go e2e: add e2e tests for nomad service disco checks 2022-08-22 15:31:13 -05:00
cli.go e2e: use context for executing external commands (#12185) 2022-03-04 08:55:36 -05:00
client.go E2E: move example test to use golangs stdlib test runner (#12383) 2022-03-25 14:44:16 -04:00
consul.go e2e: add e2e tests for consul namespaces on ent with acls 2021-04-27 14:45:54 -06:00
deployments.go e2e: rework rescheduling progress deadline test (#8958) 2020-09-29 11:02:16 -04:00
e2ejob.go chore: fixup inconsistent method receiver names. (#11704) 2021-12-20 11:44:21 +01:00
job.go e2e: add initial service discovery tests. (#12512) 2022-04-11 11:12:24 +02:00
node.go E2E: test for nodes disconnected by netsplit (#12407) 2022-04-11 11:34:27 -04:00
utils.go test: extend timing and output of overlap e2e test (#14894) 2022-10-14 14:15:07 -07:00
wait.go chore: fix incorrect docstring formatting. 2021-08-30 11:08:12 +02:00