Skip to content

test(app-store): raise spawn lifecycle test timeout 3s -> 30s - #35

Merged
TeoSlayer merged 1 commit into
mainfrom
hotfix/app-store-spawn-test-timeout
Jul 27, 2026
Merged

test(app-store): raise spawn lifecycle test timeout 3s -> 30s#35
TeoSlayer merged 1 commit into
mainfrom
hotfix/app-store-spawn-test-timeout

Conversation

@TeoSlayer

Copy link
Copy Markdown
Contributor

Problem

TestSpawn_FastExitTriggersExitCode and TestSpawn_NonZeroExitPropagates fail under parallel load:

zz2_supervisor_lifecycle_test.go:118: spawn exit code = -1, want 0
zz2_supervisor_lifecycle_test.go:148: spawn exit code = -1, want 42

Both fail at exactly 3.00s — the context.WithTimeout(..., 3*time.Second) wrapping sup.spawn. Under load the fake binary doesn't finish inside that budget, the context cancels, and spawn returns -1 instead of the real exit code. In isolation they complete in ~0.3–0.5s and pass.

Fix

Raise the deadline to 30s. The assertion is on the exit code, not on latency, so the tight deadline bought nothing and only encoded machine load into the result. Test-only.

Verification

  • go test -count=1 -run TestSpawn_ ./plugin/appstore/ — all 6 pass
  • go test -count=1 ./... — full suite green

🤖 Generated with Claude Code

TestSpawn_FastExitTriggersExitCode and TestSpawn_NonZeroExitPropagates
wrap sup.spawn in a 3s context. Under parallel load the fake binary does
not finish inside that budget, the context cancels, and spawn returns -1
instead of the real exit code — both tests fail at exactly 3.00s. They
pass in ~0.3-0.5s when run in isolation.

The assertion is on the exit code, not on latency, so the short deadline
buys nothing and only encodes machine load into the result. Raise it to
30s. Test-only change.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@codecov

codecov Bot commented Jul 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@TeoSlayer
TeoSlayer merged commit 09b0cdc into main Jul 27, 2026
5 checks passed
@TeoSlayer
TeoSlayer deleted the hotfix/app-store-spawn-test-timeout branch July 27, 2026 12:59
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