Repository navigation
ci: run Windows and macOS jobs only on manual dispatch - #442
Merged
Merged
Conversation
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>
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.
This was referenced Oct 14, 2026
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
Windows, macOS and iOS jobs run only from a manual dispatch.
scripts/ci-scope.mjssetsplatforms=trueand the full vitest matrix (macos-latest,ubuntu-latest,windows-latest) only whenGITHUB_EVENT_NAMEisworkflow_dispatch. Pull requests, pushes to main and merge groups stay onubuntu-latestwithplatforms=false.ci.ymlalready wait onplatforms=true. Their comments now say manual dispatch.ios-thread-ui.ymlno longer runs nightly or on pushes to main. It runs fromworkflow_dispatchonly.browser-vendor-windows.ymlruns only onworkflow_dispatch. The Linux build of that vendor bundle is unchanged.docs/ci.mdno longer says merge groups run every job, and it says the Windows Vitest and Electron jobs run only on a manual dispatch.release-ci.mjsstill 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_cidoes 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.tsond1ce4f3b5add92918a4cc2f9af462e474890ff2f: 1 file, 58 tests, all passed.Preuve
Screenshots (UI changes)
None.
Checklist
scripts/ci-scope.test.tswas run (output above)dist-server/edits