Repository navigation
test(evals): background-desktop-update exercises the error/install auto-check skip with automatic checks on - #4821
Conversation
…on dismiss Base UI keeps a dialog popup mounted (and partially opaque) until its exit animation or transition finishes, so the restart prompt and the command palette stayed visible for 100-200 ms after Keep working / Escape. Hide the popup with display:none as soon as it is closed; Base UI then unmounts it on the next frame.
After a failed install the updater status is error/install, which the automatic check treated like idle: the next focus/online/interval trigger (or an effect re-run once the 15-minute window had passed) re-checked, auto-downloaded the same update and left Settings' Check now disabled behind "Downloading update…". The update is already downloaded, so a background re-check cannot fix an installer failure; keep the failure and let the person retry from Settings.
…ownload loop Return to the app after the check interval before retrying from Settings, and assert Settings still shows the install failure with no new download. Apply the custom branding only for the final confirmed restart: the eval's dev-bridge branding does not survive the Den settings sync that opening Settings performs for a signed-out app (the failure loop visits Settings).
…led-install' into e2e/updater-guard-coverage-after-4761
…c checks on The first failed install and its returnToApp() now run with Check automatically still on, so the counters staying at checks 6 / downloads 3 is observed against the updater's error/install guard rather than the disabled switch. The switch is turned off right after, so the second retry and the final install keep #4761's isolation.
|
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 (6577 ms), confidentiality-review (4841 ms), spec-provenance-review (18023 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 (dff560b428cd34682562d77948f4c33efc9c4161). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
|
Passed · 12/12 tests · 18/18 assertions · 8 images Commit |
Resolves evals/specs/background-desktop-update.e2e.test.ts after #4745 was squash-merged to dev (a7748b2): keep this PR's version, which is a superset of #4745 and #4761 and adds only its own step (automatic checks stay on through the first failed install, asserted, then are switched off inside iteration 0). The merged tree differs from dev in this spec only.
Deploying openwork with
|
| Latest commit: |
9811f86
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://3c6373cd.openwork.pages.dev |
| Branch Preview URL: | https://e2e-updater-guard-coverage-a.openwork.pages.dev |
There was a problem hiding this comment.
Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (9811f868e5eb5a27151c3c18f98eeea724791d1f). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
Resynced with
|
Stacked on #4745 (
e2e/settings-check-now-after-failed-install, headc6174cafdmerged into this branch); depends on #4745 landing. Onlyevals/specs/background-desktop-update.e2e.test.tschanges beyond that merge.Root cause
Session AE's resync of #4745 flagged it in #4745 (comment) (the "⚠️ Flag" paragraph): dev's #4761 switches Check automatically off before the install-failure loop, so
returnToApp()(focus + online + 16 min) can no longer trigger an automatic check regardless of theerror/installskip that #4745 adds toelectron-updater-state.ts. Thechecks: index + 6, downloads: index + 3assertion after the failed install held only because the switch was off — the product guard's coverage had become prose.What changed (spec only)
The switch-off moves from before the loop to inside iteration 0, right after the guard assertion, so every existing step from #4761 and #4745 still runs, in this order:
Restart Studio?three times.automaticChecksEnabled: true(the trigger is armed), callsreturnToApp(), opens Settings, seesCouldn't install the update, and assertschecks: 6, downloads: 3unchanged — now observed against the guard. Then it clicks Check automatically off and assertsautomaticChecksEnabled: false, checks: 6, downloads: 3, and continues withCheck now→ re-download →Restart to update.automaticChecksEnabled: falseis asserted on the second failure).No assertion was loosened, no wait added, no world change. The world's fake bridge (fails install attempts 1 and 2, installs on 3) and all counters are unchanged.
Proof
Green (this branch) —
OPENWORK_EVAL_REF=dff560b428cd34682562d77948f4c33efc9c4161 pnpm evals:e2e background-desktop-update --daytonaplacement: daytona (--daytona)·[openwork/testkit] ==> source verified dff560b428cd34682562d77948f4c33efc9c4161verdict: passed): revoked-version 261 s, background/persistent-restart 140 s, relaunch-recovery 278 s.evals/results/test-runs/2026-09-10T17-33-24-651Z-…,gitSha dff560b):see(text=Restart Studio?)×3,the failed restart dismisses its dialog×2,see(text=Couldn't install the update)×2,click(label=Check automatically)×1 (after the firstCouldn't install),the user re-downloads after the failed install through Settings×2.Red without #4745's product change (control) — same local spec, app built at
origin/dev2ed12f72d7d1b434b539dde5361db2204d76036a(which has noerror/installguard; nothing committed for this run):OPENWORK_EVAL_REF=2ed12f72d… pnpm evals:e2e background-desktop-update --daytona==> source verified 2ed12f72d7d1b434b539dde5361db2204d76036a· 2 passed / 1 failed / 0 skipped.Timed out after 30000ms seeing text=Couldn't install the updatewith the Settings page showingDownloading update…/0%— i.e.returnToApp()fired an automatic check and re-downloaded after the failed install. The revoked and recovery tests passed.Earlier run at the same sha (
dff560b, first attempt): 2 passed / 1 failed — test 1 (the guard step) and the revoked test passed; the untouched recovery test failed on its secondsend()right after switching to the "Keep stopped after update" session (Typed field did not retain the expected value, route matched in 21 ms then the composer dropped the typed text). Re-run at the same sha passed 3/3 (above); the control run at dev also passed that test. Listed below, not touched here.pnpm --filter @openwork/app typecheckexit 0;pnpm --dir evals exec tsc --noEmit -p tsconfig.jsonreports no errors in this spec (the pre-existing evals baseline errors are unchanged).Noticed, not touched
background-desktop-updaterecovery test: one-off composer session-switch race —click("Keep stopped after update")→probe.hash()matched immediately →type(composer, …, { verify: true })failed to retain the text within 5 s. Suggests the composer draft is reset when the freshly selected session finishes loading; the spec has no readiness gate between route match and typing.test-run.jsonrecordsgitShaof the local checkout, not the sandbox app ref; for control runs the sandbox ref is only in thesource verifiedlog line.