Repository navigation
ci: run the Tier 2 tests on macOS after merge, not on every pull request - #702
Closed
chrisknvidia wants to merge 2 commits into
Closed
chrisknvidia wants to merge 2 commits into
chrisknvidia wants to merge 2 commits into
Conversation
Tier 2 (macos-latest) runs plain Python tests that Linux and Windows also run on every pull request. In 1,962 pull-request runs it never failed for a macOS-specific reason, and macOS is the runner that queues. The job is now skipped on pull requests and runs on pushes to main. It keeps its id and name, so the required check still reports. The one test in its set that only runs on macOS, the /tmp alias test, moves into the Tier 3 macOS job and keeps running on every pull request. Signed-off-by: Christopher Kevin <christopherk@nvidia.com>
chrisknvidia
marked this pull request as ready for review
November 17, 2026 01:25
chrisknvidia
requested review from
mosheabr,
rmalani-nv and
rng1995
as code owners
November 17, 2026 01:25
| assert jobs[job_id]["if"] == FULL_LANE_IF | ||
|
|
||
|
|
||
| def test_tier2_runs_on_macos_after_merge_only_and_keeps_its_required_name() -> None: |
Contributor
There was a problem hiding this comment.
🔍 Required local checks not run
The PR reports focused tests but leaves make test and make build unchecked. Both remain mandatory under the contribution gate, including for CI-only changes.
Was this helpful? React with 👍 or 👎 to provide feedback.
Defer the CLI scanner-preparation hook until local target, check and LLM preflight completes. This fixes the inherited provider-error CI failure without weakening error-output assertions. Keep workflow unit tests isolated from scanner provisioning; explicit ordering spies retain regression coverage. Signed-off-by: Christopher Kevin <christopherk@nvidia.com>
This was referenced Nov 17, 2026
Collaborator
Author
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.
Summary
Every pull request starts a macOS runner for
Tier 2 (macos-latest). It runs the embedding, deduplication, similarity, reporting, CLI and packaging tests. Those are plain Python, and the Linux and Windows jobs run the same tests on the same pull request.In 1,962 pull-request runs the job failed 37 times, and none of those was specific to macOS:
uv sync.macOS is also the runner that queues. In the two busiest weeks of the audit window, the macOS jobs waited more than 5 minutes to start on about 45% and 24% of pushes. Each push asks for two of them.
This PR makes the job run after merge only:
Tier 2 (macos-latest)is skipped on pull requests and still runs on every push tomain.test_catalog_io_supports_root_owned_tmp_alias(it needs/tmpto be a symlink), moves into theTier 3 macOS contract and progressjob, so it still runs on every pull request.What does not change:
Tier 2 (macos-latest)still reports on pull requests, as skipped. A skipped job satisfies a required check. This is the same mechanism the docs-only lane already uses. No ruleset edit is needed to merge this.Tier 2 (windows-latest)still runs on every pull request. It has caught real Windows-only bugs.Tier 3 macOS contract and progressstill runs on every pull request. It is the only job that runs the macOS sandbox.Please look at
main, not on the pull request. Nothing in the history says that happens, but that is the trade.Tier 2 (macos-latest)from the "Protect main" required checks, the job can move out of the pull-request workflow and the line goes away. That is a separate change.This replaces #688, which folded these tests into the Tier 3 macOS job. Folding kept them on every pull request, which is what this stops doing.
Verification
I am familiar with the Contributing Guidelines
Added or updated focused tests
Updated documentation for user-visible changes (none: CI only)
Ran
make lint(ruff checkon the changed test file)Ran
make testRan
make buildDid not add credentials, private datasets, or proprietary benchmark content
tests/test_ci_workflows.pypasses: 49 passed. A new test pins that the job is skipped on pull requests, keeps its required name, does not wait on the classifier, and that the macOS-only test runs in the Tier 3 macOS job.Each of these breaks a test: the job running on pull requests again, the job waiting on the classifier, the required name changing, the job being deleted, and the Windows job being moved off pull requests the same way.
The moved test passes locally on macOS when selected by its id next to the Tier 3 files.
To check on this PR's own CI:
Tier 2 (macos-latest)should show as skipped, and theTier 3 macOS contract and progresslog should include the/tmpalias test.Not verified: the after-merge run. It first runs when this lands on
main.Release Impact
CHANGELOG.mdCI only.