Skip to content

fix(tests): prevent task/signals spec test from hanging in CI#33020

Open
bartlomieju wants to merge 1 commit intomainfrom
fix/task-signals-test-hang
Open

fix(tests): prevent task/signals spec test from hanging in CI#33020
bartlomieju wants to merge 1 commit intomainfrom
fix/task-signals-test-hang

Conversation

@bartlomieju
Copy link
Copy Markdown
Member

Summary

  • The task/signals spec test registers signal handlers for all signals including SIGTERM in listener.ts, which means the test harness cannot kill it when the timeout fires — causing 30+ minute CI hangs
  • Added a 30s hard timeout in sender.ts that SIGKILLs the child process (uncatchable) and exits with failure, so hangs fail fast with a clear error
  • Now awaits child.status after sending SIGTERM to prevent orphaned processes

Test plan

  • ./x test-spec signals passes locally

🤖 Generated with Claude Code

The listener.ts registers signal handlers for all signals including
SIGTERM, so the test harness cannot kill it on timeout. Add a 30s hard
timeout in sender.ts that SIGKILLs the child (uncatchable) and fails
fast. Also await child exit after SIGTERM to prevent orphaned processes.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

1 participant