Skip to content

Fix e2e hook starvation under describe.concurrent#49

Merged
gtbuchanan merged 1 commit intomainfrom
fix/e2e-starvation
Apr 21, 2026
Merged

Fix e2e hook starvation under describe.concurrent#49
gtbuchanan merged 1 commit intomainfrom
fix/e2e-starvation

Conversation

@gtbuchanan
Copy link
Copy Markdown
Owner

Summary

  • Replace crossSpawn.sync with async spawn in runCommand so the event loop is free between awaits, preventing beforeEach hook timeouts in concurrent e2e tests

Closes #47

Test plan

  • pnpm check passes (typecheck + lint + fast tests)
  • pnpm build passes (includes all e2e tests — eslint-config, cli, vitest-config, tsconfig, markdownlint-config)
  • eslint-config e2e: all 12 concurrent tests pass without hook starvation

🤖 Generated with Claude Code

Replace crossSpawn.sync with async spawn in runCommand so the
event loop is free between awaits. This prevents beforeEach hooks
from timing out when concurrent tests spawn CLI processes.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@gtbuchanan gtbuchanan merged commit 9583e52 into main Apr 21, 2026
7 of 8 checks passed
@gtbuchanan gtbuchanan deleted the fix/e2e-starvation branch April 21, 2026 01:44
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.

E2E hook starvation under describe.concurrent with sync spawns

1 participant