You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cache verified Electron distributions in CI to avoid install-time HTTP 504 failures #1955
Investigate infrastructure-only Electron download failures before tests on PRs #1947 (eadfd2c), #1948 (03fc2f8), and #1949 (45473d4). Examples: runs 42471410046 (Windows jobs 128708386644/128708386557) and 42473140467 (Windows 128708399081).
Plan:
Inspect logs, existing npm/binary caches and the locked Electron installer; identify scope and coordinate with existing optional ONNX CUDA download suggestion.
Add a narrow official-distribution cache keyed by locked Electron version, OS and architecture, with explicit portable restore path and unchanged checksum verification/smoke coverage.
Validate isolated cold/warm installs and cross-platform workflow wiring; record evidence and review risks.
Open a focused CI-only PR, separate from feature branches; leave issue open until merged.
Investigation: job 128708386644 restores node-cache-Windows-x64-npm successfully (C:\npm\cache), then root npm ci fails in node_modules/electron/install.js with HTTP 504 before suites run. GitHub cache inventory contains npm keys only, no Electron binary cache. Started isolated branch from current origin/main (b40f170), where optional ONNX CUDA skip is already present in test/headless jobs; leaving that separate fix untouched. Next: inspect exact [email protected] / @electron/[email protected] cache and checksum behavior, then validate a shared explicit runner-temp cache path.
Implementation now replaces only root npm ci in test, smoke, headless-linux and server-bundle with a shared local composite action. Exact keys use locked electron version + Node platform + architecture, with no broad restore keys. All three cache/install paths are runner.temp/solenta-electron-cache, independent of HOME/LOCALAPPDATA/XDG_CACHE_HOME. Save runs immediately after successful install; all existing tests/smoke and ONNX options are unchanged.
Validation so far (Node 22.23.2, macOS arm64): full cold npm ci from empty npm and Electron caches passed, official release URL and cache miss recorded. Full warm npm ci --offline in a new directory with a different HOME and HTTP(S) requests explicitly forbidden passed, cache hit recorded; both installed 35.7.5. actionlint passes with shellcheck disabled; standard actionlint reports only existing SC2086 in the unchanged headless boot script (also reproduced against origin/main). Cross-platform archive/checksum checks are in progress.
Node 22.23.2: full isolated cold npm ci (empty npm + Electron caches) and a fresh-directory warm npm ci --offline with different HOME and HTTP(S) requests forbidden both passed on macOS arm64.
Exact pinned [email protected] installer: separate cold/warm installs passed for Windows x64, Linux x64/arm64 and macOS Intel; all warm runs used changed HOME/USERPROFILE/LOCALAPPDATA/XDG_CACHE_HOME and blocked HTTP(S). Native arm64 Mac completes the five target combinations. Foreign binaries were extracted/verified, not executed locally.
A deliberately corrupted cache copy was rejected by bundled checksum verification, attempted an official redownload, and installed no executable when networking was forbidden.
Real native macOS arm64 npm run test:smoke passed both smoke.js (A–E) and preview-smoke.js after isolated core + Vite builds, with all inherited CODER_* removed and provider CLIs absent from PATH.
Metadata code produced distinct exact keys for all five targets. Restore/install/save share the same runner-temp path; no restore prefixes. actionlint -shellcheck= and git diff --check pass. Standard actionlint's sole SC2086 is reproduced unchanged on origin/main.
Own-diff review itinerary written; CI-only commit eba3bee changes three files. Opening review PR next. Cold cache misses still depend on official GitHub downloads; no mirrors, checksum changes or test skips added. Existing ONNX fix #1952 remains untouched.
Open focused non-draft PR separately from feature branches.
Keeping plan:doing and this issue open for PR review/merge. GitHub native matrix is running; foreign archive installation tests are not claimed as native execution.
Activity
currentbits commentedon Nov 8, 2026
Investigation: job 128708386644 restores node-cache-Windows-x64-npm successfully (C:\npm\cache), then root npm ci fails in node_modules/electron/install.js with HTTP 504 before suites run. GitHub cache inventory contains npm keys only, no Electron binary cache. Started isolated branch from current origin/main (b40f170), where optional ONNX CUDA skip is already present in test/headless jobs; leaving that separate fix untouched. Next: inspect exact [email protected] / @electron/[email protected] cache and checksum behavior, then validate a shared explicit runner-temp cache path.
currentbits commentedon Nov 8, 2026
Implementation now replaces only root npm ci in test, smoke, headless-linux and server-bundle with a shared local composite action. Exact keys use locked electron version + Node platform + architecture, with no broad restore keys. All three cache/install paths are runner.temp/solenta-electron-cache, independent of HOME/LOCALAPPDATA/XDG_CACHE_HOME. Save runs immediately after successful install; all existing tests/smoke and ONNX options are unchanged.
Validation so far (Node 22.23.2, macOS arm64): full cold npm ci from empty npm and Electron caches passed, official release URL and cache miss recorded. Full warm npm ci --offline in a new directory with a different HOME and HTTP(S) requests explicitly forbidden passed, cache hit recorded; both installed 35.7.5. actionlint passes with shellcheck disabled; standard actionlint reports only existing SC2086 in the unchanged headless boot script (also reproduced against origin/main). Cross-platform archive/checksum checks are in progress.
currentbits commentedon Nov 8, 2026
Validation completed:
Own-diff review itinerary written; CI-only commit eba3bee changes three files. Opening review PR next. Cold cache misses still depend on official GitHub downloads; no mirrors, checksum changes or test skips added. Existing ONNX fix #1952 remains untouched.
currentbits commentedon Nov 8, 2026
PR opened for review: #1957 (eba3bee), branch electron-distribution-cache, three CI files only.
Plan status:
Keeping plan:doing and this issue open for PR review/merge. GitHub native matrix is running; foreign archive installation tests are not claimed as native execution.