Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -384,11 +384,17 @@ jobs:
tests/test_tier3_progress.py
tests/test_tier3_result_display.py
tests/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-latest
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
Expand Down
25 changes: 24 additions & 1 deletion tests/test_ci_workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@
"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"}
HEAVY_CI_JOBS = set(REQUIRED_CI_JOBS) - {"test-python-312"} - AFTER_MERGE_ONLY_CI_JOBS
RUN_UNLESS_CANCELLED_IF = "${{ !cancelled() }}"
FULL_LANE_IF = "${{ !cancelled() && needs.classify-changes.outputs.docs_only != 'true' }}"
NOT_DOCS_ONLY_IF = "${{ needs.classify-changes.outputs.docs_only != 'true' }}"
Expand All @@ -42,6 +44,7 @@
"${{ 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",
Expand Down Expand Up @@ -244,6 +247,26 @@ def test_ci_skips_every_other_required_job_only_after_classification() -> None:
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.

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"] == FULL_LANE_IF


def test_full_lane_keeps_the_existing_commands_and_runners() -> None:
jobs = _load("ci.yml")["jobs"]

Expand Down
Loading