Repository navigation
test(desktop): fail packaged first launch on unhandled rejections and cover activated enterprise boot - #4727
Conversation
… cover activated enterprise boot - packaged-first-launch: replace the blanket "Uncaught (in promise)" exemption with an exactly-matched allowlist (KNOWN_LAUNCH_REJECTIONS, empty) and print any other unhandled rejection in full; render crashes and the recovery heading still fail fast, allowlisted counts land in evidence. - Guard the two boot-time fire-and-forget window-chrome IPCs (__setNativeTheme, __setApplicationMenuVisible) that the enterprise shell refuses before activation, so the fresh enterprise launch no longer rejects at all. - packaged-activated-launch: boot the enterprise artifact with an activated bootstrap pointing at a closed local port and assert it reaches the sign-in surface, never the activation gate, without a crash or recovery screen. - packaged-smoke: add the desktop-boot-enterprise-activated phase on the already-packaged enterprise binary.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
3 Skipped Deployments
|
|
Passed · 6/6 tests · 7/7 assertions · 5 images Commit |
Warden review summary — ClearNative findings: 1. Blocking policy matches before consolidation: 0. Full finding text remains in Warden's native checks and review threads. This comment retains only native IDs, severity, skill attribution, and safe locations. Analysis run Reported trigger coverage (not proof of complete repository or context coverage): diff-security-review (86076 ms), confidentiality-review (76731 ms), spec-provenance-review (133499 ms), desktop-den-sync-review (80190 ms). Blockers
Advisories
Needs recheck
Observed review-thread metrics
Thread states are read-only collection snapshots. These metrics are neither lifetime totals nor exact resolution times, and this summary is not clearance authority. |
There was a problem hiding this comment.
Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (d4be5567fafc3b77a69936e6f9263a7edd1a5f72). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
…ckaged launch Xvfb CI runners (and some VDI desktops) offer no WebGL, so the decorative Dithering background on the activation gate and sign-in surface rejects while the page still mounts. Track it as the one exactly-matched known rejection.
There was a problem hiding this comment.
Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (7377ebd13e670be672caf424ecad8e90049ecbf3). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
# Conflicts: # evals/scripts/journey-catalog.mjs
…the activation pair
There was a problem hiding this comment.
Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (0545df6e0f2c0c47caa12d4c3edc6fe452994b02). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
Summary
Tightens the packaged first-launch journey and adds the already-activated enterprise boot path (what existing customers hit after an update).
packaged-first-launchused to exempt everyUncaught (in promise)exception. It now allows only exactly-matched messages fromKNOWN_LAUNCH_REJECTIONS(documented as tracked debt) and prints any other unhandled rejection in full. Render crashes and the recovery heading (/OpenWork hit an unexpected error/) still fail fast; the allowlisted count lands in evidence.Error invoking remote method 'openwork:desktop': ... OpenWork must be activated ..., 2× on a fresh enterprise launch) came from two boot-time fire-and-forget window-chrome IPCs the enterprise shell refuses before activation:syncNativeTheme(apps/app/src/app/theme.ts,__setNativeTheme, viabootstrapTheme()inindex.react.tsx) and the module-levelsyncApplicationMenuVisible(apps/app/src/react-app/shell/ui-state-store.ts,__setApplicationMenuVisible). Both arevoid-ed cosmetic calls; each now gets a one-line.catch(() => undefined). The pre-activation command allowlist indesktop-distribution.mjsis untouched.packaged-activated-launch(own spec + shared world): boots the enterprise binary with a bootstrap seeded as activated (baseUrl/apiBaseUrl/enterpriseActivation.denBaseUrlon a freshly allocated, closed local port). Asserts#rootis non-empty, no render crash, no recovery heading, the activation gate heading is not shown, and the sign-in surface heading (Welcome to OpenWork) is shown — deterministic offline, no Den needed.packaged-smoke.mjs: one additive phase,desktop-boot-enterprise-activated, reusing the already-packaged enterprise binary. Catalog entry withplacement: 'local'.Verification (local lane, macOS arm64 packaged builds from this tree)
Daytona was not used: this journey needs the packaged binaries built here (
placement: 'local'in the catalog).With
OPENWORK_EVAL_ELECTRON_RESOURCES_PREPARED=1 OPENWORK_EVAL_ENGINE=v1 OPENWORK_EVAL_SURFACES_DIR=/tmp/ow-gate/profiles:packaged-first-launchpnpm evals:e2e packaged-first-launch --localpackaged-first-launchpackaged-activated-launchpnpm evals:e2e packaged-activated-launch --localpackaged-first-launchan unhandled promise rejection outside KNOWN_LAUNCH_REJECTIONS (0 allowed) during enterprise first launchlisting the 2openwork:desktopactivation rejections in fullpackaged-first-launcha provider context was missing during first launch(Local context is missing)Static checks:
node --test evals/scripts/journey-ci.test.mjs13/13 pass;pnpm --filter @openwork/app typecheckclean; evalstsc -p .reports 0 errors in the touched files (pre-existing errors elsewhere on dev unchanged);lint:layers39 violations before and after (none in these files);spec-channel-ratchet/spec-boundary-ratchetadd no violations from these files (pre-existing dev debt unchanged).Warden (
pnpm warden:check, bare, on HEAD d4be556 vs origin/dev c744e2d, exit 0): diff-security-review, confidentiality-review, spec-provenance-review, desktop-den-sync-review all completed — no findings.