Skip to content

Cache verified Electron distributions in CI to avoid install-time HTTP 504 failures #1955

Closed

Description

@currentbits

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.

Activity

  1. added
    plan:todo
    plan:doing
    and removed
    plan:todo
    on Nov 8, 2026
  2. currentbits commented on Nov 8, 2026

    @currentbits
    OwnerAuthor

    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.

  3. currentbits commented on Nov 8, 2026

    @currentbits
    OwnerAuthor

    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.

  4. currentbits commented on Nov 8, 2026

    @currentbits
    OwnerAuthor

    Validation completed:

    • 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.

  5. currentbits commented on Nov 8, 2026

    @currentbits
    OwnerAuthor

    PR opened for review: #1957 (eba3bee), branch electron-distribution-cache, three CI files only.

    Plan status:

    • Inspect logs, caches and exact pinned installer; identify separate npm/binary cache boundaries. ONNX work is already merged as Skip optional CUDA downloads in CPU-only CI #1952; left unchanged.
    • Add narrow official-distribution cache with exact version/platform/architecture key and matching portable paths.
    • Validate isolated cold/warm installs, corruption rejection, key/path wiring, native macOS smoke and reviewer risks.
    • 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.

  6. added
    plan:done
    and removed
    plan:doing
    on Nov 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    plan:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions