diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 8c53f624..ab84b5b4 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -30,6 +30,13 @@ jobs: os: - ubuntu-latest - macos-latest + exclude: + # macOS runners are congested and limited in number + # only run macOS tests on latest stable Python version + - os: macos-latest + python-version: "3.12" + - os: macos-latest + python-version: "3.13" steps: - name: Get source @@ -96,14 +103,6 @@ jobs: - ci_workflow_suite os: - ubuntu-latest - - macos-latest - exclude: - # macOS tests are slower and congested - # only run macOS tests on latest stable Python version - - os: macos-latest - python-version: "3.12" - - os: macos-latest - python-version: "3.13" steps: - name: Get source diff --git a/.mergify.yml b/.mergify.yml index 14d9fba3..da9af3c4 100644 --- a/.mergify.yml +++ b/.mergify.yml @@ -30,9 +30,7 @@ pull_request_rules: # Unit tests - check-success=unit (3.12, 1.75, ubuntu-latest) - - check-success=unit (3.12, 1.75, macos-latest) - check-success=unit (3.13, 1.75, ubuntu-latest) - - check-success=unit (3.13, 1.75, macos-latest) - check-success=unit (3.14, 1.75, ubuntu-latest) - check-success=unit (3.14, 1.75, macos-latest) @@ -56,19 +54,13 @@ pull_request_rules: - check-success=e2e (3.13, 1.75, ci_config_suite, ubuntu-latest) - check-success=e2e (3.13, 1.75, ci_specialized_suite, ubuntu-latest) - check-success=e2e (3.13, 1.75, ci_workflow_suite, ubuntu-latest) - # Python 3.14 - Ubuntu + macOS (latest stable) + # Python 3.14 - Ubuntu only (macOS excluded) - check-success=e2e (3.14, 1.75, ci_bootstrap_parallel_suite, ubuntu-latest) - - check-success=e2e (3.14, 1.75, ci_bootstrap_parallel_suite, macos-latest) - check-success=e2e (3.14, 1.75, ci_bootstrap_suite, ubuntu-latest) - - check-success=e2e (3.14, 1.75, ci_bootstrap_suite, macos-latest) - check-success=e2e (3.14, 1.75, ci_build_suite, ubuntu-latest) - - check-success=e2e (3.14, 1.75, ci_build_suite, macos-latest) - check-success=e2e (3.14, 1.75, ci_config_suite, ubuntu-latest) - - check-success=e2e (3.14, 1.75, ci_config_suite, macos-latest) - check-success=e2e (3.14, 1.75, ci_specialized_suite, ubuntu-latest) - - check-success=e2e (3.14, 1.75, ci_specialized_suite, macos-latest) - check-success=e2e (3.14, 1.75, ci_workflow_suite, ubuntu-latest) - - check-success=e2e (3.14, 1.75, ci_workflow_suite, macos-latest) # At least 1 reviewer from maintainers - and: diff --git a/e2e/common.sh b/e2e/common.sh index 9f5a301d..a29ed18b 100644 --- a/e2e/common.sh +++ b/e2e/common.sh @@ -40,6 +40,7 @@ source "$(hatch env find e2e)/bin/activate" export FROMAGER_CONSTRAINTS_FILE="${SCRIPTDIR}/constraints.txt" OS=$(uname) +# CI runs e2e tests on Linux only; the macOS branch is for local runs. if [ "$OS" = "Darwin" ]; then NETWORK_ISOLATION="" # The tag comes back as something like "macosx-10.9-universal2" but the diff --git a/e2e/mergify_lint.py b/e2e/mergify_lint.py index 4319ee16..dcd50414 100644 --- a/e2e/mergify_lint.py +++ b/e2e/mergify_lint.py @@ -36,7 +36,6 @@ test_scripts = set(matrix["test-script"]) print("found test scripts:\n ", "\n ".join(sorted(test_scripts)), sep="") os_versions = list(sorted(matrix["os"])) -os_versions.remove("macos-latest") e2e_dir = pathlib.Path("e2e") # Look for CI suite scripts instead of individual test scripts @@ -106,18 +105,6 @@ os_versions, ) ) -# for macOS, only expect latest Python version and latest Rust version -expected_jobs.update( - set( - str(combo).replace("'", "") - for combo in itertools.product( - python_versions[-1:], - rust_versions[-1:], - test_scripts, - ["macos-latest"], - ) - ) -) if not expected_jobs.difference(existing_jobs): print("found rules for all expected jobs!") for job_name in sorted(expected_jobs.difference(existing_jobs)): diff --git a/e2e/test_build.sh b/e2e/test_build.sh index 8b96b062..19bde9a5 100755 --- a/e2e/test_build.sh +++ b/e2e/test_build.sh @@ -15,6 +15,7 @@ VERSION="5.2.0" pip install e2e/fromager_hooks OS=$(uname) +# CI runs e2e tests on Linux only; the macOS branch is for local runs. if [ "$OS" = "Darwin" ]; then NETWORK_ISOLATION="" else