Skip to content

test: increase timeouts on flaky e2e and syncer tests - #800

Open
Aditya Shantanu (aditya-shantanu) wants to merge 1 commit into
agent-substrate:mainfrom
aditya-shantanu:fix/flaky-test-timeouts
Open

test: increase timeouts on flaky e2e and syncer tests#800
Aditya Shantanu (aditya-shantanu) wants to merge 1 commit into
agent-substrate:mainfrom
aditya-shantanu:fix/flaky-test-timeouts

Conversation

@aditya-shantanu

Copy link
Copy Markdown
Collaborator

Fixes #799

What changed and why

internal/e2e/suites/demo/demo_test.go

  • callActor deadline: 30s → 90s
  • waitForActorStatus timeout: 60s → 120s

TestActorLifecycle, TestDurableDirLifecycle, and TestMultipleDurableDirLifecycle were failing with:

failed to call actor again: timed out waiting for actor response: unexpected status code: 503

The actor reaches STATUS_RUNNING before atenet-router's xDS routes are fully propagated. callActor was already retrying, but the 30s deadline was exhausted before the route-sync completed on a loaded CI runner. The same xDS propagation lag was fixed for the networking ingress tests in #724 — this applies the same principle to the demo suite.

cmd/ateapi/internal/controlapi/syncer_test.go

  • Final assertion PollUntilContextTimeout: 5s → 15s

TestSyncer_UpdateWorker_RetryOnVersionConflict polls for the worker to reflect a new SandboxClass after a version conflict retry. The syncer's rate-limiting work queue adds backoff between reconcile attempts; on a loaded runner the second attempt occasionally lands after the 5s window closed.

Checklist

  • Issue is linked above
  • Tests pass locally (go test ./...)
  • Documentation updated if behavior changed (N/A — test-only change)

Not addressed in this PR

TestLoaderConcurrentHandshakes (2 failures in sample) — failure logs were unavailable (run was re-triggered before logs could be retrieved). Tracked in #799 for follow-up once a reproduction is captured.

Fixes agent-substrate#799

TestActorLifecycle, TestDurableDirLifecycle, TestMultipleDurableDirLifecycle:
  callActor retried for 30s but xDS routes in atenet-router aren't always
  propagated by the time the actor reaches STATUS_RUNNING. Increase the
  callActor deadline to 90s and waitForActorStatus timeout to 120s to
  give the route-sync more headroom on loaded CI runners.

TestSyncer_UpdateWorker_RetryOnVersionConflict:
  The syncer's rate-limiting work queue adds backoff between retries;
  the previous 5s poll window was occasionally exhausted before the
  second reconcile attempt completed. Increased to 15s.
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.

Fix flaky tests: e2e demo suite timeouts and syncer poll timeout

1 participant