Skip to content

Increasing build speed for Arm64 GitHub runner free tier - #22454

Closed
crutkas wants to merge 2 commits into
pingdotgg:mainfrom
crutkas:crutkas-windows-arm64-build-speed
Closed

crutkas wants to merge 2 commits into
pingdotgg:mainfrom
crutkas:crutkas-windows-arm64-build-speed

Conversation

@crutkas

@crutkas crutkas commented Oct 20, 2026

Copy link
Copy Markdown
Release job (run 39408391145) Runner Size Time
Linux x64 Blacksmith 32 vCPU 97s
Linux arm64 Blacksmith 16 vCPU 211s
Windows x64 Blacksmith 32 vCPU 234s
macOS x64 macos-26-xlarge XLarge (5) 277s
macOS arm64 macos-26-xlarge XLarge (5) 344s
Windows arm64 today windows-11-arm Standard Free (4) 641s
Windows arm64, this PR windows-11-arm Standard Free (4) ~390s (est.)

Overall: in a full fork run, the Windows arm64 job went from 571s to 320s (−251s, −44%). Applied to the release run above, that's roughly 641s → 390s. Windows arm64 is still the slowest job: most of what remains is CPU-bound (desktop packaging and the emulated x86 NSIS step) on 4 cores, against 16–32 vCPU for the Blacksmith jobs.

Problem

windows-11-arm is a standard GitHub runner with only a C: drive, a remote Azure disk shared by system and data. The current Windows on Arm images also have a second, unformatted 220 GB NVMe drive (see actions/runner-images#14878). Core count is very different (4 cores vs 16–32 vCPU for the Blacksmith jobs), but drive performance matters too: on equal 4-core runners, a cold vp install takes 43s on windows-2025 x64 and 177–292s on windows-11-arm.

Change

For Windows arm64 only, a new first step formats the on-host NVMe as a D: Dev Drive (ReFS), junctions GITHUB_WORKSPACE onto it, and moves TEMP and the pnpm store there. It has to be D:, the only free letter the image excludes from Defender; on N: installs got slower. With no raw NVMe disk, the step warns and the job stays on C:.

Scope and approval

Focused CI performance fix with no prior issue: one step gated to Windows arm64, and no app, packaging, or signing changes. The broader fix, putting runner work on ReFS across all Windows images, is actions/runner-images#14878. NTFS on the same NVMe measured the same as the Dev Drive here (324s vs 320s for the whole job).

Verification

I ran the full arm64 desktop job on a fork with this release's real inputs, with baseline, Dev Drive, and NTFS jobs side by side: 39476041373. The whole job went from 571s to 320s, install from 269s to 63s, and checkout from 40s to 17s. Earlier runs: 39464750743, 39464160618. Install benchmarks: 1, 2, 3.

Not checked: signing. The fork has no signing secrets, and the signing steps are unchanged.

Claude Opus 5.5, GitHub Copilot app.

… NVMe

windows-11-arm keeps the workspace, TEMP, and pnpm store on its network-attached C: disk and leaves a 220 GB local NVMe disk unformatted. Format that disk as D: (already Defender-excluded on the image), junction GITHUB_WORKSPACE onto it, and move TEMP and the pnpm store there.

Measured on windows-11-arm: cold pnpm install 177-292s -> 52-54s, checkout 42-44s -> 16s, whole unsigned desktop job 613-733s -> 460s.
Validated in a full unsigned windows-11-arm job: Dev Drive 320s, NTFS 324s, baseline 571s (dependency install 63s / 51s / 269s).
@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:M 30-99 changed lines (additions + deletions). labels Oct 20, 2026
@macroscopeapp

macroscopeapp Bot commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved at 28dcb43

Macroscope's review found this PR approvable — This adds an isolated Windows arm64 GitHub Actions setup step that uses an available ephemeral NVMe disk for workspace and dependency operations, while preserving existing paths and falling back safely when unavailable. It changes build performance only; application behavior, release targets, and product defaults are unchanged.

You can add or adjust custom eligibility rules. Learn more.

@coderabbitai

coderabbitai Bot commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Path: .coderabbit.config.ts
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 2f244a6b-82a8-4dfc-8c30-6edbce4f76eb
📥 Commits

Reviewing files that changed from the base of the PR and between 5d4c202 and 28dcb43.

📒 Files selected for processing: 1
  • .github/workflows/release-desktop.yml

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

📝 Walkthrough

The Windows ARM release workflow now checks for an eligible NVMe disk and an unused D: drive. If both conditions are met, it creates a ReFS Dev Drive and redirects workspace, temporary, and pnpm storage to it. Otherwise, the build continues on C:.

Changes: Windows ARM storage setup

Layer / File(s) Summary
Detect and configure Dev Drive
.github/workflows/release-desktop.yml
The workflow checks for an eligible NVMe disk and an unused D: drive. When both are available, it creates a ReFS Dev Drive, moves the workspace through a junction, and sets temporary and pnpm storage paths. Otherwise, it warns and continues on C:.

Priority: ➖ Normal

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Suggested reviewers: t3dotgg

Merge Risk: ⚪ Minimal · up to 28dcb

The Windows ARM build retains its C: fallback when no suitable disk is available. No merge-blocking issue was identified.

Architecture risk: 🔵 Low · up to 28dcb

The changed surface does not map to a changed system, dependency edge, entrypoint, or external dependency.

Changed systems: None identified.

Architecture concerns
No architecture-level concerns identified.

Review details

Before / after behavior

  • observed — Modified behavior in .github/workflows/release-desktop.yml: Added conditional Windows ARM workspace optimization: when a raw non-boot, non-system NVMe disk is available and D: is unused, the workflow formats it as a ReFS Dev Drive, creates workspace/temp/pnpm-store directories, replaces GITHUB_WORKSPACE with a junction to D:\workspace, and persists TEMP, TMP, and pnpm store settings. Otherwise, it emits a warning and continues on C:.
Pre-merge checks: Passed 4
Check name Status Explanation
Title check Passed The title clearly identifies the main change: improving build speed for the Arm64 GitHub runner. It is concise and specific.
Description check Passed The description includes the required Problem, Change, Scope and approval, and Verification sections. It explains the runner limitation, implementation, scope rationale, measured results, and unverifi…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Description check

Explanation

The description includes the required Problem, Change, Scope and approval, and Verification sections. It explains the runner limitation, implementation, scope rationale, measured results, and unverified signing step.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@t3dotgg

t3dotgg commented Nov 1, 2026

Copy link
Copy Markdown
Member

Note

🤖 GPT-6.1 Terra [1m] responding on behalf of Theo

Closing because Windows ARM64 packaging now runs on Ubuntu and the Windows ARM runner only verifies the result. The proposed Dev Drive step targets the former build host. #22428 release.yml

@t3dotgg t3dotgg closed this Nov 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M 30-99 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants