Skip to content

chore(electron): trace packaged boot phases to stderr for CI diagnosis - #376

Merged
crs48 merged 1 commit into
mainfrom
claude/electron-linux-boot-trace
Jul 4, 2026
Merged

crs48 merged 1 commit into
mainfrom
claude/electron-linux-boot-trace

Conversation

@crs48

@crs48 crs48 commented Jul 4, 2026

Copy link
Copy Markdown
Owner

Diagnostic instrumentation for the packaged Linux x64 boot stall (follow-up to #375). The dispatched electron-release run confirmed the Windows fix (build-windows now green), leaving only build-linux (x64): the packaged app never opens a window and captures zero output, even with XNET_DEBUG/E2E_DEBUG.

I extracted the built .deb and confirmed packaging is sound — better-sqlite3, usearch (linux-x64), sharp-linux-x64, and onnxruntime-node are all correctly unpacked to app.asar.unpacked. So this is a runtime hang, not a layout problem, and macOS uses the same structure. The silence suggests console is unreliable in the packaged context.

This PR writes boot-phase markers straight to fd 2 (bypassing console, gated on XNET_DEBUG) around each awaited boot step (storage.open → spawnDataProcess → startLocalAPI → createWindow), and pipes + forwards the data utility process's stdio, so the next release run shows exactly which phase stalls and what the data process fails on. No behavior change when XNET_DEBUG is unset (so electron-e2e is unaffected).

🤖 Generated with Claude Code

The packaged Linux x64 app hangs before opening a window with zero captured
output, and console-based instrumentation didn't surface (console may be
reassigned downstream). Write boot-phase markers straight to fd 2 (gated on
XNET_DEBUG) around each awaited boot step, and pipe+forward the data utility
process's stdio, so one release run pinpoints where boot stalls / what the data
process fails on. No behavior change when XNET_DEBUG is unset.

Co-Authored-By: Claude Fable 5 <[email protected]>
Signed-off-by: xNet Test <[email protected]>
@crs48 crs48 added the skip-changelog Exclude this PR from the changelog label Jul 4, 2026
@crs48
crs48 temporarily deployed to pr-376 July 4, 2026 18:27 — with GitHub Actions Inactive
@github-actions

github-actions Bot commented Jul 4, 2026 •

Copy link
Copy Markdown
Contributor

Preview removed for PR #376.

github-actions Bot added a commit that referenced this pull request Jul 4, 2026
@crs48
crs48 merged commit 01ef52b into main Jul 4, 2026
15 of 17 checks passed
@crs48
crs48 deleted the claude/electron-linux-boot-trace branch July 4, 2026 18:45
github-actions Bot added a commit that referenced this pull request Jul 4, 2026
crs48 added a commit that referenced this pull request Jul 4, 2026
Diagnostic follow-up to #376. The stderr-based markers never printed for
the packaged Linux x64 hang (not even `whenReady fired`), so the main
process appears stuck at/before app 'ready'. This adds an unconditional
file trace (`XNET_BOOT_TRACE`) from a `main module loaded` marker
through each boot phase, catted by the CI smoke step on failure —
distinguishing an import-time hang (no file at all) from a
whenReady-never-fires hang (only `main module loaded`). Diagnostic only;
no behavior change without `XNET_BOOT_TRACE`.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

This branch was previously deployed

1 inactive deployment
pr-376 — 6547a8ff Deployed Jul 4, 2026 by crs48 via deploy-preview #652
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-changelog Exclude this PR from the changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant