Skip to content

Scheduled coverage still missing after #4848: native macOS crash-report assertions and updater download/install #4885

Closed

Description

@yomgui

Context

#4849 makes the scheduled Full regression report journeys this Linux lane cannot run as skipped: lane cannot satisfy prerequisites, and #4848 owns building the enterprise binary in that lane so the six packaged journeys execute. Even once #4848 lands, two coverage dimensions of those journeys remain unexecuted anywhere automatically, because unpacked Linux --dir coverage is not release/installer/native-macOS coverage. The second-opinion review of #4849 named both; this issue owns them.

1. Native macOS crash-report assertions (desktop-quit-path)

evals/specs/desktop-quit-path.e2e.test.ts:76–90 asserts "no crash report written" only when CRASH_REPORTS_OBSERVABLE (process.platform === "darwin", evals/worlds/desktop-quit-path.ts:31). On Linux the branch records Crash-report check skipped — needs: macOS DiagnosticReports, and only the exit code/signal is the witness. The negative half of the quit-path claim (#4787) — a clean quit leaves nothing in ~/Library/Logs/DiagnosticReports — is therefore never asserted by CI.

2. Updater download/install, not just the attempt (packaged-preactivation-updater)

evals/specs/packaged-preactivation-updater.e2e.test.ts:72–90 asserts that an activated enterprise install starts an update check (activity.checks > 0). Its own comment states why nothing more is asserted: the Den is unreachable, the network may refuse the manifest, and an unpacked Linux directory cannot self-update. So "the update was downloaded and applied, and the same profile boots afterwards" is not covered by this spec. released-enterprise-activated covers an in-place update path but only with a released baseline binary, which no lane provides (#4848).

Proposal

  • A macOS execution lane (self-hosted or hosted macOS runner, or a signed Daytona macOS host if/when available) that packages the enterprise flavor as a real installable artifact (electron-builder --mac), runs desktop-quit-path with CRASH_REPORTS_OBSERVABLE === true, and runs an updater journey against a controlled update feed (the world already exposes updaterActivity(); add a local feed serving a newer signed build) asserting download → install → relaunch → same profile boots.
  • Keep the Linux assertions as they are; do not weaken them to make the macOS lane easier.

Acceptance criteria (measurable)

  • A scheduled run on macOS lists desktop-quit-path as passed with the evidence line No crash report appears in … DiagnosticReports recorded (not the Crash-report check skipped line), for both fresh and activated installs and both stimuli (SIGTERM, Browser.close).
  • An updater journey on a packaged, installable artifact records passed with evidence that downloads > 0, the update was applied (version string changes across relaunch), and the pre-update profile still boots — not only checks > 0.
  • Both journeys declare their prerequisites in TestNeeds vocabulary (needs: { platform: "darwin" }, any feed/env var) and journey-catalog.mjs mirrors them so the parity guard in journey-ci.test.mjs passes; the Linux lane keeps reporting them as skipped with the reason, never as passed.
  • Run URLs for both are linked here.

Refs

Activity

  1. benjaminshafii commented on Oct 7, 2026

    @benjaminshafii
    Member

    Owner: @OmarMcAdam — most commits on the touched files since 2026-04-01 (Omar 6, Jalil 3; all from ci-tests.yml — the quit-path/updater spec and world files and packaged-smoke.mjs have 0 for both)

    What was reported

    • Even after Nightly Full regression: build the packaged enterprise desktop once and run the packaged journeys against it #4848, two coverage dimensions of the packaged journeys are not executed anywhere automatically, because unpacked Linux --dir coverage is not release/installer/native-macOS coverage:
      1. desktop-quit-path asserts "no crash report written" only when CRASH_REPORTS_OBSERVABLE (process.platform === "darwin"). On Linux it records Crash-report check skipped — needs: macOS DiagnosticReports, so the negative half of the quit-path claim (fix(desktop): make quit bounded and re-entrancy safe so SIGTERM and Cmd+Q always exit #4787) is never asserted by CI.
      2. packaged-preactivation-updater asserts only that an activated install starts an update check (activity.checks > 0); download → apply → same profile boots is not covered. released-enterprise-activated covers in-place update only with a released baseline binary, which no lane provides.
    • The issue proposes a macOS lane that packages an installable enterprise artifact, runs desktop-quit-path with crash reports observable, and runs an updater journey against a controlled local feed. Acceptance criteria include downloads > 0, a version change across relaunch, and TestNeeds declarations mirrored in journey-catalog.mjs.

    Where this lives in the code (dev @ e7d03dd)

    • evals/worlds/desktop-quit-path.ts:28,31,39 — DIAGNOSTIC_REPORTS_DIR under ~/Library/Logs/DiagnosticReports; CRASH_REPORTS_OBSERVABLE = process.platform === "darwin"; crash-report collection returns [] otherwise.
    • evals/specs/desktop-quit-path.e2e.test.ts:76-90 — the darwin branch asserts crashReports is empty; the else branch records the Crash-report check skipped … evidence line. Matches the report.
    • evals/specs/packaged-preactivation-updater.e2e.test.ts:72-90 — activated case waits for checks > 0 and asserts only that; comment at :75-78 states only the attempt is asserted. evals/worlds/packaged-preactivation-updater.ts:37,100 parses updaterActivity (checks/downloads) from the main-process log.
    • apps/desktop/scripts/packaged-smoke.mjs:118-128 — runs desktop-quit-path against the Linux linux-unpacked enterprise binary; comment says Linux has no crash reports and the exit signal is the witness.
    • .github/workflows/ci-tests.yml:256-300 — the scheduled openwork-tests-extended matrix includes blacksmith-12vcpu-macos-15, but the macOS leg runs engine smoke, server-plugin build and Electron typecheck only; packaged smoke (:236-241) runs on Ubuntu only.
    • Observed: artifact of scheduled run 37432222685 (2026-10-06) contains four quit-path test-runs, each with the Crash-report check skipped line, and an updater test-run evidencing only "starts an update check without any user action".

    How it fits

  2. OmarMcAdam commented on Oct 7, 2026

    @OmarMcAdam
    Member

    solved #5762

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions