Skip to content

test: bump StartServer startup poll timeout to 10s#4251

Merged
stevenvegt merged 1 commit into
masterfrom
fix/test-startup-timeout
May 12, 2026
Merged

test: bump StartServer startup poll timeout to 10s#4251
stevenvegt merged 1 commit into
masterfrom
fix/test-startup-timeout

Conversation

@stevenvegt
Copy link
Copy Markdown
Member

@stevenvegt stevenvegt commented May 12, 2026

Summary

  • Bumps the test.WaitFor budget in test/node/server.StartServer from 5s to 10s.
  • Eliminates flaky timeouts seen on CircleCI's 1/4-CPU runners, where the node's heavier engines (VDR, VCR, NATS, embedded gRPC listener) occasionally need more than 5s to bring /status online.
  • The polling cadence (10ms + runtime.Gosched, see test/predicates.go) is unchanged, so this only enlarges the worst-case wait — happy-path tests still finish in well under a second.

Observed flake locally and on CI with TestOpenID4VCIHappyFlow; PR #4057 didn't touch the startup path, so the 5s budget was simply too tight for slow runners.

Test plan

  • CI passes on this branch
  • No new flakes in TestOpenID4VCIHappyFlow / TestOpenID4VCIErrorResponses

🤖 Generated with Claude Code

Slow CI runners (CircleCI 1/4 CPU) occasionally exceed the 5s budget
while the node initializes its heavier engines (VDR, VCR, NATS, gRPC),
causing flakes in integration tests such as TestOpenID4VCIHappyFlow.
Double the budget to 10s — well under any reasonable expected boot
time, but enough headroom to absorb scheduler jitter on constrained
runners. The polling cadence (10ms + Gosched, see test/predicates.go)
still gives ~1000 polls per second.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@qltysh
Copy link
Copy Markdown
Contributor

qltysh Bot commented May 12, 2026

Qlty


Coverage Impact

⬆️ Merging this pull request will increase total coverage on master by 0.02%.

🚦 See full report on Qlty Cloud »

🛟 Help
  • Diff Coverage: Coverage for added or modified lines of code (excludes deleted files). Learn more.

  • Total Coverage: Coverage for the whole repository, calculated as the sum of all File Coverage. Learn more.

  • File Coverage: Covered Lines divided by Covered Lines plus Missed Lines. (Excludes non-executable lines including blank lines and comments.)

    • Indirect Changes: Changes to File Coverage for files that were not modified in this PR. Learn more.

@stevenvegt stevenvegt merged commit 0565da8 into master May 12, 2026
12 checks passed
@stevenvegt stevenvegt deleted the fix/test-startup-timeout branch May 12, 2026 11:30
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.

2 participants