Skip to content

fix(ci): reduce macOS runner queue pressure from CodeQL and test-macos - #5197

Open
tyler-dane wants to merge 2 commits into
mainfrom
cursor/macos-runner-queue-fix-0bae
Open

tyler-dane wants to merge 2 commits into
mainfrom
cursor/macos-runner-queue-fix-0bae

Conversation

@tyler-dane

@tyler-dane tyler-dane commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

What and why

GitHub Free allows five concurrent macOS jobs; recent accounting showed CodeQL Swift (~20 min, rarely cancelled) and parallel swift-packages during failed macos-build runs burning slots. This PR replaces default CodeQL with advanced setup, sequences native package tests after the Xcode build, and documents agent constraints so automation does not spam strict Mac runs.

After merge (required): disable repository default CodeQL setup in GitHub → Security → Code scanning. Advanced codeql.yml uploads conflict until default setup is off (Code Scanning could not process the submitted SARIF file on this PR). CodeQL is not a required check.

CI evidence

Final head: c3f571b594161cb9e0f48f055e6e17a4e40f9a90

Required check Run Result
static / unit 42701523305 pass
e2e 42701523661 pass
macos 42701523206 pass

Mac-touching PR (this branch): macos-build then parallel UI shards + swift-packages (job log: Skip CompassKit SPM tests (duplicate of macos-build CompassKitTests)).

Web-only reference (#5196, 74cf6e0f): macOS run 42655400799: only changes + rollup macos; build / swift-packages / shards skipped.

CodeQL advanced 42701523113: upload fails until default setup is disabled (expected).

Verify

VERDICT: PASS — bun run verify scripts; actionlint on changed workflows.

Estimated Mac-minute savings (~3 days)

Source ~min saved
CodeQL Swift off non-Mac PRs + off most main pushes 3,500–4,000
CodeQL PR cancel-in-progress 200
No swift-packages slot when build fails 285
Skip duplicate CompassKit in swift-packages 1–3 per Mac PR
Total ~4,000+
Open in Web Open in Cursor 

cursoragent and others added 2 commits November 9, 2026 20:29
Replace default CodeQL with path-gated advanced setup, sequence
swift-packages after macos-build, and skip duplicate CompassKit SPM tests in CI.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
@tyler-dane
tyler-dane added this pull request to the merge queue Nov 9, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 9, 2026

This branch has not been deployed

No deployments
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