Repository navigation
fix(evals): keep packaged smoke Electron logs after profile cleanup - #5758
Merged
Merged
Conversation
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]>
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
OmarMcAdam
temporarily deployed
to
pr-internal-specs
October 7, 2026 17:34 — with
GitHub Actions
Inactive
Contributor
OpenWork evidence
Run details · Open the preview to inspect evidence and sandbox options. |
Contributor
There was a problem hiding this comment.
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
Contributor
Warden: approvedNo high or medium security findings and no confidentiality findings. Reviewed |
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 heldtiming.jsonand test runs but zeroelectron.logfiles, 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: newpreserveSurfaceLog; whenOPENWORK_EVAL_SURFACE_LOGS_DIRis set,disposeSurfacecopies 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>, outsideprofiles/, because every launch prunes non-live entries of the surfaces root.ci-tests.ymlandpr-proof.yml(packaged-proof) uploadlogs/**; the existingprofiles/**/electron.logglob stays for apps that never started.What else changed?
run-testsskill documents the new variable.Release note
none
Evidence
No E2E;
evals/packages/hosts/src/local-surface-log.test.ts(unit,prproject) — before: disposal leaves no log anywhere; after: the copy survives profile removal and the next launch's prune. Fails without thelocal.tschange. The first packaged smoke artifact on this PR should containlogs/**/*-electron.log.Closes #4749