Skip to content

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

Merged
MarshallOfSound merged 1 commit into
44-x-yfrom
squirrel-spec-concurrent-44-x-y
Sep 3, 2026
Merged

MarshallOfSound merged 1 commit into
44-x-yfrom
squirrel-spec-concurrent-44-x-y

Conversation

@MarshallOfSound

Copy link
Copy Markdown
Member

Backport of #53437

See that PR for details. The release branches don't have spec/lib/http-server-helpers, so the spec keeps using express for the per-task update servers as it did before.

Notes: none

…mplate (#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)
@MarshallOfSound
MarshallOfSound merged commit 5abd26a into 44-x-y Sep 3, 2026
90 checks passed
@MarshallOfSound
MarshallOfSound deleted the squirrel-spec-concurrent-44-x-y branch September 3, 2026 17:05
@release-clerk

release-clerk Bot commented Sep 3, 2026

Copy link
Copy Markdown

No Release Notes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

No open projects
Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants