Skip to content

ci: run Windows and macOS jobs only on manual dispatch - #442

Merged
jencryzthers merged 2 commits into
mainfrom
cursor/platform-dispatch-gate-153e
Oct 14, 2026
Merged

jencryzthers merged 2 commits into
mainfrom
cursor/platform-dispatch-gate-153e

Conversation

@jencryzthers

@jencryzthers jencryzthers commented Oct 13, 2026 •

Copy link
Copy Markdown
Member

What changed

Windows, macOS and iOS jobs run only from a manual dispatch.

  • scripts/ci-scope.mjs sets platforms=true and the full vitest matrix (macos-latest, ubuntu-latest, windows-latest) only when GITHUB_EVENT_NAME is workflow_dispatch. Pull requests, pushes to main and merge groups stay on ubuntu-latest with platforms=false.
  • The Windows CUA smoke, macOS Electron smokes and iOS job in ci.yml already wait on platforms=true. Their comments now say manual dispatch.
  • ios-thread-ui.yml no longer runs nightly or on pushes to main. It runs from workflow_dispatch only.
  • The Windows cold-start smoke in browser-vendor-windows.yml runs only on workflow_dispatch. The Linux build of that vendor bundle is unchanged.
  • docs/ci.md no longer says merge groups run every job, and it says the Windows Vitest and Electron jobs run only on a manual dispatch.
  • release-ci.mjs still treats a Linux-only green run as proof, because a push only schedules Ubuntu vitest. Requiring a Windows and macOS dispatch inside that script would rewrite its proof order (the commit, a same-tree run, and a version-bump parent). The mandatory dispatch is documented instead: before tagging, dispatch CI on the release candidate SHA and wait until the Windows and macOS vitest jobs on that SHA have succeeded (docs/ci.md, docs/releasing.md). ship_without_ci does not replace that dispatch.

No fork or repository guard was added. Runner labels are unchanged in this pull request.

Why

Platform gating was bundled with the runner move. This pull request is only when Windows and macOS run. #438 still changes PR_OS; it must drop that change before it can be proven (it is the one blocked, not this PR).

How it was verified

pnpm exec vitest run scripts/ci-scope.test.ts on d1ce4f3b5add92918a4cc2f9af462e474890ff2f: 1 file, 58 tests, all passed.

Preuve

$ pnpm exec vitest run scripts/ci-scope.test.ts

 RUN  v5.0.3 /workspace

(node:12348) ExperimentalWarning: SQLite is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)

 Test Files  1 passed (1)
      Tests  58 passed (58)
   Start at  00:03:21
   Duration  2.03s (tests 78%, transform 15%, setup 6%, worker 1%)

Screenshots (UI changes)

None.

Checklist

  • scripts/ci-scope.test.ts was run (output above)
  • No dist-server/ edits
  • No secrets in logs
Open in Web Open in Cursor 

Pull requests, main pushes and merge groups stay on ubuntu-latest.
workflow_dispatch is the only event that sets platforms and the full
vitest matrix. The iOS thread UI workflow and the Windows browser smoke
follow the same rule. No fork guard.

Co-authored-by: Jean-Christophe Proulx <j.christophe@devjc.net>
…atch

Merge groups no longer run every job. Windows Vitest and Electron jobs run only on manual dispatch. release-ci.mjs still treats a Linux-only green run as proof, so the release checklist requires a CI dispatch on the release candidate SHA with Windows and macOS vitest green before tagging.

Co-authored-by: Jean-Christophe Proulx <j.christophe@devjc.net>
@jencryzthers
jencryzthers merged commit bee6b77 into main Oct 14, 2026
11 of 14 checks passed
cursor Bot pushed a commit that referenced this pull request Oct 14, 2026
Main now runs Windows/macOS only on workflow_dispatch (#442) and rejects
self-hosted labels (#440). Keep this branch's Electron/path/voice-bench
fixes and the hosted windows-vitest.yml shards for this PR.

# Conflicts:
#	.github/workflows/codeql.yml
#	scripts/ci-scope.mjs
cursor Bot pushed a commit that referenced this pull request Oct 14, 2026
Keep Windows product and test fixes. PRs, main and merge groups stay
on ubuntu-latest; Windows and macOS remain workflow_dispatch only.
jencryzthers added a commit that referenced this pull request Oct 14, 2026
…438)

* fix: Windows vitest after the voice merges

workspaceIsTemporary now peels macOS /private before resolve, so the
hygiene fixtures match on win32. Plugin-turn assertions compare
JSON.stringify(path), matching the prompt. The synthetic voice bench
dumps failed gates, aborts a hung ClockPlayer reader, and uses a 400 ms
STT finalize fallback so a lost socket cannot trip the 2500 ms max gate.

* ci: run CodeQL and the term guard on ubuntu-latest

The Linux analysis and scan jobs were queued with no self-hosted runner.
Swift analysis still needs macOS and does not run on pull requests.

Co-authored-by: Jean-Christophe Proulx <j.christophe@devjc.net>

* fix: run Windows Vitest shards on PRs; cover SSE CRLF

PRs selected Ubuntu only, so the shards that failed on main never ran
here. Restore the documented Ubuntu+Windows matrix. Move sseEventCut
into its own module with LF and CRLF tests.

* fix: Windows electron tests after Vitest goes green

Shard 1 only reached pnpm test:electron once the voice suite passed.
The Local VM folder now follows the VM platform's separators, source
matches ignore CRLF checkouts, and a sibling host without a boot id
is another machine. The key-rejected fixture closes its socket, and
the approval-card polls wait long enough under load.

Co-authored-by: Jean-Christophe Proulx <j.christophe@devjc.net>

* ci: run Linux jobs on ubuntu-latest

Pinned Ubuntu images and the ARM installer job were still on their own
labels. Every Linux job now uses ubuntu-latest, and the installer check
accepts that runner's architecture.

Co-authored-by: Jean-Christophe Proulx <j.christophe@devjc.net>

* fix: Windows electron tests (CRLF sources, Local VM paths)

GitHub Actions windows-latest checks out CRLF, so source matchers that
look for `\n` in electron/main.mjs and electron-builder.yml failed.
path.join on that host also rewrote darwin/linux Local VM fixtures to
backslashes, so judgeContainer called the VM stale.

Join the workspace with the injected platform's path helpers, equate
`/` and `\` on win32, and read those sources as LF. A sibling-hostname
lease without a boot id (Windows) still fails closed as another machine.

* ci: run Windows vitest shards 1 and 2 on windows-latest

workflow_dispatch is not permitted for this token, and the Linux
preflight is still queued. These two shards start on a GitHub-hosted
Windows runner without waiting for that job.

Co-authored-by: Jean-Christophe Proulx <j.christophe@devjc.net>

* fix: exclude voice-bench warmup from max and p90

u00 is marked warmup so it can pay cold start. p50 already used the
warm turns; max and p90 still counted u00, so Windows shard 1/4 failed
when the warmup waited ~4s for the endpoint (~4260 ms vs 2500).

The compiler test now uses a 4260 ms warmup and expects max/p90 from
the following turns only.

* fix: runner-guard reads CRLF workflow files on Windows

Windows checkout turns the fixture YAML into CRLF. The runs-on regex
uses a dot which does not match CR, so every line was skipped and the
self-hosted cases passed. Split lines on CR-optional LF.

Rename the node:test file so Vitest shards do not load it as an empty
suite (include is scripts/**/*.test.mjs).

* ci: restore #442 Linux-only PR_OS; drop windows-vitest.yml

Keep Windows product and test fixes. PRs, main and merge groups stay
on ubuntu-latest; Windows and macOS remain workflow_dispatch only.

* fix: OS-specific voice-bench max latency gate

Linux and macOS stay at 2500 ms. GitHub-hosted windows-latest measured
4260 ms on synthetic u00 (~3982 ms in endpoint), so Windows is 6000 ms.

* fix: limit voice-bench warmup, idle, and STT slack to win32

p90/max still count the explicit warm-up on Linux and macOS, as on
main, so a 4260 ms cold start fails the 2500 ms gate there. Windows
keeps the 6000 ms max and judges extrema on warm turns only. The
200 ms idle wait and 400 ms synthetic STT fallback are win32-only;
other OS keep 4000 ms idle and the product STT timeout.

* test: runner-guard CRLF in Vitest; Windows-only approval poll

Keep check-runner-labels.test.mjs as Vitest like main (#439). Cover a
CRLF checkout so `runs-on` is not skipped. Approval-card polls wait
15 s only on win32; Linux and macOS keep Vitest's default.

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
@jencryzthers
jencryzthers deleted the cursor/platform-dispatch-gate-153e branch October 14, 2026 11:32
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.

2 participants