Skip to content

e2e: attach mawsd and pty-host logs to a failed scene's report #784

Closed

Description

@SSFSKIM

Problem

When an Electron e2e scene fails, the fixture attaches the engine host's log and the main process's stdout and stderr to the Playwright report. It does not attach the logs of the machine daemon (mawsd) or the pty host. Their processes write to the scene's temporary profile, which is deleted with the scene; on the Mac mini's guest it goes with the guest clone too. So whatever those processes logged is lost whenever a scene fails.

Example: e2e/scm.spec.ts:567 "without gh the row offers the install" failed in the guest only, in batch 5's union run. The likely cause is the daemon's login-shell PATH capture falling back to its own process.env (src/shared/host/shell-env.ts:116-125, which logs "[host] shell environment capture failed"). That line would be in mawsd's log, which nothing keeps, so the cause can't be confirmed.

Work

In the e2e fixture that attaches engine-host-.log, also attach the machine daemon's and the pty host's logs when a scene fails, under the same naming. The manual gate keeps the reports directory, so nothing changes on the CI side.

Found during: UX wave batch 5's Mac run (2026-11-19); CI-opt pointed to the fixture as the place to keep them.

Activity

  1. added
    enhancement
    status:ready-for-implementer
    priority:P3
    status:in-progress
    and removed
    status:ready-for-implementer
    on Nov 19, 2026
  2. SSFSKIM commented on Nov 20, 2026

    @SSFSKIM
    OwnerAuthor

    [board] in-progress: batch 7, group D

  3. added
    status:in-review
    and removed
    status:in-progress
    on Nov 20, 2026
  4. SSFSKIM commented on Nov 20, 2026

    @SSFSKIM
    OwnerAuthor

    [board] in-review: batch 7, PR #804

  5. removed
    status:in-review
    on Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementpriority:P3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions