Skip to content

ci: take macOS Tier 2 off pull requests and gate the Tier 3 platform jobs by path - #704

Merged
chrisknvidia merged 2 commits into
mainfrom
ci/christopherk/tier3-platform-routing
Nov 17, 2026
Merged

chrisknvidia merged 2 commits into
mainfrom
ci/christopherk/tier3-platform-routing

Conversation

@chrisknvidia

@chrisknvidia chrisknvidia commented Nov 17, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Three required jobs run on macOS or native Windows for every code pull request. This PR stops running them where they cannot find anything. It has two commits, one per change. It replaces #702 and #688.

All three jobs keep their ids and names and still run on every push to main. A skipped job still reports, so the required checks are satisfied. No ruleset edit is needed.

1. Tier 2 (macos-latest) runs after merge only

The job 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 it failed 37 times, never for a macOS-specific reason: 33 failed together with a Linux test job on the same commit, 3 were ordinary test failures where the Linux jobs had been cancelled, and 1 was PyPI returning 503.

It is now skipped on pull requests. The one test in its 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.

2. The Tier 3 platform jobs run only for changes that can affect them

Tier 3 macOS contract and progress runs the macOS sandbox and local-mode tests. Native Windows local mode fails closed checks that local mode refuses to run on native Windows. Both ran on every code pull request, including ones that only change reports, validators or Tier 2.

On a pull request they now run when the change touches any of:

  • src/skillevaluator/tier3* or src/skillevaluator/utils/. All the macOS sandbox code is under tier3/harbor/, and the OS-specific file handling it relies on is under utils/.
  • A test file one of the two jobs runs, anything under tests/fixtures/, a conftest.py, or a test helper module.
  • Anything that is not package source, tests or documentation: pyproject.toml, uv.lock, .github/, scripts/, ci/, and any path the classifier does not recognize.

They are skipped when every changed file is other package source (reporting/, validators/, deduplication/, cli.py, ...), a test file these jobs do not run, or documentation.

Why that is safe enough: the Linux jobs run the same test files on every pull request. A change outside the OS-specific code can only break these tests in a way Linux already shows. What a skipped pull request loses is a failure that appears on macOS or native Windows only and is caused by code outside tier3/ and utils/. The next push to main runs both jobs and would show it.

How it works:

  • scripts/classify_ci_changes.py prints a second line, tier3_platform=true|false, next to docs_only.
  • The two jobs run unless that output is exactly false. A push to main, a classifier that failed, and a base branch whose classifier does not print the line all leave it empty, so the jobs run.
  • A test checks the classifier's list of test files against the two jobs' commands, so adding a test file to a job without telling the classifier fails CI.

What it saves

  • Change 1: one macOS runner and about 5 runner-minutes on every code pull request.
  • Change 2: on the last 400 merged pull requests, 367 were code changes, and the rule skips the two jobs on 111 of them (30%). That is about 3 runner-minutes and one more macOS runner each. The other 256 still run them, 173 of those because they touched Tier 3 source.

Neither change shortens how long a pull request waits. The Linux test jobs and Tier 2 (windows-latest) take 10 to 12 minutes. macOS is the runner that queues, though: 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.

Please look at

  • The trade. A macOS-only break in the Tier 2 tests, or an OS-only break in the Tier 3 jobs caused by code outside tier3/ and utils/, now shows up on main and not on the pull request. The audit's failure logs have no example of either.
  • cli.py is on the skip side for the Tier 3 jobs. The Windows job's PowerShell step runs the CLI. If you want CLI changes to run these jobs, it is one path in the classifier.
  • Tier 2 (windows-latest) is not touched. It runs on every code pull request. It has caught real Windows-only bugs from ordinary code changes, which no path rule would have flagged.

What this PR's own CI shows

  • Tier 2 (macos-latest) shows as skipped, and the Tier 3 macOS contract and progress command includes the /tmp alias test.
  • The path rule is not exercised. The classifier is taken from the base branch, which does not print the new line yet, so both Tier 3 jobs run here. The first pull request after merge that changes only, say, reporting/ is the first real use.

Verification

Not verified: the path rule skipping a job on a GitHub runner, and the after-merge run of Tier 2 (macos-latest).

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>
… that can affect them

Tier 3 macOS contract and progress and Native Windows local mode fails closed
test operating-system behaviour of Tier 3. They ran on every code pull request,
including ones that only change reports, validators or Tier 2.

The change classifier now also reports whether a change can affect them: Tier 3
or utils source, the jobs' own tests and fixtures, or anything that is not
package source, tests or documentation. On a pull request the two jobs are
skipped only when it says no. They still run on every push to main, and they
keep their names, so the required checks still report.

Signed-off-by: Christopher Kevin <christopherk@nvidia.com>
@chrisknvidia chrisknvidia changed the title ci: run the Tier 3 macOS and Windows local-mode jobs only for changes that can affect them ci: take macOS Tier 2 off pull requests and gate the Tier 3 platform jobs by path Nov 17, 2026
@chrisknvidia
chrisknvidia marked this pull request as ready for review November 17, 2026 01:46
@chrisknvidia
chrisknvidia enabled auto-merge (squash) November 17, 2026 01:46

@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

Comment thread .github/workflows/ci.yml Resolved
@chrisknvidia
chrisknvidia merged commit e1b3a21 into main Nov 17, 2026
25 checks passed
@chrisknvidia
chrisknvidia deleted the ci/christopherk/tier3-platform-routing branch November 17, 2026 01:51
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