Repository navigation
test(desktop): prove crash reports and in-place updates on macOS - #5762
Conversation
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]>
|
The latest updates on your projects. Learn more about Vercel for GitHub. 4 Skipped Deployments
|
OpenWork evidence
Run details · Open the preview to inspect evidence and sandbox options. |
There was a problem hiding this comment.
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
Warden: approvedNo high or medium security findings and no confidentiality findings. Reviewed |
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]>
There was a problem hiding this comment.
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
What is this about?
A scheduled macOS lane that runs two packaged enterprise journeys on real, signed
.appbundles: 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-pathrun recordedCrash-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.mjsbuilds 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.packaged-update-installjourney 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.mjsacceptsOPENWORK_EVAL_UPDATE_FEED_URLonly for plain-HTTP loopback addresses. It also logs[updater] update X is staged….ci-tests.ymladds apackaged-desktop-macosjob (scheduled and manual runs only).journey-catalog.mjsdeclaresneeds: { platform: 'darwin', … }.What else changed?
released-enterprise-activated.tsnow exports its bundle-copy, ShipIt, and build-info helpers so the new world can reuse them.UpdaterActivitygains astagedcount.pr-proofsends macOS-only packaged specs (packagedProofOs) to a macOS runner runningpackaged-smoke-macos.mjs. Linux packaged specs still run the Linux smoke.Release note
none
Evidence
evals/specs/packaged-update-install.e2e.test.ts. Before: onlychecks > 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 recordNo crash report appears in …/DiagnosticReports.