Skip to content

ci: run only the fast ubuntu subset on PRs; cross-platform matrix on push to dev/main - #7052

Merged
lidge-jun merged 1 commit into
devfrom
ci/pr-fast-subset
Oct 13, 2026
Merged

lidge-jun merged 1 commit into
devfrom
ci/pr-fast-subset

Conversation

@lidge-jun

Copy link
Copy Markdown
Owner

Pull requests currently start macOS and Windows runners whenever a change looks native- or Windows-sensitive. Meanwhile, merges into dev get no cross-platform run at all, because push: is pinned to main and preview. This flips that: pull requests run only the fast Ubuntu subset, and the cross-platform matrix runs after merge.

Cross-platform CI (ci.yml)

  • push.branches is now [dev, main, preview] and keeps its paths filter. main and preview stay because release.yml requires push-event runs for the release SHA.
  • On pull_request, platform-macos, widget and platform-windows are always skipped (macos-control already never ran on PRs).
  • On pull_request, the keyring and npm-global matrices emitted by changes are ubuntu-only, and the setup-action and remote-helper OS matrices are ubuntu-only.
  • Push, dispatch and schedule behave exactly as before. That includes Windows suite shards staying dispatch/schedule-only.
  • The aggregate ci gate's expectation table mirrors the new conditions. On a PR it expects skipped from the macOS/Windows jobs and stays green, and on push it still requires them to succeed.
  • desktop-shell runs on ubuntu, so it is unchanged.

Other workflows

  • catalog-async-contracts.yml: PRs run the ubuntu leg only; push and dispatch keep all three OSes.
  • service-lifecycle.yml: macos-launchd and windows-schtasks are skipped on PRs. push gains dev so those legs run after merge.
  • desktop-installed-gate.yml is dispatch-only and react-doctor.yml is ubuntu-only, so neither changed.

The workflow contract tests under tests/ci-workflows now pin the new policy.

Validation

  • bun test tests/ci-workflows: 1543 pass, 0 fail.
  • actionlint on the edited workflows reports only the three SC2016 info notes already present on dev.

@lidge-jun
lidge-jun requested a review from Ingwannu as a code owner October 13, 2026 14:46
@lidge-jun
lidge-jun merged commit daf323d into dev Oct 13, 2026
10 checks passed
@lidge-jun
lidge-jun deleted the ci/pr-fast-subset branch October 13, 2026 14:46
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-13T14:49:15.605712Z bf1321b PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration
  • Configuration used: Repository: lidge-jun/opencodex/.coderabbit.yaml
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 635049a6-4032-4ff4-a11c-463e3b7913bf
📥 Commits

Reviewing files that changed from the base of the PR and between cfe58b4 and bf1321b.

📒 Files selected for processing (8)
  • .github/workflows/catalog-async-contracts.yml
  • .github/workflows/ci.yml
  • .github/workflows/service-lifecycle.yml
  • tests/ci-workflows/ci-review-lanes.test.ts
  • tests/ci-workflows/ci-scope-gaps.test.ts
  • tests/ci-workflows/ci-scope-reduction.test.ts
  • tests/ci-workflows/ci-structure-gate.test.ts
  • tests/ci-workflows/ci-workflows.test.ts
 __________________________________________________________________________________________________________________________________
< Functions delay binding; data structures induce binding. Moral: Structure data late in the programming process. - Alan J. Perlis >
 ----------------------------------------------------------------------------------------------------------------------------------
  \
   \   (\__/)
       (•ㅅ•)
       /   づ
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: bf1321b337

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/ci.yml
needs: [changes, select-windows-runner]
if: >-
github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' && (github.event.inputs.lane == '' || github.event.inputs.lane == 'all') || github.event_name == 'pull_request' && needs.changes.outputs.windows == 'true'
github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' && (github.event.inputs.lane == '' || github.event.inputs.lane == 'all')

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Restore Windows validation before or immediately after merge

For a Windows-sensitive pull request, this condition now excludes both pull_request and push, so the nine Windows shards no longer run before merge or on the subsequent push to dev; only a manual dispatch or the nightly schedule can detect the regression after it has landed. This removes the targeted coverage added after multiple Windows breakages escaped CI. Restore the previous PR clause or add a dev-push clause so Windows-sensitive changes receive prompt validation.

AGENTS.md reference: .github/AGENTS.md:L18-L18

Useful? React with 👍 / 👎.

Comment thread .github/workflows/ci.yml
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
# Pull requests run the ubuntu leg only; macos and windows run after merge.
os: ${{ fromJSON(github.event_name == 'pull_request' && '["ubuntu-latest"]' || '["ubuntu-latest","macos-latest","windows-latest"]') }}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep remote-helper cross-platform legs reachable

When a pull request changes only native/remote-workspace-helper/**, this matrix now runs only Ubuntu, but the workflow's push.paths list contains no native/** entry, so merging that PR into dev does not start the promised post-merge macOS and Windows legs. Those platforms are where the helper's real confinement tests run, leaving such changes unchecked until a nightly or manual run. Add the helper path to the push trigger or retain its three-platform PR matrix.

AGENTS.md reference: .github/AGENTS.md:L18-L18

Useful? React with 👍 / 👎.

@github-actions github-actions Bot added the chore Maintenance, CI, tests, refactors, or build changes (not a user-facing bug or feature). label Oct 13, 2026
@github-actions

Copy link
Copy Markdown
Contributor

✅ Deterministic PR hygiene checks passed.

lidge-jun added a commit that referenced this pull request Oct 21, 2026
…s again

#7052 dropped the pull_request clause from platform-windows, so the changes
job's windows=true verdict was computed and ignored; with dev absent from the
push trigger, Windows ran only nightly. #7468 landed green that way and broke
windows 9/9 on dev. Restore the clause, mirror it in the aggregate, add a
spawnsync marker, and correct the comment. Ordinary PRs keep the Ubuntu subset.
lidge-jun added a commit that referenced this pull request Oct 21, 2026
…s again

#7052 dropped the pull_request clause from platform-windows, so the changes
job's windows=true verdict was computed and ignored; with dev absent from the
push trigger, Windows ran only nightly. #7468 landed green that way and broke
windows 9/9 on dev. Restore the clause, mirror it in the aggregate, add a
spawnsync marker, and correct the comment. Ordinary PRs keep the Ubuntu subset.
lidge-jun added a commit that referenced this pull request Oct 21, 2026
…cy unchanged) (#7488)

* ci(windows): run the Windows shards on Windows-sensitive pull requests again

#7052 dropped the pull_request clause from platform-windows, so the changes
job's windows=true verdict was computed and ignored; with dev absent from the
push trigger, Windows ran only nightly. #7468 landed green that way and broke
windows 9/9 on dev. Restore the clause, mirror it in the aggregate, add a
spawnsync marker, and correct the comment. Ordinary PRs keep the Ubuntu subset.

* ci(windows): keep PRs Ubuntu-only, but flag Windows-sensitive ones for a lane=all dispatch

Drop the pull_request clause and aggregate change: AGENTS.md's CI policy keeps
Windows off PR CI. A Windows-sensitive PR now gets a non-blocking ::notice and
step-summary line to dispatch lane=all before merge, the selector flags added
spawnSync lines, and the platform-windows comment states the real policy.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Maintenance, CI, tests, refactors, or build changes (not a user-facing bug or feature).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant