Repository navigation
fix(electron): unblock Windows release build + surface Linux boot stall - #375
Merged
Merged
Conversation
Two fixes for the desktop auto-release, which built a real (non-no-op) run for the first time since March and exposed latent breakage on two platforms: - Windows: pin build-windows to the windows-2022 image. windows-latest now ships Visual Studio 2026, which the node-gyp 9.4.1 bundled by @electron/rebuild can't detect, breaking the from-source rebuild of native deps without an Electron prebuild (usearch, sharp). better-sqlite3 is unaffected (Electron prebuild). This is why the March build passed and now fails. - Linux x64 packaged-smoke: the app never opens a window and prints nothing. Boot awaits spawnDataProcess() before createWindow(), and the data utility process isn't signalling ready on the packaged Linux x64 app. Two changes to surface the cause: honor XNET_DEBUG=1 to emit the data-process boot trace without needing a renderer, and add a .catch on the whenReady chain so a pre-window boot failure is logged to stderr instead of dying silently. The smoke step now runs with XNET_DEBUG/E2E_DEBUG so CI captures the real error. Co-Authored-By: Claude Fable 5 <[email protected]> Signed-off-by: xNet Test <[email protected]>
Contributor
|
✓ Changelog fragment found — thanks! |
Contributor
|
Preview removed for PR #375. |
Replace the whenReady .catch (which forced a prettier chain reformat) with a
top-level process.on('unhandledRejection') handler — same effect (a boot failure
before window creation is logged to stderr), no method-chain reindent.
Co-Authored-By: Claude Fable 5 <[email protected]>
Signed-off-by: xNet Test <[email protected]>
crs48
added a commit
that referenced
this pull request
Jul 4, 2026
#376) 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](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.
Follow-up to #373. The desktop auto-release ran a real (non-no-op) build for the first time since March and surfaced latent breakage on two platforms (macOS + Linux arm64 build clean; the
releasejob needs all platforms, so nothing publishes until these are fixed).Windows — fixed
@electron/rebuildruns withbuildFromSource=false:better-sqlite3uses its downloaded Electron prebuild and finishes instantly, butusearchandsharphave no Electron prebuild, so they compile from source. GitHub'swindows-latestnow ships Visual Studio 2026 (runner imageWindows2025-VS2026), which the node-gyp 9.4.1 bundled by@electron/rebuildis too old to detect → "Could not find any Visual Studio installation to use." That's exactly why the March build passed (windows-latest was VS 2022 then) and now fails.Fix: pin
build-windowsto thewindows-2022image, whose VS 2022 node-gyp 9.4.1 detects.Linux x64 — instrumented for diagnosis
The packaged app never opens a window (60s
firstWindowtimeout) and prints zero output — deterministic across two runs. BootawaitsspawnDataProcess()(autilityProcess.forkloadingbetter-sqlite3) beforecreateWindow(), so if that utility process doesn't signal ready on packaged Linux x64, the window is never created. macOS packaged and the unpackagedelectron-e2ejob both pass, so it's specific to the packaged Linux x64 combination.The app was silent because its data-process logging is gated behind an IPC toggle that needs a renderer (which never exists here), and the
whenReadychain had no.catch. This PR makes the failure observable:data-process-manager.ts: honorXNET_DEBUG=1at startup to emit the boot trace without a renderer.index.ts: add a.catchon thewhenReadychain so a pre-window boot failure logs to stderr instead of dying silently (a genuine robustness fix — users currently get a dead app with no clue).XNET_DEBUG=1 E2E_DEBUG=1so CI captures the real cause.After this lands I'll dispatch
electron-releaseto confirm Windows goes green and read the Linux x64 boot trace, then land the precise Linux fix.🤖 Generated with Claude Code