Skip to content

Linux: prove it works — no CI leg, never tested #455

Closed
3 of 3 issues completed
Closed

Description

@currentbits

Linux has never been tested. Not once. There is no Linux CI leg, no boot probe, and no Linux-specific work has been done — including in the Windows push (#397, #442), which deliberately scoped to win32.

What is actually known

scripts/package-cross.sh already builds out/Solenta-<version>-linux-x64.tar.gz, so shipping Linux was always the intent. Everything else below is INFERENCE, not evidence.

Linux is POSIX, so the things that turned out to be fatal on Windows are natively fine there:

  • which exists (providers.js defaultWhich, memory-sup.js)
  • /bin/sh exists (verify.js)
  • no .cmd shims — agent CLIs are plain executables, so the cross-spawn work is a no-op
  • PATH splits on : correctly (pathEnv.js)
  • env.SHELL is normally set, so captureLoginPath works rather than falling back to /bin/zsh

So Linux is plausibly the healthiest of the two non-macOS platforms. But that is exactly what anyone would have said about Windows before #442, where the app turned out to be dead at the first agent dispatch because of one unguarded which. Inference is not proof, and this issue exists to replace it with proof.

The work

  1. Add ubuntu-latest to the test matrix in .github/workflows/test.yml. One-line matrix change; expect it to mostly pass.
  2. Add ubuntu-latest to the smoke matrix. This one is NOT one line: Electron needs a display and the Ubuntu runner has none, unlike the macOS and Windows runners. Needs xvfb-run (or an equivalent) around npm run test:smoke. See Windows: prove the app boots — electron/smoke.js on windows-latest CI #449 for what the smoke job proves and why it is a separate job.
  3. Work through whatever actually fails, honestly — do not disable a leg to make it green.
  4. Decide what scripts/test-electron.js should run on Linux. It currently branches win32 vs everything-else, so Linux already gets the full glob; confirm that is right rather than assuming.

Known gaps that are NOT bugs

These are macOS-only by design and will stay off on Linux, same as on Windows:

  • auto-update (electron/updater.js returns null off darwin; win/linux builds only surface the release URL)
  • electron/fm.js (off unless CODER_FM_BIN is set)
  • dock and menu specifics (electron/main.js, electron/menu.js) — already correctly gated

Packaging/signing for non-macOS is tracked separately in #440.

Related: #397 (Windows hardening), #442 (Windows dispatch), #449 (smoke in CI).

Sub-issues

Sub-issues

3 of 3 Issues completed
Loading 3 sub-issues

Activity

  1. added
    plan:todo
    plan:doing
    and removed
    plan:todo
    on Aug 18, 2026
  2. currentbits commented on Aug 18, 2026

    @currentbits
    OwnerAuthor

    Linux is no longer an inference. The worktree implements the four items; sub-issues #483 #484 #485 are closed.

    CI (test.yml): ubuntu-latest is on both the test and smoke matrices. Linux smoke is xvfb-run --auto-servernum npm run test:smoke after installing xvfb + Electron's GTK/NSS/GBM libs.

    test-electron.js: Linux stays on the POSIX full glob with macOS. That is correct (shebang fakes, signals, /bin/sh, /tmp). No third skip list.

    What actually failed (Linux Docker, not guessed):

    Suite Result
    core 38/38
    renderer 942/942
    electron 1271/1271
    memory 173/173
    smoke A–E {"step":"smoke","ok":true}

    Two real breaks, neither a disabled leg:

    1. killTree test, not killTree. Group kill works; the grandchild is a zombie and kill(pid, 0) still returns true. Test now treats /proc state Z as dead.
    2. Electron will not boot on Linux CI without xvfb and --no-sandbox (Chromium aborts in C++ before JS if root / no setuid chrome-sandbox). scripts/test-smoke.js passes the flag on Linux only. Packaged app unchanged.

    macOS-only features (auto-update, fm, dock/menu) stay gated. Packaging remains #440.

  3. added
    plan:done
    and removed
    plan:doing
    on Aug 18, 2026
  4. currentbits commented on Aug 18, 2026

    @currentbits
    OwnerAuthor

    All four work items done (#483 #484 #485). Closing.

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