Skip to content

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Jan 5, 2026

Summary

Implemented binary existence checks for isolated runners that provide meaningful error messages when a binary is not found. This prevents cryptic system errors and helps users quickly identify installation issues.

Changes

  • Extracted checkBinaryExists function in src/utils/command-checks.ts for reusable binary detection logic
  • Updated isolatedEnvRunner to check binary existence before spawning processes when commandRunner is available
  • Modified wrap command to pass commandRunner to isolated runner
  • Added comprehensive test coverage for binary check scenarios
  • Error message format: "<provider> binary '<binary-name>' not found. Please ensure it is installed and available on PATH."

Test Results

  • ✅ All 187 tests passing
  • ✅ Linter passed with no errors or warnings
  • ✅ Added tests for binary check failure, skip scenarios, and successful checks

Fixes #40

Add meaningful error message when binary is not found for isolated runners.
The isolated runners now check for binary existence before spawning and
provide a clear error message if the binary is missing.

Changes:
- Extract checkBinaryExists function from createBinaryExistsCheck
- Add commandRunner parameter to isolatedEnvRunner
- Check binary existence before spawn when commandRunner is available
- Add tests for binary existence check scenarios
- Update wrap command to pass commandRunner to isolated runner

Resolves #40

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions
Copy link
Contributor Author

github-actions bot commented Jan 5, 2026

✅ Checks passed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The isolated runners should check for binary existence and give meaningful error message

1 participant