Skip to content

build/darwin: skip @microsoft/mxc-sdk bin/ in Mach-O arch check#317865

Merged
bryanchen-d merged 1 commit into
mainfrom
bryanchen/skip-mxc-sdk-macho-check
May 21, 2026
Merged

build/darwin: skip @microsoft/mxc-sdk bin/ in Mach-O arch check#317865
bryanchen-d merged 1 commit into
mainfrom
bryanchen/skip-mxc-sdk-macho-check

Conversation

@bryanchen-d
Copy link
Copy Markdown
Contributor

Fixes failing macOS x64 build introduced by #317669.

The @microsoft/mxc-sdk npm package ships per-arch native binaries under bin/arm64 and bin/x64 regardless of host arch. The macOS x64 build failed Verify arch of Mach-O objects on:

node_modules/@microsoft/mxc-sdk/bin/arm64/mxc-exec-mac

This blocked the unsigned x64 artifact, which then caused the universal stage to time out waiting for it (seen in insider build 441345).

Skip the whole bin/ tree in build/darwin/verify-macho.ts, matching existing patterns for other multi-arch vendor payloads (@github/copilot-darwin-*, @vscode/ripgrep-universal).

Verified by:

  • Listing tarball contents of @microsoft/mxc-sdk@0.2.0 (both bin/arm64 and bin/x64).
  • Matching log output from insider build 441345 attempt 1.

The @microsoft/mxc-sdk package ships per-arch native binaries under
bin/arm64 and bin/x64 regardless of the host architecture, so the macOS
x64 build was failing 'Verify arch of Mach-O objects' on
node_modules/@microsoft/mxc-sdk/bin/arm64/mxc-exec-mac. Skip the whole
bin/ tree, matching the pattern already used for similar multi-arch
vendor payloads.
Copilot AI review requested due to automatic review settings May 21, 2026 22:01
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes macOS x64 build failures in the Mach-O architecture verification step by excluding @microsoft/mxc-sdk’s multi-architecture bin/ payload from validation. This aligns with existing exclusions for other vendor packages that ship multiple architectures side-by-side.

Changes:

  • Skip @microsoft/mxc-sdk/bin/** under both node_modules and node_modules.asar.unpacked in the Mach-O arch verification allowlist.
  • Add inline rationale explaining why the package is excluded (ships both arm64 and x64 regardless of host arch).
Show a summary per file
File Description
build/darwin/verify-macho.ts Adds skip globs for @microsoft/mxc-sdk/bin/** to prevent false-positive arch mismatches on macOS x64 builds.

Copilot's findings

  • Files reviewed: 1/1 changed files
  • Comments generated: 0

@bryanchen-d bryanchen-d enabled auto-merge (squash) May 21, 2026 22:07
@bryanchen-d bryanchen-d merged commit 5b8308a into main May 21, 2026
26 checks passed
@bryanchen-d bryanchen-d deleted the bryanchen/skip-mxc-sdk-macho-check branch May 21, 2026 22:32
@vs-code-engineering vs-code-engineering Bot added this to the 1.122.0 milestone May 21, 2026
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.

3 participants