Multi-tier framework for evaluating AI agent skills and plugins with quality gates, security scanning, harness compatibility checks, semantic overlap detection, synthetic evaluation dataset generation, and live agent evaluation that measures how skills affect agent behavior. Ships reusable CI templates that bring every check to any repository.
Python agent-evaluationagent-pluginsagent-securityagent-skillsagentic-aibenchmarkci-templatesclaude-codecodexevaluateevaluationharnesspluginplugin-evaluationsecurity-scannerskill-evalskill-evaluationskill-evaluatorskill-gap-analysisskills
ci: take macOS Tier 2 off pull requests and gate the Tier 3 platform jobs by path (#704)
Christopher Kevine1b3a210c0b1
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex bd9e48b0..e885adf4 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -20,6 +20,7 @@ jobs:runs-on: ubuntu-latestoutputs:docs_only: ${{ steps.changes.outputs.docs_only }}+ tier3_platform: ${{ steps.changes.outputs.tier3_platform }}steps:- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0with:@@ -37,6 +38,7 @@ jobs:if ! git show "$BASE_SHA:scripts/classify_ci_changes.py" > "$classifier"; thenecho "::notice::Trusted classifier is not present on the base branch; running full CI."echo "docs_only=false" >> "$GITHUB_OUTPUT"+ echo "tier3_platform=true" >> "$GITHUB_OUTPUT"exit 0fipython3 "$classifier" --base "$BASE_SHA" --head "$HEAD_SHA"@@ -359,10 +361,13 @@ jobs:"$RUNNER_TEMP/skillevaluator-wheel-3.12/bin/python" \"$GITHUB_WORKSPACE/scripts/ci/smoke_harbor_verifier.py" --python "$task_python"+ # This job tests operating-system behaviour of Tier 3, so on a pull request it+ # runs only when the classifier says the change can affect it. It is skipped+ # only on an explicit "false": a push to main leaves the output empty and runs it.tier3-macos:name: Tier 3 macOS contract and progressneeds: classify-changes- if: ${{ !cancelled() && needs.classify-changes.outputs.docs_only != 'true' }}+ if: ${{ !cancelled() && needs.classify-changes.outputs.docs_only != 'true' && needs.classify-changes.outputs.tier3_platform != 'false' }}runs-on: macos-lateststeps:- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0@@ -384,11 +389,17 @@ jobs:tests/test_tier3_progress.pytests/test_tier3_result_display.pytests/test_harbor_runtime_preflight.py+ tests/embedding/test_catalog.py::TestCatalogPersistence::test_catalog_io_supports_root_owned_tmp_alias+ # Tier 2 is platform-independent Python, and Linux and Windows run the same+ # tests on every pull request. This job never failed for a macOS-specific+ # reason, so it runs after merge only. Its one macOS-only test, the /tmp+ # alias test, runs in the Tier 3 macOS job above on every pull request. The+ # job stays defined, and is skipped on pull requests, so the required check+ # of the same name still reports.tier2-macos:name: Tier 2 (macos-latest)- needs: classify-changes- if: ${{ !cancelled() && needs.classify-changes.outputs.docs_only != 'true' }}+ if: ${{ github.event_name != 'pull_request' }}runs-on: macos-lateststeps:- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0@@ -553,10 +564,13 @@ jobs:'@ | & $basePython -if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }+ # This job tests operating-system behaviour of Tier 3, so on a pull request it+ # runs only when the classifier says the change can affect it. It is skipped+ # only on an explicit "false": a push to main leaves the output empty and runs it.native-windows-local-mode:name: Native Windows local mode fails closedneeds: classify-changes- if: ${{ !cancelled() && needs.classify-changes.outputs.docs_only != 'true' }}+ if: ${{ !cancelled() && needs.classify-changes.outputs.docs_only != 'true' && needs.classify-changes.outputs.tier3_platform != 'false' }}runs-on: windows-lateststeps:- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4diff --git a/scripts/classify_ci_changes.py b/scripts/classify_ci_changes.pyindex e6f8262d..738de62d 100644--- a/scripts/classify_ci_changes.py+++ b/scripts/classify_ci_changes.py@@ -22,10 +22,74 @@ DOC_PREFIXES = (b"docs/",)DOC_FILES = frozenset({b"fern/docs.yml", b"CHANGELOG.md", b"README.md"})KNOWN_STATUSES = frozenset(b"ACDMRTUXB")+# The Tier 3 platform jobs are the macOS sandbox tests and the native Windows+# local-mode check. They exist for operating-system behaviour, and that code+# lives under these source paths. The Linux jobs run the same test files, so a+# change anywhere else can only break those tests in a way Linux already shows.+SOURCE_ROOT = b"src/skillevaluator"+TESTS_ROOT = b"tests"+TIER3_PLATFORM_SOURCE = (b"src/skillevaluator/tier3", b"src/skillevaluator/utils")+# The test files the two jobs run. tests/test_ci_workflows.py checks this list+# against the jobs' commands in ci.yml.+TIER3_PLATFORM_TESTS = frozenset(+ {+ b"tests/embedding/test_catalog.py",+ b"tests/test_harbor_local_mode.py",+ b"tests/test_harbor_local_sandbox.py",+ b"tests/test_harbor_runtime_preflight.py",+ b"tests/test_local_mode_contract.py",+ b"tests/test_tier3_progress.py",+ b"tests/test_tier3_result_display.py",+ b"tests/validators/test_rubric_eval.py",+ }+)+# Shared by every test: fixtures the jobs' tests read, and anything pytest loads for them.+TIER3_PLATFORM_TEST_SUPPORT = b"tests/fixtures"+++def _is_documentation(path: bytes) -> bool:+ return path.startswith(DOC_PREFIXES) or path in DOC_FILES+def is_docs_only(paths: Sequence[bytes]) -> bool:"""Return whether every changed path is documentation the docs lane covers."""- return bool(paths) and all(path.startswith(DOC_PREFIXES) or path in DOC_FILES for path in paths)+ return bool(paths) and all(_is_documentation(path) for path in paths)+++def _is_under(path: bytes, root: bytes) -> bool:+ """Whether ``path`` is ``root`` or inside it. A directory swapped for a file or link reports its bare name."""+ return path == root or path.startswith(root + b"/")+++def _is_test_module(path: bytes) -> bool:+ name = path.rsplit(b"/", 1)[-1]+ return (name.startswith(b"test_") and name.endswith(b".py")) or name.endswith(b"_test.py")+++def _touches_tier3_platform(path: bytes) -> bool:+ if _is_documentation(path):+ return False+ if path != SOURCE_ROOT and _is_under(path, SOURCE_ROOT):+ # ``tier3`` also matches top-level modules such as ``tier3_environments.py``.+ return any(path.startswith(prefix) for prefix in TIER3_PLATFORM_SOURCE)+ if path != TESTS_ROOT and _is_under(path, TESTS_ROOT):+ if _is_under(path, TIER3_PLATFORM_TEST_SUPPORT):+ return True+ if _is_test_module(path):+ return path in TIER3_PLATFORM_TESTS+ # A conftest, a helper module or other test data: it may be loaded by any test.+ return path.endswith(b".py")+ # Dependencies, CI configuration, scripts and anything else unrecognized.+ return True+++def is_tier3_platform_related(paths: Sequence[bytes]) -> bool:+ """Return whether a change can alter the result of the Tier 3 platform jobs.++ The answer is ``True`` unless every changed path is known not to matter, so+ an unrecognized path, or no paths at all, runs the jobs.+ """+ return not paths or any(_touches_tier3_platform(path) for path in paths)def parse_name_status_z(payload: bytes) -> list[bytes]:@@ -94,13 +158,16 @@ def changed_paths(repo: Path, base: str, head: str) -> list[bytes]:return parse_name_status_z(result.stdout)-def _write_result(docs_only: bool) -> None:- line = f"docs_only={'true' if docs_only else 'false'}"+def _write_result(docs_only: bool, tier3_platform: bool) -> None:+ lines = "".join(+ f"{name}={'true' if value else 'false'}\n"+ for name, value in (("docs_only", docs_only), ("tier3_platform", tier3_platform))+ )output_path = os.environ.get("GITHUB_OUTPUT")if output_path:with Path(output_path).open("a", encoding="utf-8") as output:- output.write(f"{line}\n")- print(line)+ output.write(lines)+ print(lines, end="")def _parser() -> argparse.ArgumentParser:@@ -119,11 +186,13 @@ def main(argv: Sequence[str] | None = None) -> int:if not paths:raise ValueError("no changed paths found")docs_only = is_docs_only(paths)+ tier3_platform = is_tier3_platform_related(paths)except (OSError, subprocess.CalledProcessError, ValueError) as error:print(f"change classification failed; falling back to full CI: {error}", file=sys.stderr)docs_only = False+ tier3_platform = True- _write_result(docs_only)+ _write_result(docs_only, tier3_platform)return 0diff --git a/tests/test_ci_change_classifier.py b/tests/test_ci_change_classifier.pyindex d198ae67..b25a8b71 100644--- a/tests/test_ci_change_classifier.py+++ b/tests/test_ci_change_classifier.py@@ -8,7 +8,13 @@ import sysfrom pathlib import Pathimport pytest-from scripts.classify_ci_changes import changed_paths, is_docs_only, main, parse_name_status_z+from scripts.classify_ci_changes import (+ changed_paths,+ is_docs_only,+ is_tier3_platform_related,+ main,+ parse_name_status_z,+)def _git(repo: Path, *args: str) -> str:@@ -71,6 +77,72 @@ def test_is_docs_only(paths: list[bytes], expected: bool) -> None:assert is_docs_only(paths) is expected+ "paths",+ [+ # The source that holds the macOS and Windows sandbox code.+ [b"src/skillevaluator/tier3/harbor/local_sandbox.py"],+ [b"src/skillevaluator/tier3/reference_skills/demo/SKILL.md"],+ [b"src/skillevaluator/tier3_environments.py"],+ [b"src/skillevaluator/tier3_new_module.py"],+ [b"src/skillevaluator/utils/secure_fs.py"],+ # A directory replaced by a file or a link shows up under its bare name.+ [b"src/skillevaluator/tier3"],+ [b"src/skillevaluator/utils"],+ # What the two jobs run, and what those tests load.+ [b"tests/test_harbor_local_mode.py"],+ [b"tests/validators/test_rubric_eval.py"],+ [b"tests/embedding/test_catalog.py"],+ [b"tests/conftest.py"],+ [b"tests/embedding/conftest.py"],+ [b"tests/fixtures/local_mode_contract.json"],+ [b"tests/fixtures"],+ [b"tests/changelog_entries.py"],+ # Anything that is not plain source, tests or documentation.+ [b"pyproject.toml"],+ [b"uv.lock"],+ [b".github/workflows/ci.yml"],+ [b"scripts/classify_ci_changes.py"],+ [b"ci/gitlab/all-tiers.yml"],+ [b"skills/skillevaluator/SKILL.md"],+ [b"src/other_package/module.py"],+ [b"src/skillevaluator"],+ [b"tests"],+ # One related path is enough.+ [b"src/skillevaluator/reporting/html.py", b"src/skillevaluator/tier3/runner.py"],+ [b"CHANGELOG.md", b"docs/index.mdx", b"uv.lock"],+ # Nothing to go on.+ [],+ ],+)+def test_tier3_platform_jobs_run_for_related_and_unknown_paths(paths: list[bytes]) -> None:+ assert is_tier3_platform_related(paths) is True+++ "paths",+ [+ [b"src/skillevaluator/reporting/html.py"],+ [b"src/skillevaluator/cli.py"],+ [b"src/skillevaluator/validators/security.py"],+ # ``utils`` further down the tree is not the shared utilities package.+ [b"src/skillevaluator/deduplication/utils/chunker.py"],+ [b"src/skillevaluator/tier2/collector.py"],+ [b"src/skillevaluator/reporting/templates/report.html"],+ # Tests the two jobs do not run, and their data.+ [b"tests/test_cli.py"],+ [b"tests/tier3/test_budget_reservation.py"],+ [b"tests/golden/benchmark_tier1.md"],+ # Documentation never counts.+ [b"docs/index.mdx"],+ [b"CHANGELOG.md", b"README.md", b"fern/docs.yml"],+ [b"CHANGELOG.md", b"src/skillevaluator/reporting/html.py", b"tests/reporting/test_html.py"],+ ],+)+def test_tier3_platform_jobs_are_skipped_for_unrelated_source_and_tests(paths: list[bytes]) -> None:+ assert is_tier3_platform_related(paths) is False++@pytest.mark.parametrize(("payload", "expected"),[@@ -135,8 +207,8 @@ def test_main_classifies_a_real_docs_only_diff(assert _classify(repo, base, head, output, monkeypatch) == 0- assert capsys.readouterr().out == "docs_only=true\n"- assert output.read_text(encoding="utf-8") == "docs_only=true\n"+ assert capsys.readouterr().out == "docs_only=true\ntier3_platform=false\n"+ assert output.read_text(encoding="utf-8") == "docs_only=true\ntier3_platform=false\n"def test_main_classifies_a_real_mixed_diff_as_full_ci(@@ -153,8 +225,35 @@ def test_main_classifies_a_real_mixed_diff_as_full_ci(assert _classify(repo, base, head, output, monkeypatch) == 0- assert capsys.readouterr().out == "docs_only=false\n"- assert output.read_text(encoding="utf-8") == "docs_only=false\n"+ assert capsys.readouterr().out == "docs_only=false\ntier3_platform=true\n"+ assert output.read_text(encoding="utf-8") == "docs_only=false\ntier3_platform=true\n"+++ ("changed", "expected"),+ [+ ("src/skillevaluator/reporting/html.py", "docs_only=false\ntier3_platform=false\n"),+ ("src/skillevaluator/tier3/runner.py", "docs_only=false\ntier3_platform=true\n"),+ ],+)+def test_main_classifies_a_real_source_diff_for_the_tier3_platform_jobs(+ git_repo: tuple[Path, str],+ tmp_path: Path,+ monkeypatch: pytest.MonkeyPatch,+ capsys: pytest.CaptureFixture[str],+ changed: str,+ expected: str,+) -> None:+ repo, base = git_repo+ (repo / changed).parent.mkdir(parents=True)+ (repo / changed).write_text("print('changed')\n", encoding="utf-8")+ head = _commit(repo, "source")+ output = tmp_path / "github-output"++ assert _classify(repo, base, head, output, monkeypatch) == 0++ assert capsys.readouterr().out == expected+ assert output.read_text(encoding="utf-8") == expecteddef test_main_treats_a_deleted_docs_file_as_docs_only(@@ -167,7 +266,7 @@ def test_main_treats_a_deleted_docs_file_as_docs_only(head = _commit(repo, "delete docs")assert _classify(repo, base, head, tmp_path / "github-output", monkeypatch) == 0- assert (tmp_path / "github-output").read_text(encoding="utf-8") == "docs_only=true\n"+ assert (tmp_path / "github-output").read_text(encoding="utf-8") == "docs_only=true\ntier3_platform=false\n"def test_main_checks_both_sides_of_a_rename(@@ -181,7 +280,7 @@ def test_main_checks_both_sides_of_a_rename(head = _commit(repo, "rename out of docs")assert _classify(repo, base, head, tmp_path / "github-output", monkeypatch) == 0- assert (tmp_path / "github-output").read_text(encoding="utf-8") == "docs_only=false\n"+ assert (tmp_path / "github-output").read_text(encoding="utf-8") == "docs_only=false\ntier3_platform=true\n"def test_main_treats_a_rename_within_docs_as_docs_only(@@ -194,7 +293,7 @@ def test_main_treats_a_rename_within_docs_as_docs_only(head = _commit(repo, "rename within docs")assert _classify(repo, base, head, tmp_path / "github-output", monkeypatch) == 0- assert (tmp_path / "github-output").read_text(encoding="utf-8") == "docs_only=true\n"+ assert (tmp_path / "github-output").read_text(encoding="utf-8") == "docs_only=true\ntier3_platform=false\n"def test_main_checks_the_source_of_a_rename_into_docs(@@ -207,7 +306,7 @@ def test_main_checks_the_source_of_a_rename_into_docs(head = _commit(repo, "rename into docs")assert _classify(repo, base, head, tmp_path / "github-output", monkeypatch) == 0- assert (tmp_path / "github-output").read_text(encoding="utf-8") == "docs_only=false\n"+ assert (tmp_path / "github-output").read_text(encoding="utf-8") == "docs_only=false\ntier3_platform=true\n"def test_changed_paths_detects_an_unmodified_copy_source_outside_docs(@@ -239,7 +338,7 @@ def test_main_uses_the_merge_base_when_the_base_branch_advances(advanced_base = _commit(repo, "advance base")assert _classify(repo, advanced_base, feature_head, tmp_path / "github-output", monkeypatch) == 0- assert (tmp_path / "github-output").read_text(encoding="utf-8") == "docs_only=true\n"+ assert (tmp_path / "github-output").read_text(encoding="utf-8") == "docs_only=true\ntier3_platform=false\n"@pytest.mark.parametrize("revision", ["0" * 40, "not-a-sha"])@@ -256,9 +355,9 @@ def test_main_fails_closed_for_invalid_revisions(assert _classify(repo, revision, head, output, monkeypatch) == 0captured = capsys.readouterr()- assert captured.out == "docs_only=false\n"+ assert captured.out == "docs_only=false\ntier3_platform=true\n"assert "falling back to full CI" in captured.err- assert output.read_text(encoding="utf-8") == "docs_only=false\n"+ assert output.read_text(encoding="utf-8") == "docs_only=false\ntier3_platform=true\n"def test_main_fails_closed_for_an_empty_diff(@@ -274,9 +373,9 @@ def test_main_fails_closed_for_an_empty_diff(assert _classify(repo, head, head, output, monkeypatch) == 0captured = capsys.readouterr()- assert captured.out == "docs_only=false\n"+ assert captured.out == "docs_only=false\ntier3_platform=true\n"assert "no changed paths" in captured.err- assert output.read_text(encoding="utf-8") == "existing=value\ndocs_only=false\n"+ assert output.read_text(encoding="utf-8") == "existing=value\ndocs_only=false\ntier3_platform=true\n"def test_main_fails_closed_outside_a_git_repository(@@ -291,9 +390,9 @@ def test_main_fails_closed_outside_a_git_repository(assert _classify(tmp_path / "missing-repo", head, head, output, monkeypatch) == 0captured = capsys.readouterr()- assert captured.out == "docs_only=false\n"+ assert captured.out == "docs_only=false\ntier3_platform=true\n"assert "falling back to full CI" in captured.err- assert output.read_text(encoding="utf-8") == "docs_only=false\n"+ assert output.read_text(encoding="utf-8") == "docs_only=false\ntier3_platform=true\n"def test_cli_classifies_a_real_fern_only_diff(git_repo: tuple[Path, str], tmp_path: Path) -> None:@@ -320,9 +419,9 @@ def test_cli_classifies_a_real_fern_only_diff(git_repo: tuple[Path, str], tmp_paenv={"GITHUB_OUTPUT": str(output)},)- assert result.stdout == "docs_only=true\n"+ assert result.stdout == "docs_only=true\ntier3_platform=false\n"assert result.stderr == ""- assert output.read_text(encoding="utf-8") == "docs_only=true\n"+ assert output.read_text(encoding="utf-8") == "docs_only=true\ntier3_platform=false\n"def test_output_write_failure_is_not_silently_downgraded(diff --git a/tests/test_ci_workflows.py b/tests/test_ci_workflows.pyindex d68028db..26114f39 100644--- a/tests/test_ci_workflows.py+++ b/tests/test_ci_workflows.py@@ -31,9 +31,18 @@ REQUIRED_CI_JOBS = {"tier3-macos": "Tier 3 macOS contract and progress","native-windows-local-mode": "Native Windows local mode fails closed",}-HEAVY_CI_JOBS = set(REQUIRED_CI_JOBS) - {"test-python-312"}+# Required jobs that are skipped on every pull request and run after merge.+AFTER_MERGE_ONLY_CI_JOBS = {"tier2-macos"}+# Required jobs that test operating-system behaviour of Tier 3. On a pull request+# they run only when the change classifier says the change can affect them.+TIER3_PLATFORM_CI_JOBS = {"tier3-macos", "native-windows-local-mode"}+HEAVY_CI_JOBS = set(REQUIRED_CI_JOBS) - {"test-python-312"} - AFTER_MERGE_ONLY_CI_JOBS - TIER3_PLATFORM_CI_JOBSRUN_UNLESS_CANCELLED_IF = "${{ !cancelled() }}"FULL_LANE_IF = "${{ !cancelled() && needs.classify-changes.outputs.docs_only != 'true' }}"+TIER3_PLATFORM_IF = (+ "${{ !cancelled() && needs.classify-changes.outputs.docs_only != 'true'"+ " && needs.classify-changes.outputs.tier3_platform != 'false' }}"+)NOT_DOCS_ONLY_IF = "${{ needs.classify-changes.outputs.docs_only != 'true' }}"PULL_REQUEST_TESTS_IF = ("${{ github.event_name == 'pull_request' && needs.classify-changes.outputs.docs_only != 'true' }}"@@ -42,6 +51,7 @@ DOCS_ONLY_TESTS_IF = ("${{ github.event_name == 'pull_request' && needs.classify-changes.outputs.docs_only == 'true' }}")MAIN_COVERAGE_IF = "${{ github.event_name != 'pull_request' }}"+AFTER_MERGE_ONLY_IF = "${{ github.event_name != 'pull_request' }}"PR_CONCURRENCY = {"group": "${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}","cancel-in-progress": "true",@@ -117,7 +127,10 @@ def test_ci_classifier_is_pull_request_only_and_exports_docs_only() -> None:assert ci["concurrency"] == PR_CONCURRENCYassert classifier["name"] == "Classify changes"assert classifier["if"] == "${{ github.event_name == 'pull_request' }}"- assert classifier["outputs"]["docs_only"] == "${{ steps.changes.outputs.docs_only }}"+ assert classifier["outputs"] == {+ "docs_only": "${{ steps.changes.outputs.docs_only }}",+ "tier3_platform": "${{ steps.changes.outputs.tier3_platform }}",+ }assert classifier["steps"][0]["with"]["fetch-depth"] == "0"assert classifier["steps"][0]["with"]["persist-credentials"] == "false"assert classifier["steps"][1]["id"] == "changes"@@ -125,6 +138,7 @@ def test_ci_classifier_is_pull_request_only_and_exports_docs_only() -> None:assert 'git show "$BASE_SHA:scripts/classify_ci_changes.py"' in classifier_runassert 'python3 "$classifier"' in classifier_runassert 'echo "docs_only=false" >> "$GITHUB_OUTPUT"' in classifier_run+ assert 'echo "tier3_platform=true" >> "$GITHUB_OUTPUT"' in classifier_runassert "python3 scripts/classify_ci_changes.py" not in classifier_runassert classifier["steps"][1]["env"] == {"BASE_SHA": "${{ github.event.pull_request.base.sha }}",@@ -244,6 +258,55 @@ def test_ci_skips_every_other_required_job_only_after_classification() -> None:assert jobs[job_id]["if"] == FULL_LANE_IF+def test_tier3_platform_jobs_run_only_for_changes_that_can_affect_them() -> None:+ jobs = _load("ci.yml")["jobs"]++ for job_id in TIER3_PLATFORM_CI_JOBS:+ assert jobs[job_id]["name"] == REQUIRED_CI_JOBS[job_id]+ assert jobs[job_id]["needs"] == "classify-changes"+ # The jobs are skipped only on an explicit ``false``. A push to main,+ # a classifier that failed, and a base branch whose classifier does not+ # report this output all leave it empty, and the jobs run.+ assert jobs[job_id]["if"] == TIER3_PLATFORM_IF+++def test_the_classifier_knows_every_test_file_the_tier3_platform_jobs_run() -> None:+ """A test file added to one of the jobs must also make the job run when it changes."""+ from scripts.classify_ci_changes import TIER3_PLATFORM_TESTS, is_tier3_platform_related++ jobs = _load("ci.yml")["jobs"]+ run_by_the_jobs = {+ token.split("::", 1)[0]+ for job_id in TIER3_PLATFORM_CI_JOBS+ for token in _runs(jobs[job_id]).split()+ if token.startswith("tests/")+ }++ assert run_by_the_jobs, "no test paths found in the Tier 3 platform jobs"+ assert {path.decode() for path in TIER3_PLATFORM_TESTS} == run_by_the_jobs+ assert all(is_tier3_platform_related([path.encode()]) for path in run_by_the_jobs)+++def test_tier2_runs_on_macos_after_merge_only_and_keeps_its_required_name() -> None:+ jobs = _load("ci.yml")["jobs"]++ for job_id in AFTER_MERGE_ONLY_CI_JOBS:+ job = jobs[job_id]+ # The job is skipped on pull requests, not removed: a skipped job still+ # reports, so the required check of the same name does not block a merge.+ assert job["name"] == REQUIRED_CI_JOBS[job_id]+ assert job["if"] == AFTER_MERGE_ONLY_IF+ # The classifier only runs on pull requests, where this job never runs.+ assert "needs" not in job++ # The one Tier 2 test that only runs on macOS keeps running on pull requests.+ assert (+ "tests/embedding/test_catalog.py::TestCatalogPersistence::test_catalog_io_supports_root_owned_tmp_alias"+ in _runs(jobs["tier3-macos"])+ )+ assert jobs["tier3-macos"]["if"] == TIER3_PLATFORM_IF++def test_full_lane_keeps_the_existing_commands_and_runners() -> None:jobs = _load("ci.yml")["jobs"]