Files
bun.sh/scripts/runner.node.mjs
Claude Bot 3443eb2f9b Add Sentry core dump upload integration to test runner
Extends the existing core dump collection functionality to also upload
core dumps to Sentry for better crash analysis and monitoring.

Features:
- Automatically detects Sentry DSN from SENTRY_CI_DSN_URL Buildkite secret
- Supports manual DSN override via --sentry-ci-dsn CLI parameter
- Falls back to SENTRY_DSN environment variable
- Uses sentry-cli for uploading debug files and creating notification events
- Includes build metadata (commit, branch, build ID) as Sentry tags
- Graceful fallback when sentry-cli is not available
- Does not interfere with existing BuildKite artifact upload workflow

Usage:
  # Automatic in CI (uses SENTRY_CI_DSN_URL secret)
  node scripts/runner.node.mjs --coredump-upload

  # Manual DSN override
  node scripts/runner.node.mjs --coredump-upload --sentry-ci-dsn "https://dsn@sentry.io/project"

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-23 08:17:40 +00:00

70 KiB
Executable File