From 1d40298e6316dbd173e5912b18dbb885992bc0db Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Sat, 25 Jul 2026 14:12:04 -0700 Subject: [PATCH] Revert "Run docs snippets only on macOS and Ubuntu in CI" This reverts commit 0bdb6f116c89cbe92426a1bac2a4f383587ec98f. --- docs/test_codeblocks_manifest.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/docs/test_codeblocks_manifest.py b/docs/test_codeblocks_manifest.py index 1f5a2814..03c9b14e 100644 --- a/docs/test_codeblocks_manifest.py +++ b/docs/test_codeblocks_manifest.py @@ -34,7 +34,6 @@ ENVIRONMENT_RUNNERS = { "freebsd": "ubuntu-24.04", "openbsd": "ubuntu-24.04", } -CI_ENVIRONMENTS = {"ubuntu", "macos"} SCENARIOS = {"project", "collection", "system", "system-data", "docker", "docker-data"} FENCE_START = re.compile(r"^(?P[ \t]*)(?P`{3,}|~{3,})[ \t]*(?P[^\n]*)$") HTML_PRE = re.compile( @@ -275,7 +274,6 @@ def matrix() -> dict[str, list[dict[str, str]]]: snippets = validate_all() records = load_manifest() environments = {records[snippet.id]["environment"] for snippet in snippets if records[snippet.id]["disposition"] == "run"} - ci_environments = environments.intersection(CI_ENVIRONMENTS) include = [ { "name": environment, @@ -283,14 +281,12 @@ def matrix() -> dict[str, list[dict[str, str]]]: "runner": ENVIRONMENT_RUNNERS[environment], } for environment in ENVIRONMENT_RUNNERS - if environment in ci_environments + if environment in environments ] assigned_ids = [snippet.id for snippet in snippets if records[snippet.id]["disposition"] == "run"] assert include, "At least one deterministic documentation example must run in CI" assert len(set(assigned_ids)) == len(assigned_ids) - assert {entry["environment"] for entry in include} == ci_environments, ( - "Every selected CI documentation environment must have exactly one lane" - ) + assert {entry["environment"] for entry in include} == environments, "Every runnable snippet environment must have exactly one CI lane" return {"include": include}