mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-22 15:12:23 +03:00
fix: add cold-restart native-driver regression check to electron smoke (#7592)
The stale-ABI better-sqlite3 root cause itself is already fixed on this tip (#6605, #7353); the issue stayed open only because scripts/dev/smoke-electron-packaged.mjs never launched the packaged app twice against a persisted DATA_DIR nor asserted which SQLite driver loaded. Add an ELECTRON_SMOKE_COLD_RESTART mode that relaunches against the same DATA_DIR and asserts the startup log shows a native driver (bun:sqlite/better-sqlite3/ node:sqlite), not the sql.js WASM fallback, and wire it blocking into the Linux leg of electron-release.yml.
This commit is contained in:
5
.github/workflows/electron-release.yml
vendored
5
.github/workflows/electron-release.yml
vendored
@@ -279,9 +279,14 @@ jobs:
|
||||
|
||||
- name: Smoke packaged Electron app (Linux)
|
||||
if: matrix.platform == 'linux'
|
||||
# #7592: also cold-restart against the same DATA_DIR and assert a
|
||||
# native SQLite driver (not the sql.js WASM fallback) is selected on
|
||||
# the second launch — blocking here since Linux has no Windows-style
|
||||
# sandbox caveats that would make it flaky.
|
||||
env:
|
||||
ELECTRON_SMOKE_TIMEOUT_MS: 60000
|
||||
ELECTRON_SMOKE_STREAM_LOGS: "1"
|
||||
ELECTRON_SMOKE_COLD_RESTART: "1"
|
||||
run: xvfb-run -a npm run electron:smoke:packaged
|
||||
|
||||
- name: Collect installers
|
||||
|
||||
Reference in New Issue
Block a user