Skip to content

ci: stop starting hosted macOS jobs on pull requests and pushes - #326

Merged
gshost1 merged 2 commits into
mainfrom
ci/no-hosted-macos-on-prs
Nov 27, 2026
Merged

gshost1 merged 2 commits into
mainfrom
ci/no-hosted-macos-on-prs

Conversation

@gshost1

@gshost1 gshost1 commented Nov 26, 2026

Copy link
Copy Markdown
Owner

What and why

macOS is tested on the self-hosted ARM macOS queue. The GitHub-hosted macOS jobs from #322–#325 queued together and were cancelled after 15–20 minutes, before running a single step. All they produced was failure emails.

Hosted macOS jobs now start only on a manual workflow_dispatch:

  • scripts/ci_macos_scope.py returns macos=true only for workflow_dispatch. This gates CI's macOS Test job and the Hosted macOS E2E workflow. The path-based skip logic it replaces is removed with its tests.
  • release-dry-run.yml: on pull_request, the CLI matrix leaves out the two *-apple-darwin targets. A dispatch still builds all six.
  • release.yml is unchanged: the real release still builds on hosted macOS.

How tested

  • python3 scripts/ci_macos_scope_test.py: OK.
  • The workflow YAML parses. actionlint runs in CI's Format job; I couldn't run it locally because there's no Go on the laptop.

Risks

  • PRs no longer get any GitHub-side macOS signal. macOS coverage depends on the ARM queue.
  • The CI Test job is not a required check (main has no branch protection), so the skipped job blocks nothing.

gshost1 and others added 2 commits November 26, 2026 14:07
macOS is tested on the self-hosted ARM macOS queue. Hosted macOS jobs
from several PRs queued together and were cancelled before they ran a
step, which only produced failure mail. The CI Test job, the hosted
macOS E2E and the release dry run's Apple targets now run only on a
manual dispatch.
The cli job in release-dry-run.yml now defines its matrix via a dynamic
fromJSON() expression (to skip hosted macOS on PRs), so the Linux rows are no
longer literal YAML list items. The release-workflows test's matrixRows helper
only parsed `- target:`/`runner:`/`container:` lines, so linuxRows returned 0
and the "every Linux matrix row builds inside the pinned container" assertion
failed with `0 !== 2`.

Update matrixRows to also parse the JSON arrays inside fromJSON() matrix
expressions (deduplicating rows that appear in both the PR and dispatch
branches), while keeping the static YAML parsing for the unchanged jobs. The
assertion that both Linux architectures build in the digest-pinned 22.04
container on current runners is preserved.

Diagnosed from https://github.com/gshost1/agent-desktop/actions/runs/45902779731
Radoub-Fix: gshost1/agent-desktop#45902779731.1/1
@gshost1
gshost1 merged commit 5af9c31 into main Nov 27, 2026
27 checks passed
@gshost1
gshost1 deleted the ci/no-hosted-macos-on-prs branch November 27, 2026 00:50
gshost1 added a commit that referenced this pull request Nov 27, 2026
Bring in #322-#324 and #326 so the PR is tested against current main.

# Conflicts:
#	docs/json-output.md
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