Skip to content

build: link the macOS snapshot tools without ThinLTO in release builds - #52884

Merged
MarshallOfSound merged 2 commits into
sam/macos-build-quick-winsfrom
sam/mac-nolto-snapshot-toolchain
Aug 17, 2026
Merged

MarshallOfSound merged 2 commits into
sam/macos-build-quick-winsfrom
sam/mac-nolto-snapshot-toolchain

Conversation

@MarshallOfSound

Copy link
Copy Markdown
Member

Prototype, stacked on #52883.

In official builds v8_snapshot_toolchain is the target toolchain, so mksnapshot, node_mksnapshot, v8_context_snapshot_generator and the natives code-cache generator are each a full ThinLTO+PGO link of V8/Blink/Node with dsymutil. On the 5-core / 14 GB macOS runners those four links take 12 + 6 + 20 + 2 min (21 + 46 min on x64, under Rosetta), run serially through a link pool of depth 1 at 5-9 GB RSS each, all before the Electron Framework link can start — and their outputs are data that does not depend on how optimized the tool binary is.

  • Add //electron/build/toolchain/mac with mac toolchain variants that turn off ThinLTO, PGO and debug info (symbol_level=0, so the extra objects are small and dsymutil is near-free), and point macOS release builds at them: clang_arm64_snapshot (arm64) / clang_x64_snapshot (x64 stays x64 so mksnapshot.zip still ships an x64 mksnapshot). V8/Blink/Node compile a second time in that toolchain (~28k objects, remote + cacheable).
  • Flatten mksnapshot.zip on macOS when the tools live under <toolchain>/, and teach build/zip.py to apply PATHS_TO_SKIP toolchain-relative and to drop duplicates when flattening. Verified the resulting file set is identical to today's.
  • Testing builds unaffected (no LTO there).

Trade-off to measure: the extra ~28k cache-hit fetches cost fetch-phase time on the 5-core runner against ~40 min of serialized link time. Measurement runs (macOS only, no publish) are in flight alongside a baseline and #52883.

Notes: none

@MarshallOfSound
MarshallOfSound force-pushed the sam/mac-nolto-snapshot-toolchain branch 2 times, most recently from 72e12c8 to eddc034 Compare August 17, 2026 06:25
@MarshallOfSound

MarshallOfSound commented Aug 17, 2026 •

Copy link
Copy Markdown
Member Author

Cold measurement run alongside the baseline and #52883 (same start time, same RBE state, darwin arm64 + x64, no publish):

baseline #52883 this PR (stacked)
arm64 job 3h02m 2h41m 2h30m
x64 job 3h40m 3h25m 2h38m
siso wall arm64 / x64 133 / 171 min 143 / 185 min 134 / 137 min
steps 46.6k 46.6k 77.8k / 80.0k
v8_context_snapshot_generator link (arm64 / x64) 1150 / 1547 s 1091 / 1826 s 9.7 / 9.5 s
Framework link starts at (arm64) ~57 min 57.5 min 32.7 min
Framework link (arm64 / x64) 4980 / 6502 s 5052 / 6579 s 5997 / 6171 s

mksnapshot / node_mksnapshot / codecache tool links drop out of the top 10 entirely. The Framework link itself got slower on arm64 because it now starts while the extra toolchain's compiles are still being fetched (CPU contention on 5 cores), which is the cost of the +31k steps; the warm reruns will show what that costs when they are all cache hits. Also fixed here: build-stats.mjs was reading the whole siso.INFO into a string, which blows V8's string limit at ~78k steps (now reads the tail).

In official builds v8_snapshot_toolchain is the target toolchain, so
mksnapshot, node_mksnapshot, v8_context_snapshot_generator and the natives
code-cache generator are each a full ThinLTO+PGO link of V8 (and Blink, and
Node) with dsymutil. On the 5-core / 14 GB macOS CI runners those four links
take 12 + 6 + 20 + 2 minutes (21 + 46 min on x64, where they also run under
Rosetta), run serially through a link pool of depth 1, and page heavily
(5-9 GB RSS each), all before the Electron Framework link can start. Their
outputs are snapshot/code-cache data that does not depend on how optimized
the tool binary is.

Add //electron/build/toolchain/mac with variants of the mac toolchain that
turn off ThinLTO, PGO and debug info (symbol_level=0, so the extra objects
are small and dsymutil has nothing to link) and point macOS release builds'
v8_snapshot_toolchain at them: clang_arm64_snapshot for arm64 and
clang_x64_snapshot for x64 (still x64 so mksnapshot.zip keeps shipping an
x64 mksnapshot). V8/Blink/Node compile a second time in that toolchain, but
remotely and cacheably.

Because the tools now live under $root_out_dir/<toolchain>/, mksnapshot.zip
is flattened on macOS so its layout is unchanged (mksnapshot,
v8_context_snapshot_generator, their dylibs and icudtl.dat at the root), and
build/zip.py learns to apply PATHS_TO_SKIP relative to a toolchain dir and
to drop duplicates when flattening. The resulting file set is identical to
the default-toolchain one.

Testing builds are unaffected (no LTO there, so nothing to gain from a
second toolchain).

No-Verification-Needed: build config and packaging script only
@MarshallOfSound
MarshallOfSound force-pushed the sam/mac-nolto-snapshot-toolchain branch from eddc034 to 7005d5c Compare August 17, 2026 07:41
MarshallOfSound added a commit to electron/build-tools that referenced this pull request Aug 17, 2026
Chromium's clang rules carry a 2 minute timeout that siso applies
client-side to the whole remote step (upload + RBE queue + execution +
download). When it fires siso re-runs the compile locally, and on the
5-core / 14 GB macOS CI runners a local ThinLTO compile takes 5-10 minutes
and lands on the critical path: one release build had 75 such fallbacks,
a testing build 570. Raise the deadline to 10 minutes on macOS hosts so
ordinary RBE queueing does not trigger the fallback; the fallback itself
stays as the safety net (SISO_EXPERIMENTS=no-fallback turned queue
pressure into hard build failures, see electron/electron#52884's CI).
@MarshallOfSound

Copy link
Copy Markdown
Member Author

Warm numbers (full RBE cache hit, macOS only), arm64 / x64. Runs: baseline 32005408697, #52883 32005411031, #52884 32005413225, full stack r1 32006258511 (still had SISO_EXPERIMENTS=no-fallback set), full stack r2 32020211858 (final #52896 head, no no-fallback).

baseline warm #52883 warm #52884 warm full stack warm r1 full stack warm r2
arm64 job wall 2h50m 2h41m 2h27m 2h33m 3h21m
x64 job wall 4h18m 3h01m 2h42m 2h47m 2h56m
siso wall 127 / 213 min 141 / 164 min 130 / 146 min 136 / 149 min 182 / 158 min
Zip Symbols 28.0 / 27.6 min 3.2 / 2.8 min 1.8 / 1.4 min 1.7 / 1.4 min 1.8 / 1.4 min
Framework link 4180 / 7854 s 5143 / 6103 s 5623 / 6676 s 6527 / 7255 s 9326 / 7879 s
v8_context_snapshot_generator link 904 / 1865 s 1072 / 1452 s 11.3 / <8 s 10.2 / 13.9 s <5 / <6 s
siso wall minus Framework link 58 / 82 min 56 / 62 min 36 / 34 min 27 / 29 min 26 / 27 min
cache hit rate 96.1 / 95.4% 95.4 / 96.6% 95.8 / 98.0% 89.6 / 89.4% 97.7 / 98.1%

The Electron Framework ThinLTO link swings from 4180 s to 9326 s across these runs on the same inputs, so job wall and siso wall are mostly runner link noise on macos-15-xlarge. The row that isolates what the stack changes is siso wall minus the Framework link: 58 / 82 min on baseline down to 26 / 27 min with the full stack. Zip Symbols goes from 28 min to under 2 min, the v8_context_snapshot_generator link from 15 to 31 min down to seconds. Full stack r1 ran with no-fallback which is what dropped the hit rate to 89%, r2 without it is back at 98%. Baseline x64 warm at 4h18m is a slow outlier (cold was 3h40m).

@MarshallOfSound

Copy link
Copy Markdown
Member Author

Warm-cache measurement runs (95-98% cache hits) for the whole stack, macOS release jobs, all dispatched from release-build.yml (macOS only, no upload):

arm64 warm baseline (run) #52883 (run) #52884 (run) + #52896 (run 1) + #52896 (run 2)
job wall 2h50m 2h41m 2h27m 2h33m 3h21m
siso wall 127 min 141 min 130 min 136 min 182 min
Framework link (local, swap bound) 70 min 86 min 94 min 109 min 155 min
siso minus Framework link 58 min 56 min 36 min 27 min 26 min
v8_context_snapshot_generator link 904 s 1072 s 11 s 10 s <10 s
Zip Symbols ~30 min ~3 min ~2 min ~2 min 1.9 min
x64 warm baseline #52883 #52884 + #52896 run 1 + #52896 run 2
job wall 4h17m 3h01m 2h42m 2h47m 2h56m
siso wall 213 min 164 min 146 min 149 min 158 min
Framework link 131 min 102 min 111 min 121 min 131 min
siso minus Framework link 82 min 62 min 34 min 28 min 27 min
v8_context_snapshot_generator link 1865 s 1452 s <10 s 14 s <10 s
Zip Symbols ~30 min ~3 min ~2 min ~2 min 1.4 min

Notes:

  • The Framework ThinLTO link runs locally and varies 70 to 155 min run to run on the same config (the runner swaps through it), so job wall is not a usable comparison here. Everything these PRs touch is in "siso minus Framework link", which goes 58 -> 26 min (arm64) and 82 -> 27 min (x64) across the stack, plus about 28 min off Zip Symbols.
  • The +31k snapshot toolchain steps in build: link the macOS snapshot tools without ThinLTO in release builds #52884 did not show up as a cost even with 8 jobs sharing RBE.
  • All warm runs overlapped an RBE ActionCache incident (lookups timing out under load, tracked in electron/infra) and run 2 overlapped a storage rollout, so hit rates and remote step times are pessimistic.

@MarshallOfSound
MarshallOfSound marked this pull request as ready for review August 17, 2026 17:01
…pile deadlines (#52896)

Picks up electron/build-tools#889 and #890:

* siso runs the mojom, Blink bindings, grit strings and TypeScript/WebUI
  generators on RBE workers instead of locally (all hosts). On the 5-core
  macOS runners those steps are about a CPU-hour of python/node per release
  build, contending with siso's include scanning during the fetch phase;
  remotely they are also cached, so unchanged generators become cache hits
  on every host.
* remote clang steps on macOS hosts get a 10 minute client-side deadline
  instead of 2 minutes, so ordinary RBE queueing no longer triggers the
  5-10 minute local ThinLTO fallback compiles that land on the critical
  path (75 in one release build, 570 in a testing build). Local fallback
  stays as the safety net.
@MarshallOfSound
MarshallOfSound merged commit 81ae8e5 into sam/macos-build-quick-wins Aug 17, 2026
15 of 17 checks passed
@release-clerk

release-clerk Bot commented Aug 17, 2026

Copy link
Copy Markdown

No Release Notes

@MarshallOfSound
MarshallOfSound deleted the sam/mac-nolto-snapshot-toolchain branch August 17, 2026 17:02
MarshallOfSound added a commit that referenced this pull request Aug 17, 2026
* build: trim the non-link overhead of macOS release builds

Four independent, low-risk changes aimed at the macOS release job, which
today spends well over an hour outside the ThinLTO links themselves:

* Zip Symbols: `tar --options xz:threads=0` does not actually multi-thread
  on macOS (Apple's liblzma emits a single block), so the ~7 GB of dSYMs
  were being compressed by one core at preset -6, ~30 minutes per job. Pipe
  the tar stream through the xz binary with -T0 instead (falling back to
  the tar options when xz is not on PATH), and use preset -3, which is ~5x
  faster than -6 for ~12% larger output. Same .tar.xz format.

* siso: set SISO_EXPERIMENTS=no-fallback on macOS. When a remote compile
  exceeds siso's 2 minute client-side deadline (RBE queueing, an upload
  stall) siso re-runs it locally; on the 5-core / 14 GB runners a local
  ThinLTO compile takes 5-10 minutes and lands on the critical path (75
  such fallbacks in a recent release build, 570 in a testing build).
  no-fallback retries remotely with a 4x longer deadline instead.

* GN: thin_lto_enable_cache=false for macOS release builds. CI starts from
  a fresh out dir, so the ThinLTO cache is written (~100 GB across a
  release build's links) and never read, competing for IO with links that
  are already swapping. Local builds keep the default.

* build-stats: hash object files on worker threads and only walk obj/ and
  <toolchain>/obj/. The previous recursive readdir of the whole out dir
  (~800k entries) plus single-threaded sha256 of ~6 GB took 2-3 minutes;
  this takes seconds. Objects outside those trees (SDK crt*.o, rust
  sysroot copies) are no longer counted, which does not affect the change
  rate metric since only files present in both snapshots are compared.

No-Verification-Needed: CI config and build scripts only, no product code

* build: use context managers for the tar|xz pipeline (pylint R1732)

* build: read only the tail of siso.INFO in build-stats.mjs

siso.INFO grows with the step count and a release build's already exceeds
V8's maximum string length once a second toolchain is in the graph, which
made build-stats.mjs fail with 'Invalid string length'. The stats line is
at the end of the log, so read the last 16 MB instead of the whole file.

* build: drop SISO_EXPERIMENTS=no-fallback on macOS

Under RBE queue pressure a remote compile can stay EXECUTING past siso's
deadline; with no-fallback siso retries (deduped onto the same running op)
and then fails the build outright, which is worse than a slow local
fallback for PR CI. Give remote compiles a longer deadline in build-tools'
siso config instead and keep the fallback as the safety net.

* build: link the macOS snapshot tools without ThinLTO in release builds (#52884)

* build: link the macOS snapshot tools without ThinLTO in release builds

In official builds v8_snapshot_toolchain is the target toolchain, so
mksnapshot, node_mksnapshot, v8_context_snapshot_generator and the natives
code-cache generator are each a full ThinLTO+PGO link of V8 (and Blink, and
Node) with dsymutil. On the 5-core / 14 GB macOS CI runners those four links
take 12 + 6 + 20 + 2 minutes (21 + 46 min on x64, where they also run under
Rosetta), run serially through a link pool of depth 1, and page heavily
(5-9 GB RSS each), all before the Electron Framework link can start. Their
outputs are snapshot/code-cache data that does not depend on how optimized
the tool binary is.

Add //electron/build/toolchain/mac with variants of the mac toolchain that
turn off ThinLTO, PGO and debug info (symbol_level=0, so the extra objects
are small and dsymutil has nothing to link) and point macOS release builds'
v8_snapshot_toolchain at them: clang_arm64_snapshot for arm64 and
clang_x64_snapshot for x64 (still x64 so mksnapshot.zip keeps shipping an
x64 mksnapshot). V8/Blink/Node compile a second time in that toolchain, but
remotely and cacheably.

Because the tools now live under $root_out_dir/<toolchain>/, mksnapshot.zip
is flattened on macOS so its layout is unchanged (mksnapshot,
v8_context_snapshot_generator, their dylibs and icudtl.dat at the root), and
build/zip.py learns to apply PATHS_TO_SKIP relative to a toolchain dir and
to drop duplicates when flattening. The resulting file set is identical to
the default-toolchain one.

Testing builds are unaffected (no LTO there, so nothing to gain from a
second toolchain).

No-Verification-Needed: build config and packaging script only

* build: update build-tools for remote generators and longer remote compile deadlines (#52896)

Picks up electron/build-tools#889 and #890:

* siso runs the mojom, Blink bindings, grit strings and TypeScript/WebUI
  generators on RBE workers instead of locally (all hosts). On the 5-core
  macOS runners those steps are about a CPU-hour of python/node per release
  build, contending with siso's include scanning during the fetch phase;
  remotely they are also cached, so unchanged generators become cache hits
  on every host.
* remote clang steps on macOS hosts get a 10 minute client-side deadline
  instead of 2 minutes, so ordinary RBE queueing no longer triggers the
  5-10 minute local ThinLTO fallback compiles that land on the critical
  path (75 in one release build, 570 in a testing build). Local fallback
  stays as the safety net.
MarshallOfSound added a commit that referenced this pull request Aug 18, 2026
build: trim the non-link overhead of macOS release builds (#52883)

* build: trim the non-link overhead of macOS release builds

Four independent, low-risk changes aimed at the macOS release job, which
today spends well over an hour outside the ThinLTO links themselves:

* Zip Symbols: `tar --options xz:threads=0` does not actually multi-thread
  on macOS (Apple's liblzma emits a single block), so the ~7 GB of dSYMs
  were being compressed by one core at preset -6, ~30 minutes per job. Pipe
  the tar stream through the xz binary with -T0 instead (falling back to
  the tar options when xz is not on PATH), and use preset -3, which is ~5x
  faster than -6 for ~12% larger output. Same .tar.xz format.

* siso: set SISO_EXPERIMENTS=no-fallback on macOS. When a remote compile
  exceeds siso's 2 minute client-side deadline (RBE queueing, an upload
  stall) siso re-runs it locally; on the 5-core / 14 GB runners a local
  ThinLTO compile takes 5-10 minutes and lands on the critical path (75
  such fallbacks in a recent release build, 570 in a testing build).
  no-fallback retries remotely with a 4x longer deadline instead.

* GN: thin_lto_enable_cache=false for macOS release builds. CI starts from
  a fresh out dir, so the ThinLTO cache is written (~100 GB across a
  release build's links) and never read, competing for IO with links that
  are already swapping. Local builds keep the default.

* build-stats: hash object files on worker threads and only walk obj/ and
  <toolchain>/obj/. The previous recursive readdir of the whole out dir
  (~800k entries) plus single-threaded sha256 of ~6 GB took 2-3 minutes;
  this takes seconds. Objects outside those trees (SDK crt*.o, rust
  sysroot copies) are no longer counted, which does not affect the change
  rate metric since only files present in both snapshots are compared.

No-Verification-Needed: CI config and build scripts only, no product code

* build: use context managers for the tar|xz pipeline (pylint R1732)

* build: read only the tail of siso.INFO in build-stats.mjs

siso.INFO grows with the step count and a release build's already exceeds
V8's maximum string length once a second toolchain is in the graph, which
made build-stats.mjs fail with 'Invalid string length'. The stats line is
at the end of the log, so read the last 16 MB instead of the whole file.

* build: drop SISO_EXPERIMENTS=no-fallback on macOS

Under RBE queue pressure a remote compile can stay EXECUTING past siso's
deadline; with no-fallback siso retries (deduped onto the same running op)
and then fails the build outright, which is worse than a slow local
fallback for PR CI. Give remote compiles a longer deadline in build-tools'
siso config instead and keep the fallback as the safety net.

* build: link the macOS snapshot tools without ThinLTO in release builds (#52884)

* build: link the macOS snapshot tools without ThinLTO in release builds

In official builds v8_snapshot_toolchain is the target toolchain, so
mksnapshot, node_mksnapshot, v8_context_snapshot_generator and the natives
code-cache generator are each a full ThinLTO+PGO link of V8 (and Blink, and
Node) with dsymutil. On the 5-core / 14 GB macOS CI runners those four links
take 12 + 6 + 20 + 2 minutes (21 + 46 min on x64, where they also run under
Rosetta), run serially through a link pool of depth 1, and page heavily
(5-9 GB RSS each), all before the Electron Framework link can start. Their
outputs are snapshot/code-cache data that does not depend on how optimized
the tool binary is.

Add //electron/build/toolchain/mac with variants of the mac toolchain that
turn off ThinLTO, PGO and debug info (symbol_level=0, so the extra objects
are small and dsymutil has nothing to link) and point macOS release builds'
v8_snapshot_toolchain at them: clang_arm64_snapshot for arm64 and
clang_x64_snapshot for x64 (still x64 so mksnapshot.zip keeps shipping an
x64 mksnapshot). V8/Blink/Node compile a second time in that toolchain, but
remotely and cacheably.

Because the tools now live under $root_out_dir/<toolchain>/, mksnapshot.zip
is flattened on macOS so its layout is unchanged (mksnapshot,
v8_context_snapshot_generator, their dylibs and icudtl.dat at the root), and
build/zip.py learns to apply PATHS_TO_SKIP relative to a toolchain dir and
to drop duplicates when flattening. The resulting file set is identical to
the default-toolchain one.

Testing builds are unaffected (no LTO there, so nothing to gain from a
second toolchain).

No-Verification-Needed: build config and packaging script only

* build: update build-tools for remote generators and longer remote compile deadlines (#52896)

Picks up electron/build-tools#889 and #890:

* siso runs the mojom, Blink bindings, grit strings and TypeScript/WebUI
  generators on RBE workers instead of locally (all hosts). On the 5-core
  macOS runners those steps are about a CPU-hour of python/node per release
  build, contending with siso's include scanning during the fetch phase;
  remotely they are also cached, so unchanged generators become cache hits
  on every host.
* remote clang steps on macOS hosts get a 10 minute client-side deadline
  instead of 2 minutes, so ordinary RBE queueing no longer triggers the
  5-10 minute local ThinLTO fallback compiles that land on the critical
  path (75 in one release build, 570 in a testing build). Local fallback
  stays as the safety net.

(cherry picked from commit d36eebf)

Co-authored-by: Samuel Attard <[email protected]>
VerteDinde pushed a commit that referenced this pull request Aug 18, 2026
* build: trim the non-link overhead of macOS release builds

Four independent, low-risk changes aimed at the macOS release job, which
today spends well over an hour outside the ThinLTO links themselves:

* Zip Symbols: `tar --options xz:threads=0` does not actually multi-thread
  on macOS (Apple's liblzma emits a single block), so the ~7 GB of dSYMs
  were being compressed by one core at preset -6, ~30 minutes per job. Pipe
  the tar stream through the xz binary with -T0 instead (falling back to
  the tar options when xz is not on PATH), and use preset -3, which is ~5x
  faster than -6 for ~12% larger output. Same .tar.xz format.

* siso: set SISO_EXPERIMENTS=no-fallback on macOS. When a remote compile
  exceeds siso's 2 minute client-side deadline (RBE queueing, an upload
  stall) siso re-runs it locally; on the 5-core / 14 GB runners a local
  ThinLTO compile takes 5-10 minutes and lands on the critical path (75
  such fallbacks in a recent release build, 570 in a testing build).
  no-fallback retries remotely with a 4x longer deadline instead.

* GN: thin_lto_enable_cache=false for macOS release builds. CI starts from
  a fresh out dir, so the ThinLTO cache is written (~100 GB across a
  release build's links) and never read, competing for IO with links that
  are already swapping. Local builds keep the default.

* build-stats: hash object files on worker threads and only walk obj/ and
  <toolchain>/obj/. The previous recursive readdir of the whole out dir
  (~800k entries) plus single-threaded sha256 of ~6 GB took 2-3 minutes;
  this takes seconds. Objects outside those trees (SDK crt*.o, rust
  sysroot copies) are no longer counted, which does not affect the change
  rate metric since only files present in both snapshots are compared.

No-Verification-Needed: CI config and build scripts only, no product code

* build: use context managers for the tar|xz pipeline (pylint R1732)

* build: read only the tail of siso.INFO in build-stats.mjs

siso.INFO grows with the step count and a release build's already exceeds
V8's maximum string length once a second toolchain is in the graph, which
made build-stats.mjs fail with 'Invalid string length'. The stats line is
at the end of the log, so read the last 16 MB instead of the whole file.

* build: drop SISO_EXPERIMENTS=no-fallback on macOS

Under RBE queue pressure a remote compile can stay EXECUTING past siso's
deadline; with no-fallback siso retries (deduped onto the same running op)
and then fails the build outright, which is worse than a slow local
fallback for PR CI. Give remote compiles a longer deadline in build-tools'
siso config instead and keep the fallback as the safety net.

* build: link the macOS snapshot tools without ThinLTO in release builds (#52884)

* build: link the macOS snapshot tools without ThinLTO in release builds

In official builds v8_snapshot_toolchain is the target toolchain, so
mksnapshot, node_mksnapshot, v8_context_snapshot_generator and the natives
code-cache generator are each a full ThinLTO+PGO link of V8 (and Blink, and
Node) with dsymutil. On the 5-core / 14 GB macOS CI runners those four links
take 12 + 6 + 20 + 2 minutes (21 + 46 min on x64, where they also run under
Rosetta), run serially through a link pool of depth 1, and page heavily
(5-9 GB RSS each), all before the Electron Framework link can start. Their
outputs are snapshot/code-cache data that does not depend on how optimized
the tool binary is.

Add //electron/build/toolchain/mac with variants of the mac toolchain that
turn off ThinLTO, PGO and debug info (symbol_level=0, so the extra objects
are small and dsymutil has nothing to link) and point macOS release builds'
v8_snapshot_toolchain at them: clang_arm64_snapshot for arm64 and
clang_x64_snapshot for x64 (still x64 so mksnapshot.zip keeps shipping an
x64 mksnapshot). V8/Blink/Node compile a second time in that toolchain, but
remotely and cacheably.

Because the tools now live under $root_out_dir/<toolchain>/, mksnapshot.zip
is flattened on macOS so its layout is unchanged (mksnapshot,
v8_context_snapshot_generator, their dylibs and icudtl.dat at the root), and
build/zip.py learns to apply PATHS_TO_SKIP relative to a toolchain dir and
to drop duplicates when flattening. The resulting file set is identical to
the default-toolchain one.

Testing builds are unaffected (no LTO there, so nothing to gain from a
second toolchain).

No-Verification-Needed: build config and packaging script only

* build: update build-tools for remote generators and longer remote compile deadlines (#52896)

Picks up electron/build-tools#889 and #890:

* siso runs the mojom, Blink bindings, grit strings and TypeScript/WebUI
  generators on RBE workers instead of locally (all hosts). On the 5-core
  macOS runners those steps are about a CPU-hour of python/node per release
  build, contending with siso's include scanning during the fetch phase;
  remotely they are also cached, so unchanged generators become cache hits
  on every host.
* remote clang steps on macOS hosts get a 10 minute client-side deadline
  instead of 2 minutes, so ordinary RBE queueing no longer triggers the
  5-10 minute local ThinLTO fallback compiles that land on the critical
  path (75 in one release build, 570 in a testing build). Local fallback
  stays as the safety net.

(cherry picked from commit d36eebf)
VerteDinde pushed a commit that referenced this pull request Aug 19, 2026
* build: trim the non-link overhead of macOS release builds

Four independent, low-risk changes aimed at the macOS release job, which
today spends well over an hour outside the ThinLTO links themselves:

* Zip Symbols: `tar --options xz:threads=0` does not actually multi-thread
  on macOS (Apple's liblzma emits a single block), so the ~7 GB of dSYMs
  were being compressed by one core at preset -6, ~30 minutes per job. Pipe
  the tar stream through the xz binary with -T0 instead (falling back to
  the tar options when xz is not on PATH), and use preset -3, which is ~5x
  faster than -6 for ~12% larger output. Same .tar.xz format.

* siso: set SISO_EXPERIMENTS=no-fallback on macOS. When a remote compile
  exceeds siso's 2 minute client-side deadline (RBE queueing, an upload
  stall) siso re-runs it locally; on the 5-core / 14 GB runners a local
  ThinLTO compile takes 5-10 minutes and lands on the critical path (75
  such fallbacks in a recent release build, 570 in a testing build).
  no-fallback retries remotely with a 4x longer deadline instead.

* GN: thin_lto_enable_cache=false for macOS release builds. CI starts from
  a fresh out dir, so the ThinLTO cache is written (~100 GB across a
  release build's links) and never read, competing for IO with links that
  are already swapping. Local builds keep the default.

* build-stats: hash object files on worker threads and only walk obj/ and
  <toolchain>/obj/. The previous recursive readdir of the whole out dir
  (~800k entries) plus single-threaded sha256 of ~6 GB took 2-3 minutes;
  this takes seconds. Objects outside those trees (SDK crt*.o, rust
  sysroot copies) are no longer counted, which does not affect the change
  rate metric since only files present in both snapshots are compared.

No-Verification-Needed: CI config and build scripts only, no product code

* build: use context managers for the tar|xz pipeline (pylint R1732)

* build: read only the tail of siso.INFO in build-stats.mjs

siso.INFO grows with the step count and a release build's already exceeds
V8's maximum string length once a second toolchain is in the graph, which
made build-stats.mjs fail with 'Invalid string length'. The stats line is
at the end of the log, so read the last 16 MB instead of the whole file.

* build: drop SISO_EXPERIMENTS=no-fallback on macOS

Under RBE queue pressure a remote compile can stay EXECUTING past siso's
deadline; with no-fallback siso retries (deduped onto the same running op)
and then fails the build outright, which is worse than a slow local
fallback for PR CI. Give remote compiles a longer deadline in build-tools'
siso config instead and keep the fallback as the safety net.

* build: link the macOS snapshot tools without ThinLTO in release builds (#52884)

* build: link the macOS snapshot tools without ThinLTO in release builds

In official builds v8_snapshot_toolchain is the target toolchain, so
mksnapshot, node_mksnapshot, v8_context_snapshot_generator and the natives
code-cache generator are each a full ThinLTO+PGO link of V8 (and Blink, and
Node) with dsymutil. On the 5-core / 14 GB macOS CI runners those four links
take 12 + 6 + 20 + 2 minutes (21 + 46 min on x64, where they also run under
Rosetta), run serially through a link pool of depth 1, and page heavily
(5-9 GB RSS each), all before the Electron Framework link can start. Their
outputs are snapshot/code-cache data that does not depend on how optimized
the tool binary is.

Add //electron/build/toolchain/mac with variants of the mac toolchain that
turn off ThinLTO, PGO and debug info (symbol_level=0, so the extra objects
are small and dsymutil has nothing to link) and point macOS release builds'
v8_snapshot_toolchain at them: clang_arm64_snapshot for arm64 and
clang_x64_snapshot for x64 (still x64 so mksnapshot.zip keeps shipping an
x64 mksnapshot). V8/Blink/Node compile a second time in that toolchain, but
remotely and cacheably.

Because the tools now live under $root_out_dir/<toolchain>/, mksnapshot.zip
is flattened on macOS so its layout is unchanged (mksnapshot,
v8_context_snapshot_generator, their dylibs and icudtl.dat at the root), and
build/zip.py learns to apply PATHS_TO_SKIP relative to a toolchain dir and
to drop duplicates when flattening. The resulting file set is identical to
the default-toolchain one.

Testing builds are unaffected (no LTO there, so nothing to gain from a
second toolchain).

No-Verification-Needed: build config and packaging script only

* build: update build-tools for remote generators and longer remote compile deadlines (#52896)

Picks up electron/build-tools#889 and #890:

* siso runs the mojom, Blink bindings, grit strings and TypeScript/WebUI
  generators on RBE workers instead of locally (all hosts). On the 5-core
  macOS runners those steps are about a CPU-hour of python/node per release
  build, contending with siso's include scanning during the fetch phase;
  remotely they are also cached, so unchanged generators become cache hits
  on every host.
* remote clang steps on macOS hosts get a 10 minute client-side deadline
  instead of 2 minutes, so ordinary RBE queueing no longer triggers the
  5-10 minute local ThinLTO fallback compiles that land on the critical
  path (75 in one release build, 570 in a testing build). Local fallback
  stays as the safety net.

(cherry picked from commit d36eebf)
codebytere pushed a commit that referenced this pull request Aug 19, 2026
* build: faster symbol archives, skip test artifacts on publish (#52745)

* build: compress symbol archives faster and skip test artifacts on publish

dsym.tar.xz was written by single-threaded xz, which takes 25-45 minutes
per macOS publish job for the ~7GB of dSYMs; use multi-threaded xz
(bsdtar --options xz:threads=0, XZ_OPT=-T0 for GNU tar). Drop the symbol
zips from deflate level 9 to 6, which is ~1.7x faster for ~0.4% larger
output; pdb.zip on Windows took 8-16 minutes at level 9.

Publish and release-build jobs have no test consumers, so pass
generate-test-artifacts: false to skip the src_artifacts tar (12+ minutes
on Windows) and the linux arm64 cross-arch snapshot (~6 minutes). The
mksnapshot_args fixup is also needed by the released mksnapshot.zip, so it
now runs for release builds regardless of that flag.

No-Verification-Needed: CI workflow and packaging script changes only

* build: only zip symbols when the build asked for them

No-Verification-Needed: CI action condition only
(cherry picked from commit 7eb7b5f)

* build: trim the non-link overhead of macOS release builds (#52883)

* build: trim the non-link overhead of macOS release builds

Four independent, low-risk changes aimed at the macOS release job, which
today spends well over an hour outside the ThinLTO links themselves:

* Zip Symbols: `tar --options xz:threads=0` does not actually multi-thread
  on macOS (Apple's liblzma emits a single block), so the ~7 GB of dSYMs
  were being compressed by one core at preset -6, ~30 minutes per job. Pipe
  the tar stream through the xz binary with -T0 instead (falling back to
  the tar options when xz is not on PATH), and use preset -3, which is ~5x
  faster than -6 for ~12% larger output. Same .tar.xz format.

* siso: set SISO_EXPERIMENTS=no-fallback on macOS. When a remote compile
  exceeds siso's 2 minute client-side deadline (RBE queueing, an upload
  stall) siso re-runs it locally; on the 5-core / 14 GB runners a local
  ThinLTO compile takes 5-10 minutes and lands on the critical path (75
  such fallbacks in a recent release build, 570 in a testing build).
  no-fallback retries remotely with a 4x longer deadline instead.

* GN: thin_lto_enable_cache=false for macOS release builds. CI starts from
  a fresh out dir, so the ThinLTO cache is written (~100 GB across a
  release build's links) and never read, competing for IO with links that
  are already swapping. Local builds keep the default.

* build-stats: hash object files on worker threads and only walk obj/ and
  <toolchain>/obj/. The previous recursive readdir of the whole out dir
  (~800k entries) plus single-threaded sha256 of ~6 GB took 2-3 minutes;
  this takes seconds. Objects outside those trees (SDK crt*.o, rust
  sysroot copies) are no longer counted, which does not affect the change
  rate metric since only files present in both snapshots are compared.

No-Verification-Needed: CI config and build scripts only, no product code

* build: use context managers for the tar|xz pipeline (pylint R1732)

* build: read only the tail of siso.INFO in build-stats.mjs

siso.INFO grows with the step count and a release build's already exceeds
V8's maximum string length once a second toolchain is in the graph, which
made build-stats.mjs fail with 'Invalid string length'. The stats line is
at the end of the log, so read the last 16 MB instead of the whole file.

* build: drop SISO_EXPERIMENTS=no-fallback on macOS

Under RBE queue pressure a remote compile can stay EXECUTING past siso's
deadline; with no-fallback siso retries (deduped onto the same running op)
and then fails the build outright, which is worse than a slow local
fallback for PR CI. Give remote compiles a longer deadline in build-tools'
siso config instead and keep the fallback as the safety net.

* build: link the macOS snapshot tools without ThinLTO in release builds (#52884)

* build: link the macOS snapshot tools without ThinLTO in release builds

In official builds v8_snapshot_toolchain is the target toolchain, so
mksnapshot, node_mksnapshot, v8_context_snapshot_generator and the natives
code-cache generator are each a full ThinLTO+PGO link of V8 (and Blink, and
Node) with dsymutil. On the 5-core / 14 GB macOS CI runners those four links
take 12 + 6 + 20 + 2 minutes (21 + 46 min on x64, where they also run under
Rosetta), run serially through a link pool of depth 1, and page heavily
(5-9 GB RSS each), all before the Electron Framework link can start. Their
outputs are snapshot/code-cache data that does not depend on how optimized
the tool binary is.

Add //electron/build/toolchain/mac with variants of the mac toolchain that
turn off ThinLTO, PGO and debug info (symbol_level=0, so the extra objects
are small and dsymutil has nothing to link) and point macOS release builds'
v8_snapshot_toolchain at them: clang_arm64_snapshot for arm64 and
clang_x64_snapshot for x64 (still x64 so mksnapshot.zip keeps shipping an
x64 mksnapshot). V8/Blink/Node compile a second time in that toolchain, but
remotely and cacheably.

Because the tools now live under $root_out_dir/<toolchain>/, mksnapshot.zip
is flattened on macOS so its layout is unchanged (mksnapshot,
v8_context_snapshot_generator, their dylibs and icudtl.dat at the root), and
build/zip.py learns to apply PATHS_TO_SKIP relative to a toolchain dir and
to drop duplicates when flattening. The resulting file set is identical to
the default-toolchain one.

Testing builds are unaffected (no LTO there, so nothing to gain from a
second toolchain).

No-Verification-Needed: build config and packaging script only

* build: update build-tools for remote generators and longer remote compile deadlines (#52896)

Picks up electron/build-tools#889 and #890:

* siso runs the mojom, Blink bindings, grit strings and TypeScript/WebUI
  generators on RBE workers instead of locally (all hosts). On the 5-core
  macOS runners those steps are about a CPU-hour of python/node per release
  build, contending with siso's include scanning during the fetch phase;
  remotely they are also cached, so unchanged generators become cache hits
  on every host.
* remote clang steps on macOS hosts get a 10 minute client-side deadline
  instead of 2 minutes, so ordinary RBE queueing no longer triggers the
  5-10 minute local ThinLTO fallback compiles that land on the critical
  path (75 in one release build, 570 in a testing build). Local fallback
  stays as the safety net.

(cherry picked from commit d36eebf)

---------

Co-authored-by: Samuel Attard <[email protected]>
jkleinsc pushed a commit that referenced this pull request Aug 24, 2026
* ci: bump build-tools SHA (`4b75f1f`) (#52059)

Also picks up the `e build --only-gen` -> `--gen=only` rename from #51445 (which never targeted 41-x-y); build-tools >= 1f31f11 forwards the old flag to ninja, which breaks the gn-check job.

(cherry picked from commit 3612c21)

* build: faster symbol archives, skip test artifacts on publish (#52745)

41-x-y note: this branch has no generate-test-artifacts plumbing in build-electron/action.yml or the pipeline segments, so only the symbol-archive changes (multi-threaded xz / lower zip level in script/lib/util.py, and gating Zip Symbols on generate-symbols) are carried; the publish-workflow generate-test-artifacts flags and the Fixup Mksnapshot gating have nothing to apply to here.

(cherry picked from commit 7eb7b5f)

* build: trim the non-link overhead of macOS release builds (#52883)

* build: trim the non-link overhead of macOS release builds

Four independent, low-risk changes aimed at the macOS release job, which
today spends well over an hour outside the ThinLTO links themselves:

* Zip Symbols: `tar --options xz:threads=0` does not actually multi-thread
  on macOS (Apple's liblzma emits a single block), so the ~7 GB of dSYMs
  were being compressed by one core at preset -6, ~30 minutes per job. Pipe
  the tar stream through the xz binary with -T0 instead (falling back to
  the tar options when xz is not on PATH), and use preset -3, which is ~5x
  faster than -6 for ~12% larger output. Same .tar.xz format.

* siso: set SISO_EXPERIMENTS=no-fallback on macOS. When a remote compile
  exceeds siso's 2 minute client-side deadline (RBE queueing, an upload
  stall) siso re-runs it locally; on the 5-core / 14 GB runners a local
  ThinLTO compile takes 5-10 minutes and lands on the critical path (75
  such fallbacks in a recent release build, 570 in a testing build).
  no-fallback retries remotely with a 4x longer deadline instead.

* GN: thin_lto_enable_cache=false for macOS release builds. CI starts from
  a fresh out dir, so the ThinLTO cache is written (~100 GB across a
  release build's links) and never read, competing for IO with links that
  are already swapping. Local builds keep the default.

* build-stats: hash object files on worker threads and only walk obj/ and
  <toolchain>/obj/. The previous recursive readdir of the whole out dir
  (~800k entries) plus single-threaded sha256 of ~6 GB took 2-3 minutes;
  this takes seconds. Objects outside those trees (SDK crt*.o, rust
  sysroot copies) are no longer counted, which does not affect the change
  rate metric since only files present in both snapshots are compared.

No-Verification-Needed: CI config and build scripts only, no product code

* build: use context managers for the tar|xz pipeline (pylint R1732)

* build: read only the tail of siso.INFO in build-stats.mjs

siso.INFO grows with the step count and a release build's already exceeds
V8's maximum string length once a second toolchain is in the graph, which
made build-stats.mjs fail with 'Invalid string length'. The stats line is
at the end of the log, so read the last 16 MB instead of the whole file.

* build: drop SISO_EXPERIMENTS=no-fallback on macOS

Under RBE queue pressure a remote compile can stay EXECUTING past siso's
deadline; with no-fallback siso retries (deduped onto the same running op)
and then fails the build outright, which is worse than a slow local
fallback for PR CI. Give remote compiles a longer deadline in build-tools'
siso config instead and keep the fallback as the safety net.

* build: link the macOS snapshot tools without ThinLTO in release builds (#52884)

* build: link the macOS snapshot tools without ThinLTO in release builds

In official builds v8_snapshot_toolchain is the target toolchain, so
mksnapshot, node_mksnapshot, v8_context_snapshot_generator and the natives
code-cache generator are each a full ThinLTO+PGO link of V8 (and Blink, and
Node) with dsymutil. On the 5-core / 14 GB macOS CI runners those four links
take 12 + 6 + 20 + 2 minutes (21 + 46 min on x64, where they also run under
Rosetta), run serially through a link pool of depth 1, and page heavily
(5-9 GB RSS each), all before the Electron Framework link can start. Their
outputs are snapshot/code-cache data that does not depend on how optimized
the tool binary is.

Add //electron/build/toolchain/mac with variants of the mac toolchain that
turn off ThinLTO, PGO and debug info (symbol_level=0, so the extra objects
are small and dsymutil has nothing to link) and point macOS release builds'
v8_snapshot_toolchain at them: clang_arm64_snapshot for arm64 and
clang_x64_snapshot for x64 (still x64 so mksnapshot.zip keeps shipping an
x64 mksnapshot). V8/Blink/Node compile a second time in that toolchain, but
remotely and cacheably.

Because the tools now live under $root_out_dir/<toolchain>/, mksnapshot.zip
is flattened on macOS so its layout is unchanged (mksnapshot,
v8_context_snapshot_generator, their dylibs and icudtl.dat at the root), and
build/zip.py learns to apply PATHS_TO_SKIP relative to a toolchain dir and
to drop duplicates when flattening. The resulting file set is identical to
the default-toolchain one.

Testing builds are unaffected (no LTO there, so nothing to gain from a
second toolchain).

No-Verification-Needed: build config and packaging script only

* build: update build-tools for remote generators and longer remote compile deadlines (#52896)

Picks up electron/build-tools#889 and #890:

* siso runs the mojom, Blink bindings, grit strings and TypeScript/WebUI
  generators on RBE workers instead of locally (all hosts). On the 5-core
  macOS runners those steps are about a CPU-hour of python/node per release
  build, contending with siso's include scanning during the fetch phase;
  remotely they are also cached, so unchanged generators become cache hits
  on every host.
* remote clang steps on macOS hosts get a 10 minute client-side deadline
  instead of 2 minutes, so ordinary RBE queueing no longer triggers the
  5-10 minute local ThinLTO fallback compiles that land on the critical
  path (75 in one release build, 570 in a testing build). Local fallback
  stays as the safety net.

(cherry picked from commit d36eebf)

---------

Co-authored-by: David Sanders <[email protected]>
Co-authored-by: Samuel Attard <[email protected]>
jkleinsc pushed a commit that referenced this pull request Aug 24, 2026
* ci: bump build-tools SHA (`4b75f1f`) (#52059)

Also picks up the `e build --only-gen` -> `--gen=only` rename from #51445 (which never targeted 42-x-y); build-tools >= 1f31f11 forwards the old flag to ninja, which breaks the gn-check and clang-tidy jobs.

(cherry picked from commit 3612c2113c7749c8fa48a0c33c9b6c9913a06147)

* build: faster symbol archives, skip test artifacts on publish (#52745)

* build: compress symbol archives faster and skip test artifacts on publish

dsym.tar.xz was written by single-threaded xz, which takes 25-45 minutes
per macOS publish job for the ~7GB of dSYMs; use multi-threaded xz
(bsdtar --options xz:threads=0, XZ_OPT=-T0 for GNU tar). Drop the symbol
zips from deflate level 9 to 6, which is ~1.7x faster for ~0.4% larger
output; pdb.zip on Windows took 8-16 minutes at level 9.

Publish and release-build jobs have no test consumers, so pass
generate-test-artifacts: false to skip the src_artifacts tar (12+ minutes
on Windows) and the linux arm64 cross-arch snapshot (~6 minutes). The
mksnapshot_args fixup is also needed by the released mksnapshot.zip, so it
now runs for release builds regardless of that flag.

No-Verification-Needed: CI workflow and packaging script changes only

* build: only zip symbols when the build asked for them

No-Verification-Needed: CI action condition only
(cherry picked from commit 7eb7b5f)

* build: trim the non-link overhead of macOS release builds (#52883)

* build: trim the non-link overhead of macOS release builds

Four independent, low-risk changes aimed at the macOS release job, which
today spends well over an hour outside the ThinLTO links themselves:

* Zip Symbols: `tar --options xz:threads=0` does not actually multi-thread
  on macOS (Apple's liblzma emits a single block), so the ~7 GB of dSYMs
  were being compressed by one core at preset -6, ~30 minutes per job. Pipe
  the tar stream through the xz binary with -T0 instead (falling back to
  the tar options when xz is not on PATH), and use preset -3, which is ~5x
  faster than -6 for ~12% larger output. Same .tar.xz format.

* siso: set SISO_EXPERIMENTS=no-fallback on macOS. When a remote compile
  exceeds siso's 2 minute client-side deadline (RBE queueing, an upload
  stall) siso re-runs it locally; on the 5-core / 14 GB runners a local
  ThinLTO compile takes 5-10 minutes and lands on the critical path (75
  such fallbacks in a recent release build, 570 in a testing build).
  no-fallback retries remotely with a 4x longer deadline instead.

* GN: thin_lto_enable_cache=false for macOS release builds. CI starts from
  a fresh out dir, so the ThinLTO cache is written (~100 GB across a
  release build's links) and never read, competing for IO with links that
  are already swapping. Local builds keep the default.

* build-stats: hash object files on worker threads and only walk obj/ and
  <toolchain>/obj/. The previous recursive readdir of the whole out dir
  (~800k entries) plus single-threaded sha256 of ~6 GB took 2-3 minutes;
  this takes seconds. Objects outside those trees (SDK crt*.o, rust
  sysroot copies) are no longer counted, which does not affect the change
  rate metric since only files present in both snapshots are compared.

No-Verification-Needed: CI config and build scripts only, no product code

* build: use context managers for the tar|xz pipeline (pylint R1732)

* build: read only the tail of siso.INFO in build-stats.mjs

siso.INFO grows with the step count and a release build's already exceeds
V8's maximum string length once a second toolchain is in the graph, which
made build-stats.mjs fail with 'Invalid string length'. The stats line is
at the end of the log, so read the last 16 MB instead of the whole file.

* build: drop SISO_EXPERIMENTS=no-fallback on macOS

Under RBE queue pressure a remote compile can stay EXECUTING past siso's
deadline; with no-fallback siso retries (deduped onto the same running op)
and then fails the build outright, which is worse than a slow local
fallback for PR CI. Give remote compiles a longer deadline in build-tools'
siso config instead and keep the fallback as the safety net.

* build: link the macOS snapshot tools without ThinLTO in release builds (#52884)

* build: link the macOS snapshot tools without ThinLTO in release builds

In official builds v8_snapshot_toolchain is the target toolchain, so
mksnapshot, node_mksnapshot, v8_context_snapshot_generator and the natives
code-cache generator are each a full ThinLTO+PGO link of V8 (and Blink, and
Node) with dsymutil. On the 5-core / 14 GB macOS CI runners those four links
take 12 + 6 + 20 + 2 minutes (21 + 46 min on x64, where they also run under
Rosetta), run serially through a link pool of depth 1, and page heavily
(5-9 GB RSS each), all before the Electron Framework link can start. Their
outputs are snapshot/code-cache data that does not depend on how optimized
the tool binary is.

Add //electron/build/toolchain/mac with variants of the mac toolchain that
turn off ThinLTO, PGO and debug info (symbol_level=0, so the extra objects
are small and dsymutil has nothing to link) and point macOS release builds'
v8_snapshot_toolchain at them: clang_arm64_snapshot for arm64 and
clang_x64_snapshot for x64 (still x64 so mksnapshot.zip keeps shipping an
x64 mksnapshot). V8/Blink/Node compile a second time in that toolchain, but
remotely and cacheably.

Because the tools now live under $root_out_dir/<toolchain>/, mksnapshot.zip
is flattened on macOS so its layout is unchanged (mksnapshot,
v8_context_snapshot_generator, their dylibs and icudtl.dat at the root), and
build/zip.py learns to apply PATHS_TO_SKIP relative to a toolchain dir and
to drop duplicates when flattening. The resulting file set is identical to
the default-toolchain one.

Testing builds are unaffected (no LTO there, so nothing to gain from a
second toolchain).

No-Verification-Needed: build config and packaging script only

* build: update build-tools for remote generators and longer remote compile deadlines (#52896)

Picks up electron/build-tools#889 and #890:

* siso runs the mojom, Blink bindings, grit strings and TypeScript/WebUI
  generators on RBE workers instead of locally (all hosts). On the 5-core
  macOS runners those steps are about a CPU-hour of python/node per release
  build, contending with siso's include scanning during the fetch phase;
  remotely they are also cached, so unchanged generators become cache hits
  on every host.
* remote clang steps on macOS hosts get a 10 minute client-side deadline
  instead of 2 minutes, so ordinary RBE queueing no longer triggers the
  5-10 minute local ThinLTO fallback compiles that land on the critical
  path (75 in one release build, 570 in a testing build). Local fallback
  stays as the safety net.

(cherry picked from commit d36eebf)

---------

Co-authored-by: David Sanders <[email protected]>
Co-authored-by: Samuel Attard <[email protected]>
jkleinsc pushed a commit that referenced this pull request Sep 1, 2026
#53363)

Since the macOS release snapshot tools moved into a secondary toolchain
(#52884), gn desc emits the mksnapshot executable path as
./clang_<arch>_snapshot/mksnapshot, but electron_mksnapshot_zip flattens
mksnapshot.zip so the binary lives at the zip root. The Fixup Mksnapshot
step never rewrote that first argument, so every darwin mksnapshot.zip
published since then ships an mksnapshot_args pointing at a path that
does not exist in the zip and @electron/mksnapshot fails with ENOENT.

Rewrite the leading ./clang_*_snapshot/ prefix to ./ so the args file
matches the flattened layout. Linux is unaffected: its cross-arch
toolchain dir (clang_x64_v8_arm64) does not match the pattern and its
zips are not flattened.

Co-authored-by: Claude <[email protected]>
MarshallOfSound pushed a commit that referenced this pull request Sep 1, 2026
#53372)

Since the macOS release snapshot tools moved into a secondary toolchain
(#52884), gn desc emits the mksnapshot executable path as
./clang_<arch>_snapshot/mksnapshot, but electron_mksnapshot_zip flattens
mksnapshot.zip so the binary lives at the zip root. The Fixup Mksnapshot
step never rewrote that first argument, so every darwin mksnapshot.zip
published since then ships an mksnapshot_args pointing at a path that
does not exist in the zip and @electron/mksnapshot fails with ENOENT.

Rewrite the leading ./clang_*_snapshot/ prefix to ./ so the args file
matches the flattened layout. Linux is unaffected: its cross-arch
toolchain dir (clang_x64_v8_arm64) does not match the pattern and its
zips are not flattened.

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Claude <[email protected]>
MarshallOfSound pushed a commit that referenced this pull request Sep 1, 2026
#53371)

Since the macOS release snapshot tools moved into a secondary toolchain
(#52884), gn desc emits the mksnapshot executable path as
./clang_<arch>_snapshot/mksnapshot, but electron_mksnapshot_zip flattens
mksnapshot.zip so the binary lives at the zip root. The Fixup Mksnapshot
step never rewrote that first argument, so every darwin mksnapshot.zip
published since then ships an mksnapshot_args pointing at a path that
does not exist in the zip and @electron/mksnapshot fails with ENOENT.

Rewrite the leading ./clang_*_snapshot/ prefix to ./ so the args file
matches the flattened layout. Linux is unaffected: its cross-arch
toolchain dir (clang_x64_v8_arm64) does not match the pattern and its
zips are not flattened.

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Claude <[email protected]>
MarshallOfSound pushed a commit that referenced this pull request Sep 1, 2026
#53370)

Since the macOS release snapshot tools moved into a secondary toolchain
(#52884), gn desc emits the mksnapshot executable path as
./clang_<arch>_snapshot/mksnapshot, but electron_mksnapshot_zip flattens
mksnapshot.zip so the binary lives at the zip root. The Fixup Mksnapshot
step never rewrote that first argument, so every darwin mksnapshot.zip
published since then ships an mksnapshot_args pointing at a path that
does not exist in the zip and @electron/mksnapshot fails with ENOENT.

Rewrite the leading ./clang_*_snapshot/ prefix to ./ so the args file
matches the flattened layout. Linux is unaffected: its cross-arch
toolchain dir (clang_x64_v8_arm64) does not match the pattern and its
zips are not flattened.

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Claude <[email protected]>
dsanders11 pushed a commit that referenced this pull request Sep 2, 2026
#53388)

Since the macOS release snapshot tools moved into a secondary toolchain
(#52884), gn desc emits the mksnapshot executable path as
./clang_<arch>_snapshot/mksnapshot, but electron_mksnapshot_zip flattens
mksnapshot.zip so the binary lives at the zip root. The Fixup Mksnapshot
step never rewrote that first argument, so every darwin mksnapshot.zip
published since then ships an mksnapshot_args pointing at a path that
does not exist in the zip and @electron/mksnapshot fails with ENOENT.

Rewrite the leading ./clang_*_snapshot/ prefix to ./ so the args file
matches the flattened layout. Linux is unaffected: its cross-arch
toolchain dir (clang_x64_v8_arm64) does not match the pattern and its
zips are not flattened.

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Claude <[email protected]>
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.

1 participant