Skip to content

test: run the Squirrel.Mac updater specs concurrently off a signed template - #53437

Merged
MarshallOfSound merged 1 commit into
mainfrom
test/parallel-autoupdater-spec
Sep 3, 2026
Merged

MarshallOfSound merged 1 commit into
mainfrom
test/parallel-autoupdater-spec

Conversation

@MarshallOfSound

@MarshallOfSound MarshallOfSound commented Sep 3, 2026 •

Copy link
Copy Markdown
Member

Description of Change

api-autoupdater-darwin-spec.ts is the long pole of CI: ~29 min of the slowest macOS x64 test shard (~10 min on arm64), because every test copies and deep-signs the whole app bundle a couple of times and then runs one Squirrel install cycle at a time.

  • Build one stripped, deep-signed template app per run. Every fixture app and update payload is an APFS clone of it with only Info.plist / Resources/app changed, so it only needs a shallow re-sign.
  • Run the "with update server" tests concurrently in a small slot pool (4 on 8+ core runners, else 2; ELECTRON_SPEC_UPDATER_CONCURRENCY overrides). Each slot gets its own CFBundleIdentifier so ShipIt's launchd job / XPC name / cache dir don't collide, and each task gets its own update server. The mocha test for each task just awaits it, so per-test reporting and retries are unchanged.
  • Stacked-update tests fetch extra payloads via getUpdateZip() instead of nesting withUpdatableApp(), which built start apps nothing launched.
  • SquirrelMacEnableDirectContentsWrite is set in the fixture app's own defaults domain now that it no longer shares the runner's bundle id.

First CI run on this branch (33716702873) vs recent main:

main this PR
autoUpdater suite, x64 (macos-15-large) 29.2 min 8.2 min
autoUpdater suite, arm64 (macos-15) 10.1 min 3.6 min
x64 test (darwin, 1) shard 44–56 min 34.2 min
arm64 test (darwin, 2) shard 22.5 min (median) 20.5 min
macos-x64 lane end 90 min (median) 68 min
whole build.yml run 91 min (median) 68 min

All mac shards passed first try, so the shallow re-sign holds up under Squirrel's strict validation on both arches.

Checklist

  • PR description included

Release Notes

Notes: none

…mplate

The autoUpdater darwin spec is ~29 min of the slowest macOS x64 test shard
(and ~10 min on arm64). Every test copied the whole Electron.app, deep-signed
it, often copied and deep-signed it again for the update payload, and then
ran one Squirrel install cycle at a time.

- Build one stripped, deep-signed template app per run; every fixture app and
  update payload is an APFS clone of it with only Info.plist / Resources/app
  changed, so it only needs a shallow re-sign.
- Run the "with update server" tests as tasks in a small slot pool (4 wide on
  8+ core machines, else 2, ELECTRON_SPEC_UPDATER_CONCURRENCY to override).
  Each slot has its own CFBundleIdentifier so ShipIt's launchd job, XPC name
  and cache dir don't collide, and each task has its own update server.
  The mocha test for each task just awaits it, so reporting and retries are
  unchanged.
- Stacked-update tests fetch extra payloads with getUpdateZip() instead of
  nesting withUpdatableApp(), which built start apps nothing launched.
- SquirrelMacEnableDirectContentsWrite is set in the fixture app's own
  defaults domain now that it no longer shares the runner's bundle id.
@MarshallOfSound
MarshallOfSound marked this pull request as ready for review September 3, 2026 06:10
@MarshallOfSound MarshallOfSound added target/43-x-y PR should also be added to the "43-x-y" branch. target/44-x-y PR should also be added to the "44-x-y" branch. target/45-x-y PR should also be added to the "45-x-y" branch. labels Sep 3, 2026
@MarshallOfSound
MarshallOfSound merged commit 2ccc6b2 into main Sep 3, 2026
106 checks passed
@release-clerk

release-clerk Bot commented Sep 3, 2026

Copy link
Copy Markdown

No Release Notes

@MarshallOfSound
MarshallOfSound deleted the test/parallel-autoupdater-spec branch September 3, 2026 07:16
@github-actions github-actions Bot added the 46-x-y label Sep 3, 2026
@trop

trop Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

I was unable to backport this PR to "44-x-y" cleanly;
you will need to perform this backport manually.

@trop

trop Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

I was unable to backport this PR to "43-x-y" cleanly;
you will need to perform this backport manually.

@trop

trop Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

I was unable to backport this PR to "45-x-y" cleanly;
you will need to perform this backport manually.

@trop trop Bot added needs-manual-bp/44-x-y needs-manual-bp/43-x-y needs-manual-bp/45-x-y and removed target/44-x-y PR should also be added to the "44-x-y" branch. target/43-x-y PR should also be added to the "43-x-y" branch. target/45-x-y PR should also be added to the "45-x-y" branch. labels Sep 3, 2026
@trop

trop Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

@MarshallOfSound has manually backported this PR to "45-x-y", please check out #53452

@trop

trop Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

@MarshallOfSound has manually backported this PR to "44-x-y", please check out #53453

@trop

trop Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

@MarshallOfSound has manually backported this PR to "43-x-y", please check out #53454

