Repository navigation
test: run the Squirrel.Mac updater specs concurrently off a signed template - #53437
Merged
Merged
Conversation
…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
marked this pull request as ready for review
September 3, 2026 06:10
1 task done
VerteDinde
approved these changes
Sep 3, 2026
|
No Release Notes |
Contributor
|
I was unable to backport this PR to "44-x-y" cleanly; |
Contributor
|
I was unable to backport this PR to "43-x-y" cleanly; |
Contributor
|
I was unable to backport this PR to "45-x-y" cleanly; |
This was referenced Sep 3, 2026
Contributor
|
@MarshallOfSound has manually backported this PR to "45-x-y", please check out #53452 |
Contributor
|
@MarshallOfSound has manually backported this PR to "44-x-y", please check out #53453 |
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)
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)
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)
This was referenced Sep 4, 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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of Change
api-autoupdater-darwin-spec.tsis 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.Info.plist/Resources/appchanged, so it only needs a shallow re-sign.ELECTRON_SPEC_UPDATER_CONCURRENCYoverrides). Each slot gets its ownCFBundleIdentifierso 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.getUpdateZip()instead of nestingwithUpdatableApp(), which built start apps nothing launched.SquirrelMacEnableDirectContentsWriteis 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:mainmacos-15-large)macos-15)test (darwin, 1)shardtest (darwin, 2)shardbuild.ymlrunAll mac shards passed first try, so the shallow re-sign holds up under Squirrel's strict validation on both arches.
Checklist
Release Notes
Notes: none