Repository navigation
ci: stop starting hosted macOS jobs on pull requests and pushes - #326
Merged
Merged
Conversation
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
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 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.pyreturnsmacos=trueonly forworkflow_dispatch. This gates CI's macOSTestjob and the Hosted macOS E2E workflow. The path-based skip logic it replaces is removed with its tests.release-dry-run.yml: onpull_request, the CLI matrix leaves out the two*-apple-darwintargets. A dispatch still builds all six.release.ymlis unchanged: the real release still builds on hosted macOS.How tested
python3 scripts/ci_macos_scope_test.py: OK.Risks
Testjob is not a required check (main has no branch protection), so the skipped job blocks nothing.