MarshallOfSound added a commit that referenced this pull request Sep 3, 2026
…mplate (#53453)

test: run the Squirrel.Mac updater specs concurrently off a signed template (#53437)

The autoUpdater darwin spec is ~29 min of the slowest macOS x64 test shard
(and ~10 min on arm64). Every test copied the whole Electron.app, deep-signed
it, often copied and deep-signed it again for the update payload, and then
ran one Squirrel install cycle at a time.

- Build one stripped, deep-signed template app per run; every fixture app and
  update payload is an APFS clone of it with only Info.plist / Resources/app
  changed, so it only needs a shallow re-sign.
- Run the "with update server" tests as tasks in a small slot pool (4 wide on
  8+ core machines, else 2, ELECTRON_SPEC_UPDATER_CONCURRENCY to override).
  Each slot has its own CFBundleIdentifier so ShipIt's launchd job, XPC name
  and cache dir don't collide, and each task has its own update server.
  The mocha test for each task just awaits it, so reporting and retries are
  unchanged.
- Stacked-update tests fetch extra payloads with getUpdateZip() instead of
  nesting withUpdatableApp(), which built start apps nothing launched.
- SquirrelMacEnableDirectContentsWrite is set in the fixture app's own
  defaults domain now that it no longer shares the runner's bundle id.

(cherry picked from commit 2ccc6b2)
@trop trop Bot added merged/44-x-y PR was merged to the "44-x-y" branch. and removed in-flight/44-x-y labels Sep 3, 2026
MarshallOfSound added a commit that referenced this pull request Sep 3, 2026
…mplate (#53452)

test: run the Squirrel.Mac updater specs concurrently off a signed template (#53437)

The autoUpdater darwin spec is ~29 min of the slowest macOS x64 test shard
(and ~10 min on arm64). Every test copied the whole Electron.app, deep-signed
it, often copied and deep-signed it again for the update payload, and then
ran one Squirrel install cycle at a time.

- Build one stripped, deep-signed template app per run; every fixture app and
  update payload is an APFS clone of it with only Info.plist / Resources/app
  changed, so it only needs a shallow re-sign.
- Run the "with update server" tests as tasks in a small slot pool (4 wide on
  8+ core machines, else 2, ELECTRON_SPEC_UPDATER_CONCURRENCY to override).
  Each slot has its own CFBundleIdentifier so ShipIt's launchd job, XPC name
  and cache dir don't collide, and each task has its own update server.
  The mocha test for each task just awaits it, so reporting and retries are
  unchanged.
- Stacked-update tests fetch extra payloads with getUpdateZip() instead of
  nesting withUpdatableApp(), which built start apps nothing launched.
- SquirrelMacEnableDirectContentsWrite is set in the fixture app's own
  defaults domain now that it no longer shares the runner's bundle id.

(cherry picked from commit 2ccc6b2)
@trop trop Bot added merged/45-x-y PR was merged to the "45-x-y" branch. and removed in-flight/45-x-y labels Sep 3, 2026
MarshallOfSound added a commit that referenced this pull request Sep 3, 2026
…mplate (#53454)

test: run the Squirrel.Mac updater specs concurrently off a signed template (#53437)

The autoUpdater darwin spec is ~29 min of the slowest macOS x64 test shard
(and ~10 min on arm64). Every test copied the whole Electron.app, deep-signed
it, often copied and deep-signed it again for the update payload, and then
ran one Squirrel install cycle at a time.

- Build one stripped, deep-signed template app per run; every fixture app and
  update payload is an APFS clone of it with only Info.plist / Resources/app
  changed, so it only needs a shallow re-sign.
- Run the "with update server" tests as tasks in a small slot pool (4 wide on
  8+ core machines, else 2, ELECTRON_SPEC_UPDATER_CONCURRENCY to override).
  Each slot has its own CFBundleIdentifier so ShipIt's launchd job, XPC name
  and cache dir don't collide, and each task has its own update server.
  The mocha test for each task just awaits it, so reporting and retries are
  unchanged.
- Stacked-update tests fetch extra payloads with getUpdateZip() instead of
  nesting withUpdatableApp(), which built start apps nothing launched.
- SquirrelMacEnableDirectContentsWrite is set in the fixture app's own
  defaults domain now that it no longer shares the runner's bundle id.

(cherry picked from commit 2ccc6b2)
@trop trop Bot added merged/43-x-y PR was merged to the "43-x-y" branch. and removed in-flight/43-x-y labels Sep 3, 2026
MarshallOfSound added a commit that referenced this pull request Sep 8, 2026
…, and serially on x64 (#53731)

Brings the updater specs to main's shape in one step: a stripped,
deep-signed template app cloned per fixture with a shallow re-sign
(#53437), per-run budgets and clean stops of overrunning runs (#53536,
#53607), and the split into lifecycle and policy files that run serially
on x64 (#53663). The harness uses express here as the branch has no
routed-server helper.

(cherry picked from commit 57ab2fc)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

46-x-y merged/43-x-y PR was merged to the "43-x-y" branch. merged/44-x-y PR was merged to the "44-x-y" branch. merged/45-x-y PR was merged to the "45-x-y" branch. semver/none

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants