Skip to content

test: stop overrunning Squirrel.Mac updater runs and free their slots - #53544

Merged
MarshallOfSound merged 1 commit into
45-x-yfrom
sam/bp-53536-45-x-y
Sep 4, 2026
Merged

MarshallOfSound merged 1 commit into
45-x-yfrom
sam/bp-53536-45-x-y

Conversation

@MarshallOfSound

Copy link
Copy Markdown
Member

Backport of #53536.

See that PR for details.

Notes: none

…#53536)

A pooled updater run that overran kept its slot and its processes, because
a mocha timeout does not cancel the run. The retry then queued behind it,
so on the Intel runners a single slow test could fail all of its attempts
and take the shard past its step timeout.

- Each run gets an AbortSignal and a budget that starts when it gets a slot,
  so time spent queued no longer counts against the test.
- An aborted run kills the processes it started, removes its ShipIt job and
  clears its slot's downloaded updates. If it does not unwind, its slot is
  replaced with a fresh one.
- Default to 2 concurrent runs on x64. The Intel runners do this work several
  times slower, and at 4 the slowest run came within 15% of its budget.

ELECTRON_SPEC_UPDATER_RUN_BUDGET_MS overrides the budget, to exercise the
abort path.

(cherry picked from commit 9272a1a)
@MarshallOfSound MarshallOfSound self-assigned this Sep 4, 2026
@MarshallOfSound
MarshallOfSound merged commit b3fd70b into 45-x-y Sep 4, 2026
94 checks passed
@MarshallOfSound
MarshallOfSound deleted the sam/bp-53536-45-x-y branch September 4, 2026 20:52
@release-clerk

release-clerk Bot commented Sep 4, 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

Status: No status

Development

Successfully merging this pull request may close these issues.

3 participants