Skip to content

chore: local stop-test-gate hook timeout (exit=143) #123

@terisuke

Description

@terisuke

Summary

The local stop-test-gate.sh hook consistently exits with code 143 (SIGTERM) when running the full test suite via turbo test. All tests pass but the process is killed before completion due to the hook's timeout.

Behavior

  • Hook detects 52+ source files → triggers full suite fallback
  • turbo test runs all packages (opencode + app + console-app)
  • Tests pass individually but the full suite exceeds the hook's timeout
  • Process receives SIGTERM → exit code 143 (128 + 15)

Fix Options

  1. Increase the hook timeout for turbo test execution
  2. Run only the affected package's tests instead of full suite
  3. Use --filter to scope turbo test to changed packages
  4. Add special handling for exit code 143 (distinguish timeout from real failure)

Impact

  • Non-blocking for development — all tests pass
  • Noise in development workflow

Ref

Observed consistently across all sessions since hook deployment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions