Skip to content

fix(evals): keep packaged smoke Electron logs after profile cleanup - #5758

Merged
OmarMcAdam merged 1 commit into
devfrom
github-issue-4749
Oct 7, 2026
Merged

OmarMcAdam merged 1 commit into
devfrom
github-issue-4749

Conversation

@OmarMcAdam

Copy link
Copy Markdown
Member

What is this about?

The packaged desktop smoke in CI now keeps each app's main-process log (electron.log) after the journey ends, so it lands in the uploaded artifact.

What problem does it solve?

When a packaged check failed, there was no main-process log to read. The cause of the Linux updater-gate timeout in #4726 had to be inferred from source.

What was the situation before?

packaged-desktop-smoke-* artifacts held timing.json and test runs but zero electron.log files, even on green runs. The eval host deletes the whole profile, log included, before the upload step runs.

How is this implemented?

  • evals/packages/hosts/src/local.ts: new preserveSurfaceLog; when OPENWORK_EVAL_SURFACE_LOGS_DIR is set, disposeSurface copies the log there (named after the unique profile root) before removing the profile. Best effort: a failed copy is logged, cleanup is unchanged.
  • apps/desktop/scripts/packaged-smoke.mjs: sets it to <output>/logs/<check>, outside profiles/, because every launch prunes non-live entries of the surfaces root.
  • ci-tests.yml and pr-proof.yml (packaged-proof) upload logs/**; the existing profiles/**/electron.log glob stays for apps that never started.

What else changed?

  • run-tests skill documents the new variable.

Release note

none

Evidence

No E2E; evals/packages/hosts/src/local-surface-log.test.ts (unit, pr project) — before: disposal leaves no log anywhere; after: the copy survives profile removal and the next launch's prune. Fails without the local.ts change. The first packaged smoke artifact on this PR should contain logs/**/*-electron.log.

Closes #4749

The local host removes a host-owned Electron profile when a journey's world
is disposed, and electron.log lives inside that profile. The packaged smoke
upload glob profiles/**/electron.log therefore never matched, so a failing
packaged check (for example the Linux updater-gate timeout in #4726) left no
main-process log to read.

With OPENWORK_EVAL_SURFACE_LOGS_DIR set, disposeSurface now copies the
surface log there before removing the profile. packaged-smoke.mjs points it
at <output>/logs/<check>, outside the surfaces root that every launch prunes,
and both packaged-smoke uploads (ci-tests and pr-proof) include it.

Closes #4749

Signed-off-by: OmarMcAdam <[email protected]>
@vercel

vercel Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
openwork-app Ready Ready Preview Oct 7, 2026 5:34pm UTC
openwork-den Ready Ready Preview Oct 7, 2026 5:34pm UTC
openwork-diagnostics Ready Ready Preview Oct 7, 2026 5:34pm UTC
openwork-landing Ready Ready Preview, v0 Oct 7, 2026 5:34pm UTC

@OmarMcAdam
OmarMcAdam temporarily deployed to pr-internal-specs October 7, 2026 17:34 — with GitHub Actions Inactive
@github-actions

github-actions Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

OpenWork evidence

Status Commit Preview Updated
🟢 Ready · evidence passed 5fb2f44 Open preview 2026-10-07 17:42:21 UTC

Run details · Open the preview to inspect evidence and sandbox options.

@diff-warden diff-warden Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warden clearance. Complete security and confidentiality review of 5fb2f44f92e22e1e6cf9c802e47cc3556ed6ef0a found no high or medium security findings and no confidentiality findings. Any new push dismisses this approval. Analysis run

@diff-warden

diff-warden Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

Warden: approved

No high or medium security findings and no confidentiality findings.

Reviewed 5fb2f44f92e2 · Warden run · Updates after every Warden run.

@OmarMcAdam
OmarMcAdam merged commit 0b59269 into dev Oct 7, 2026
31 checks passed
OmarMcAdam added a commit that referenced this pull request Oct 7, 2026
…ace logs

dev now keeps each electron.log in OPENWORK_EVAL_SURFACE_LOGS_DIR (#5758), so drop the world's own copy, write renderer.log there, and name each profile after its label so the kept logs do not overwrite each other.

Signed-off-by: OmarMcAdam <[email protected]>
OmarMcAdam added a commit that referenced this pull request Oct 7, 2026
* ci(desktop): run the enterprise upgrade path nightly against this build

The latest public enterprise release signs in to a local Den, then this commit's enterprise package opens that profile and reopens it after a restart (released-enterprise-activated). Refs #4848.

Signed-off-by: OmarMcAdam <[email protected]>

* test(evals): wait for the session route to settle before creating a workspace

Right after sign-in an activated enterprise desktop shows "Preparing workspace"; workspace.create fired then makes no request yet reports success, so released-enterprise-activated timed out waiting for a selection. Refs #4848.

Signed-off-by: OmarMcAdam <[email protected]>

* test(evals): keep released-enterprise launch logs for CI evidence

Signed-off-by: OmarMcAdam <[email protected]>

* test(evals): keep released-enterprise renderer warnings and errors as evidence

Signed-off-by: OmarMcAdam <[email protected]>

* test(evals): keep released-enterprise logs with the local host's surface logs

dev now keeps each electron.log in OPENWORK_EVAL_SURFACE_LOGS_DIR (#5758), so drop the world's own copy, write renderer.log there, and name each profile after its label so the kept logs do not overwrite each other.

Signed-off-by: OmarMcAdam <[email protected]>

---------

Signed-off-by: OmarMcAdam <[email protected]>

This branch was successfully deployed

5 active and 1 inactive deployments
Evidence / PR 5758 — 5fb2f44f Deployed Oct 7, 2026 by github-actions[bot]
Preview – openwork-den — 5fb2f44f Deployed Oct 7, 2026 by vercel[bot]
Preview – openwork-app — 5fb2f44f Deployed Oct 7, 2026 by vercel[bot]
Preview – openwork-landing — 5fb2f44f Deployed Oct 7, 2026 by vercel[bot]
Preview – openwork-diagnostics — 5fb2f44f Deployed Oct 7, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

packaged-smoke: electron.log is removed before the CI artifact upload, leaving red packaged journeys undiagnosable

1 participant