Repository navigation
ci: take macOS Tier 2 off pull requests and gate the Tier 3 platform jobs by path - #704
Merged
Merged
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>
… 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
marked this pull request as ready for review
November 17, 2026 01:46
chrisknvidia
requested review from
mosheabr,
rmalani-nv and
rng1995
as code owners
November 17, 2026 01:46
chrisknvidia
enabled auto-merge (squash)
November 17, 2026 01:46
This was referenced Nov 17, 2026
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
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 onlyThe 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/tmpto be a symlink), moves into theTier 3 macOS contract and progressjob.2. The Tier 3 platform jobs run only for changes that can affect them
Tier 3 macOS contract and progressruns the macOS sandbox and local-mode tests.Native Windows local mode fails closedchecks 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*orsrc/skillevaluator/utils/. All the macOS sandbox code is undertier3/harbor/, and the OS-specific file handling it relies on is underutils/.tests/fixtures/, aconftest.py, or a test helper module.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/andutils/. The next push tomainruns both jobs and would show it.How it works:
scripts/classify_ci_changes.pyprints a second line,tier3_platform=true|false, next todocs_only.false. A push tomain, a classifier that failed, and a base branch whose classifier does not print the line all leave it empty, so the jobs run.What it saves
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
tier3/andutils/, now shows up onmainand not on the pull request. The audit's failure logs have no example of either.cli.pyis 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 theTier 3 macOS contract and progresscommand includes the/tmpalias test.reporting/is the first real use.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 files)Ran
make testRan
make buildDid not add credentials, private datasets, or proprietary benchmark content
The eight test files that read
ci.ymlor the classifier pass: 482 passed.Each of these breaks a test. For change 1: the job running on pull requests again, waiting on the classifier, its required name changing, the job being deleted, and the Windows job being moved off pull requests the same way. For change 2, in the workflow: a job that needs an explicit
true(it would never run onmain), a job that ignores the rule, a job that does not wait for the classifier, the output not exported, the fallback not reporting it,Tier 2 (windows-latest)put behind the rule, and a test file added to a job but not to the classifier. In the classifier:utils/not counting, bare directory names andtier3_*.pymodules missed, unknown paths treated as unrelated, no paths treated as unrelated, a failed classification skipping the jobs, fixtures not counting, conftest and helper modules not counting, the jobs' own tests not counting, documentation counting, and every source change counting.The classifier run standalone with the system Python 3.9, the way CI runs it from the base branch, on five merged commits: fix(tier3): show the execution backend in report.html #694 (
reporting/) and fix(validators): stop the version-label regex stalling the PII scan on long identifiers #684 (validators/) skip the Tier 3 jobs, fix(tier3): give the Windows process-tree kill longer than a plain reap #687 (tier3/harbor/runner.py) and ci: run both HTML parser compatibility versions in one job #686 (ci.yml) run them, docs(harness): list what the harness check looks at and the harnesses it covers #698 (docs) is docs-only.Not verified: the path rule skipping a job on a GitHub runner, and the after-merge run of
Tier 2 (macos-latest).Release Impact
CHANGELOG.mdCI only.