Skip to content

ci: run the Tier 2 tests on macOS after merge, not on every pull request - #702

Closed
chrisknvidia wants to merge 2 commits into
mainfrom
ci/christopherk/tier2-macos-main-only
Closed

chrisknvidia wants to merge 2 commits into
mainfrom
ci/christopherk/tier2-macos-main-only

Conversation

@chrisknvidia

@chrisknvidia chrisknvidia commented Nov 17, 2026 •

Copy link
Copy Markdown
Collaborator

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:

  • 33 failed together with a Linux test job on the same commit.
  • 3 were ordinary test failures (README and docs string asserts) where the Linux jobs had been cancelled before they finished.
  • 1 was PyPI returning 503 during 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 to main.
  • The one test in that set that only runs on macOS, test_catalog_io_supports_root_owned_tmp_alias (it needs /tmp to be a symlink), moves into the Tier 3 macOS contract and progress job, so it still runs on every pull request.

What does not change:

  • The job keeps its id and its name, so the required check 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 progress still runs on every pull request. It is the only job that runs the macOS sandbox.

Please look at

  • A macOS-only break in these tests would now show up on main, not on the pull request. Nothing in the history says that happens, but that is the trade.
  • The grey line. The check still appears on pull requests as skipped. If you later remove 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 check on the changed test file)

  • Ran make test

  • Ran make build

  • Did not add credentials, private datasets, or proprietary benchmark content

  • tests/test_ci_workflows.py passes: 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 the Tier 3 macOS contract and progress log should include the /tmp alias test.

Not verified: the after-merge run. It first runs when this lands on main.

Release Impact

  • No user-visible release note needed
  • Updated CHANGELOG.md

CI only.


Devin Review

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
chrisknvidia marked this pull request as ready for review November 17, 2026 01:25

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Devin Review found 1 potential issue.

Devin Review

assert jobs[job_id]["if"] == FULL_LANE_IF


def test_tier2_runs_on_macos_after_merge_only_and_keeps_its_required_name() -> None:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔍 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.

Devin Review


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>
@chrisknvidia

Copy link
Copy Markdown
Collaborator Author

Folded into #704, which carries this change as its first commit. The CLI fix that was pushed onto this branch is now #706.

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