Skip to content

test(desktop): prove crash reports and in-place updates on macOS - #5762

Merged
OmarMcAdam merged 2 commits into
devfrom
github-issue-4885
Oct 7, 2026
Merged

OmarMcAdam merged 2 commits into
devfrom
github-issue-4885

Conversation

@OmarMcAdam

@OmarMcAdam OmarMcAdam commented Oct 7, 2026 •

Copy link
Copy Markdown
Member

What is this about?

A scheduled macOS lane that runs two packaged enterprise journeys on real, signed .app bundles: quitting without a crash report, and an install updating itself in place.

What problem does it solve?

The nightly run never checked that a clean quit leaves no macOS crash report. It also never checked that an enterprise install can download an update, install it, and still boot the same profile. Both are things customers hit, and both shipped broken before (#4787).

What was the situation before?

Every nightly desktop-quit-path run recorded Crash-report check skipped — needs: macOS DiagnosticReports. The updater journey only proved that a check starts (checks > 0).

How is this implemented?

  • apps/desktop/scripts/packaged-smoke-macos.mjs builds enterprise 0.999.0 and 0.999.1 and signs both with one throwaway identity, kept in a private keychain. Squirrel.Mac only installs a bundle whose signature satisfies the running app's designated requirement. The script serves 0.999.1 as a feed and runs both journeys.
  • New packaged-update-install journey and world: they add a loopback feed and a Den stand-in that answers /v1/app-version. The run waits for download and staging, quits, waits for ShipIt to swap the bundle, then relaunches.
  • updater.mjs accepts OPENWORK_EVAL_UPDATE_FEED_URL only for plain-HTTP loopback addresses. It also logs [updater] update X is staged….
  • ci-tests.yml adds a packaged-desktop-macos job (scheduled and manual runs only). journey-catalog.mjs declares needs: { platform: 'darwin', … }.

What else changed?

  • released-enterprise-activated.ts now exports its bundle-copy, ShipIt, and build-info helpers so the new world can reuse them.
  • UpdaterActivity gains a staged count.
  • pr-proof sends macOS-only packaged specs (packagedProofOs) to a macOS runner running packaged-smoke-macos.mjs. Linux packaged specs still run the Linux smoke.

Release note

none

Evidence

  • evals/specs/packaged-update-install.e2e.test.ts. Before: only checks > 0. After: checks=1 downloads=1 staged=1, the bundle goes from 0.999.0 to 0.999.1, and the relaunch reports 0.999.1 on the same activated profile. As a control, an ad-hoc-signed update fails because Squirrel rejects its signature.
  • evals/specs/desktop-quit-path.e2e.test.ts. Before: the crash-report check was skipped. After: all four cases record No crash report appears in …/DiagnosticReports.

The scheduled packaged gate only boots an unpacked Linux directory, so the
quit-path crash-report check was always recorded as skipped and the updater
was only shown to start a check.

Add a scheduled macOS lane (packaged-smoke-macos.mjs) that builds two
enterprise .app bundles signed with one throwaway identity, runs
desktop-quit-path with DiagnosticReports observable, and runs the new
packaged-update-install journey: an activated install downloads the newer
build from a loopback feed, Squirrel.Mac stages it, quitting installs it,
and the relaunch reports the new version on the same activated profile.

The desktop honours OPENWORK_EVAL_UPDATE_FEED_URL only for plain-HTTP
loopback URLs, and logs when an update is staged.

Refs #4885

Signed-off-by: OmarMcAdam <[email protected]>
@vercel

vercel Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

4 Skipped Deployments
Project Deployment Actions Updated
openwork-app Ignored Ignored Preview Oct 7, 2026 5:56pm UTC
openwork-den Ignored Ignored Preview Oct 7, 2026 5:56pm UTC
openwork-diagnostics Ignored Ignored Preview Oct 7, 2026 5:56pm UTC
openwork-landing Ignored Ignored Preview Oct 7, 2026 5:56pm UTC

@OmarMcAdam
OmarMcAdam temporarily deployed to pr-internal-specs October 7, 2026 17:49 — with GitHub Actions Inactive
@github-actions

github-actions Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

OpenWork evidence

Status Commit Preview Updated
🟢 Ready · evidence passed 31eba9c Open preview 2026-10-07 18:01:46 UTC

Run details · Open the preview to inspect evidence and sandbox options.

diff-warden[bot]
diff-warden Bot previously approved these changes Oct 7, 2026

@diff-warden diff-warden Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warden clearance. Complete security and confidentiality review of a8312902214c0e680d2699d2d3fb82e76656f105 found no high or medium security findings and no confidentiality findings. Any new push dismisses this approval. Analysis run

@diff-warden

diff-warden Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Warden: approved

No high or medium security findings and no confidentiality findings.

Reviewed 31eba9c72198 · Warden run · Updates after every Warden run.

packaged-update-install needs a signed .app bundle, which only
packaged-smoke-macos.mjs builds. Route it to a macOS runner instead of the
Linux packaged smoke, which has no such journey.

Refs #4885

Signed-off-by: OmarMcAdam <[email protected]>

@diff-warden diff-warden Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warden clearance. Complete security and confidentiality review of 31eba9c7219836975dba07c57814335987ea50e7 found no high or medium security findings and no confidentiality findings. Any new push dismisses this approval. Analysis run

This branch was successfully deployed

5 active (4 outdated) and 1 inactive deployments
Evidence / PR 5762 — 31eba9c7 Deployed Oct 7, 2026 by github-actions[bot]
Preview – openwork-landing — a8312902 Deployed Oct 7, 2026 by vercel[bot]
Preview – openwork-app — a8312902 Deployed Oct 7, 2026 by vercel[bot]
Preview – openwork-den — a8312902 Deployed Oct 7, 2026 by vercel[bot]
Preview – openwork-diagnostics — a8312902 Deployed Oct 7, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant