Skip to content

feat(cli): Ship linux-x64-musl and windows-arm64 binaries - #2518

Open
sentry-junior[bot] wants to merge 2 commits into
mainfrom
feat/cli-musl-win-arm64-binaries
Open

sentry-junior[bot] wants to merge 2 commits into
mainfrom
feat/cli-musl-win-arm64-binaries

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Part of #1965.

Node.js publishes official linux-x64-musl and win-arm64 builds, so the standalone binary now covers Alpine on x64 and Windows on ARM. Platforms with no official Node.js build (musl on arm64, 32-bit x86, armv7) keep using the npm package on Node.js 20+.

Build. script/build.ts adds both targets. Fossilize already downloads any nodejs.org platform archive, so it only needs a -musl suffix. Targets carry an optional libc, and --target matches the full name, so linux-x64 and linux-x64-musl stay separate.

Alpine needs three libraries. Node's musl build links libstdc++, libgcc, and libatomic, which a bare Alpine image lacks. The installer checks for them before downloading and names the Alpine packages to add, or the npm package. The docs platform table says the same.

Installers and upgrade.

  • The bash installer picks sentry-linux-x64-musl on musl x64 and sentry-windows-arm64.exe on ARM64 Git Bash/MSYS. musl arm64 still stops before downloading. Every refusal now ends with the same npm fallback line.
  • install.ps1 picks the arm64 asset on ARM64. Other architectures get the npm fallback.
  • sentry cli upgrade and .craft.yml are unchanged. They already match the new asset names by pattern. Homebrew stays glibc/macOS only.

Release pipeline. cli-build.yml builds, runs, and publishes both new binaries with the others. A broken musl or ARM binary now blocks the nightly. The workflow's inline bash steps move into scripts/*.mjs, and the nightly manifest's expected files now come from the build instead of a fixed list.

Until a release ships these assets, the installer and sentry cli upgrade on musl x64 or Windows ARM64 report the missing build and point to npm.

via @BYK.

--

View Session [Sentry]

Node.js publishes official linux-x64-musl and win-arm64 builds, so the
standalone binary can cover Alpine on x64 and Windows on ARM. Every
other platform (musl on arm64, 32-bit x86, armv7, other OSes) has no
official Node.js build and keeps using `npm install -g sentry`.

- build.ts builds both targets. Targets carry an optional libc, and
  `--single` picks the musl target on a musl host.
- The bash installer installs sentry-linux-x64-musl on musl x64, after
  checking for libstdc++, libgcc, and libatomic, which Node's musl build
  links and Alpine leaves out. It installs sentry-windows-arm64.exe from
  Git Bash on ARM64. install.ps1 picks the arm64 asset on ARM64.
- Every installer refusal now names the npm fallback with Node.js 20+.
- CI builds both targets, runs them on Alpine and windows-11-arm before
  the nightly publishes, and checks the GHCR manifest against the built
  files instead of a fixed list. The smoke and manifest checks move into
  tested scripts.
- The getting-started platform table lists the new binaries and the npm
  fallback.

`sentry cli upgrade` already picks `-musl` and `windows-arm64` assets,
and the Craft targets match the new files by pattern.

Co-Authored-By: BYK <[email protected]>
@vercel

vercel Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
cli Ready Ready Preview Nov 26, 2026 4:21pm UTC
sentry-local Ready Ready Preview Nov 26, 2026 4:21pm UTC

Request Review

@github-actions

Copy link
Copy Markdown
Contributor

📊 MCP Server Token Cost Report

Summary

  • Total Tokens: 67760 tokens
  • Tool Count: 76 tools
  • Average: 892 tokens/tool

Per-Tool Breakdown

Tool Tokens % of Total
get_issue_details 3967 5.9%
get_alert_rule 2245 3.3%
find_releases 1805 2.7%
get_issue_activity 1759 2.6%
update_alert_rule 1653 2.4%
get_replay_details 1602 2.4%
create_alert_rule 1506 2.2%
get_monitor_details 1501 2.2%
update_metric_monitor 1479 2.2%
create_metric_monitor 1458 2.2%
get_event_stacktrace 1381 2%
update_issue 1380 2%
render_sentry_chart 1362 2%
get_snapshot 1308 1.9%
get_profile 1291 1.9%
get_agent_conversation_details 1278 1.9%
find_monitors 1261 1.9%
search_logs 1248 1.8%
search_traces 1246 1.8%
get_alert_options 1236 1.8%
search_profiles 1228 1.8%
search_metrics 1216 1.8%
search_errors 1214 1.8%
get_profile_details 1200 1.8%
find_related_issues 1171 1.7%
get_uptime_monitor_details 1163 1.7%
create_monitor 1135 1.7%
onboarding_status_update 1109 1.6%
search_issue_events 1103 1.6%
search_replays 1095 1.6%
render_issue_chart 1061 1.6%
get_release_details 1056 1.6%
get_dashboard_details 1052 1.6%
search_issues 977 1.4%
search_docs 973 1.4%
find_alert_rules 908 1.3%
update_uptime_monitor 873 1.3%
create_uptime_monitor 871 1.3%
search_agent_conversations 830 1.2%
find_dropped_events 819 1.2%
get_metric_monitor_details 797 1.2%
create_project 793 1.2%
update_dsn 765 1.1%
get_issue_user_reports 630 0.9%
get_latest_base_snapshot 623 0.9%
find_dashboards 553 0.8%
link_issue 545 0.8%
find_uptime_monitors 537 0.8%
get_issue_breadcrumbs 492 0.7%
unlink_issue 476 0.7%
find_metric_monitors 471 0.7%
get_issue_tag_values 469 0.7%
update_project 441 0.7%
get_sentry_resource 429 0.6%
submit_feedback_to_sentry_team 426 0.6%
add_issue_note 404 0.6%
delete_monitor_environment 363 0.5%
find_teams 351 0.5%
find_projects 346 0.5%
delete_alert_rule 345 0.5%
delete_uptime_monitor 333 0.5%
delete_metric_monitor 331 0.5%
create_dsn 326 0.5%
add_team_to_project 324 0.5%
remove_team_from_project 320 0.5%
find_dsns 319 0.5%
find_organizations 311 0.5%
get_snapshot_image 302 0.4%
analyze_issue_with_seer 300 0.4%
get_event_attachment 299 0.4%
get_trace_details 282 0.4%
create_team 266 0.4%
get_span_details 263 0.4%
whoami 261 0.4%
get_sentry_mcp_info 142 0.2%
get_doc 102 0.2%

Note: This measures the static overhead of tool definitions sent to LLM clients with every request. Lower is better.

MCP Apps views

Each ui:// view as a host receives it from resources/read.

View MIME type Raw Gzip Brotli Budget % of budget
ui://sentry/chart/v5.html text/html;profile=mcp-app 19,234 B 7,915 B 7,020 B 24,576 B 78.3%

The budget applies to raw bytes, and the view's generator fails over it.

Comment thread .github/workflows/cli-build.yml Resolved

@BYK BYK left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't we need to bump up fossilize version?

@BYK
BYK marked this pull request as ready for review November 26, 2026 13:09
@github-actions github-actions Bot added the risk: medium PR risk score: medium label Nov 26, 2026

This branch was successfully deployed

2 active deployments
Preview – sentry-local — dcf6496d Deployed Nov 26, 2026 by vercel[bot]
Preview – cli — dcf6496d Deployed Nov 26, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant