Repository navigation
chore(electron): trace packaged boot phases to stderr for CI diagnosis - #376
Merged
Merged
Conversation
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]>
Contributor
|
Preview removed for PR #376. |
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
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.
Diagnostic instrumentation for the packaged Linux x64 boot stall (follow-up to #375). The dispatched
electron-releaserun confirmed the Windows fix (build-windows now green), leaving onlybuild-linux (x64): the packaged app never opens a window and captures zero output, even withXNET_DEBUG/E2E_DEBUG.I extracted the built
.deband confirmed packaging is sound —better-sqlite3,usearch(linux-x64),sharp-linux-x64, andonnxruntime-nodeare all correctly unpacked toapp.asar.unpacked. So this is a runtime hang, not a layout problem, and macOS uses the same structure. The silence suggestsconsoleis unreliable in the packaged context.This PR writes boot-phase markers straight to fd 2 (bypassing
console, gated onXNET_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 whenXNET_DEBUGis unset (soelectron-e2eis unaffected).🤖 Generated with Claude Code