Repository navigation
test(evals): fail the first-launch gate fast when the error boundary catches the crash - #4699
Conversation
…catches the crash #4697 mounted a root error boundary, so a first-launch render crash now renders "OpenWork hit an unexpected error" instead of unmounting the tree. React reports caught errors through console.error, not Runtime.exceptionThrown, so packaged-first-launch no longer stopped on the crash: it waited the full 60 s for the gate heading and failed with a timeout whose message buried the cause in the last-value dump. Treat the recovery heading as a terminal state, assert it is absent by name, and check for it instead of the stale "Something went wrong" text. Local lane, macOS arm64, electron-builder.enterprise.yml --mac --dir: - dev: passed (11.2 s) - dev with providers.tsx reverted to pre-#4696: failed in 8.0 s, "the root error boundary caught a first-launch render crash ... Local context is missing" (before this change: failed after 65.8 s with "Timed out waiting for enterprise first-launch gate")
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Warden review summary — ClearNative findings: 0. 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 (3662 ms), confidentiality-review (2074 ms), spec-provenance-review (13778 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 (d8ac4662283a6bd778143b56deeaa3e98b668a13). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
|
Passed · 3/3 tests · 4/4 assertions · 2 images Commit |
Problem
#4696 added the
packaged-first-launchjourney that gatespackaged-smokeon the enterprise and cloud first-launch screens. It stops early onRuntime.exceptionThrownso a render crash fails by name.#4697 then mounted a root error boundary. A first-launch render crash now renders "OpenWork hit an unexpected error" instead of unmounting the tree, and React reports caught errors via
console.error, notRuntime.exceptionThrown. The journey still goes red (the gate heading never appears) but only after the full 60 s wait, with a timeout message that buries the cause inside the last-value dump. It also still checked for a stale "Something went wrong" string that no screen uses.Change
evals/specs/packaged-first-launch.e2e.test.tsonly:eventuallypredicate#rootdoes not match the recovery heading/Something went wrong/with the real heading fromapp-error-boundary.tsxNo product code, no world or CI script changes.
Proof (local lane, macOS arm64,
electron-builder.enterprise.yml --mac --dir,pnpm evals:e2e packaged-first-launch --local)dev(fix + error boundary)devwithproviders.tsxreverted to pre-#4696 (incident state + error boundary)Timed out waiting for enterprise first-launch gate mounted in #rootAssertionError: the root error boundary caught a first-launch render crash … Local context is missingAlso verified in the authoritative Linux lane:
workflow_dispatchonci/packaged-first-launch-gate-control(gate without fix, before #4697) faileddesktop-boot-enterprisein 3.5 s withError: Local context is missing(run 34402512668), anddevat5858b51dcpasses bothdesktop-boot-enterpriseanddesktop-boot-cloud(run 34402429872).Follow-up to #4696 (Airwallex blank-screen incident, 0.18.43 / 0.18.44).