Skip to content

test(desktop): keep the preview signer test valid on Linux CI - #1455

Merged
jonathan308 merged 1 commit into
codex/desktop-mac-preview-20261012from
fix/desktop-preview-runtime-test-linux
Oct 15, 2026
Merged

jonathan308 merged 1 commit into
codex/desktop-mac-preview-20261012from
fix/desktop-preview-runtime-test-linux

Conversation

@jonathan308

@jonathan308 jonathan308 commented Oct 13, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

The base branch codex/desktop-mac-preview-20261012 fails the Desktop / frontend check on every PR. tests/previewRuntime.test.ts › rejects an unsigned preview backend before executing it or updating it expects backend.current.state === 'error'. The frontend job runs npm test on blacksmith-4vcpu-ubuntu-2404, which has no /usr/bin/codesign. Backend.verifyRuntime therefore fails with ENOENT, and connect() reports missing:

AssertionError: expected 'missing' to be 'error'
 ❯ tests/previewRuntime.test.ts:66:33
Test Files  1 failed | 66 passed (67)

(Run 38477258761, from PR #1452, whose diff doesn't touch this area.)

The behavior under test is still correct on both platforms: the unsigned preview binary is never executed (no connection.json), and installing over the bundled API is rejected. Only the status label differs, because Linux has no code-signing tool. The packaged app only runs on macOS, where codesign always exists, so no product code changes.

Base: codex/desktop-mac-preview-20261012. The other desktop UI audit PRs against this base (#1452, #1453, #1454 and later) inherit this red check until this lands.

Before / After

flowchart LR
  subgraph Before["Before"]
    direction TB
    B1(["CI: Ubuntu npm test"]):::user --> B2["verifyRuntime: /usr/bin/codesign"]:::code
    B2 --> B3["ENOENT → state 'missing'"]:::code
    B3 --> B4["assert state === 'error'"]:::bad
    B4 --> B5(["Desktop / frontend fails on every PR"]):::bad
  end
  subgraph After["After"]
    direction TB
    A1(["CI: Ubuntu npm test"]):::user --> A2["verifyRuntime: /usr/bin/codesign"]:::code
    A2 --> A3["ENOENT → state 'missing'"]:::code
    A3 --> A4["assert darwin ? 'error' : 'missing'<br/>+ never executed + install rejected"]:::fix
    A4 --> A5(["Check passes; signer guard still covered"]):::good
  end
  classDef user fill:#1f2937,stroke:#93c5fd,color:#f9fafb
  classDef code fill:#312e81,stroke:#a5b4fc,color:#eef2ff
  classDef bad fill:#7f1d1d,stroke:#fca5a5,color:#fef2f2
  classDef fix fill:#065f46,stroke:#6ee7b7,color:#ecfdf5
  classDef good fill:#14532d,stroke:#86efac,color:#f0fdf4
Loading

Legend: blue = trigger, indigo = unchanged code path, red = defect, green = changed test / fixed outcome.

Validation

cd desktop-app
npx vitest run tests/previewRuntime.test.ts   # 4 passed on macOS (codesign rejects the unsigned fixture → 'error')
npx prettier --check tests/previewRuntime.test.ts
make docs-impact-check BASE=origin/codex/desktop-mac-preview-20261012   # coverage OK

The Linux outcome is confirmed by the CI log above. This PR's own frontend check covers it.

Limitations

This is a test-only change with no changelog entry, since nothing user-visible changes.

🤖 Generated with Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

The desktop frontend job runs npm test on Ubuntu, where /usr/bin/codesign
does not exist. Backend.connect() then fails verification with ENOENT
and reports the runtime as missing, so the assertion that the unsigned
preview backend yields state 'error' failed on every CI run after the
preview packaging commit.

Assert the platform's outcome while keeping the security assertions on
every platform: the unsigned binary is never executed (no
connection.json) and installing over the bundled API is still rejected.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
d-inference Ready Ready Preview Oct 13, 2026 10:29pm UTC
d-inference-console-ui-dev Ready Ready Preview Oct 13, 2026 10:29pm UTC
d-inference-landing Ready Ready Preview Oct 13, 2026 10:29pm UTC
darkbloom-status Ready Ready Preview Oct 13, 2026 10:29pm UTC
eigen-homepages-darkbloom Ready Ready Preview Oct 13, 2026 10:29pm UTC

Request Review

This was referenced Oct 13, 2026
This was referenced Oct 14, 2026
@jonathan308
jonathan308 merged commit ef1667e into codex/desktop-mac-preview-20261012 Oct 15, 2026
31 of 33 checks passed

This branch was successfully deployed

5 active deployments
Preview – d-inference — 5c516aa4 Deployed Oct 13, 2026 by vercel[bot]
Preview – d-inference-landing — 5c516aa4 Deployed Oct 13, 2026 by vercel[bot]
Preview – eigen-homepages-darkbloom — 5c516aa4 Deployed Oct 13, 2026 by vercel[bot]
Preview – d-inference-console-ui-dev — 5c516aa4 Deployed Oct 13, 2026 by vercel[bot]
Preview – darkbloom-status — 5c516aa4 Deployed Oct 13, 2026 by vercel[bot]
benchmarks — 5c516aa4 Deployed Oct 13, 2026 by jonathan308 via E2E Benchmarks #2607
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant