Repository navigation
ci: Scope platform jobs by path alone; POSIX reaches Linux and macOS - #911
Merged
Merged
Conversation
Member
Author
Proof in real PR CI (probe PRs #912–#915, closed after reading)
A POSIX change starts macOS (Linux always runs). A macOS change starts only macOS, a Windows change only Windows, and a core file change runs on Linux only. Speed, from replaying the last 120 PR runs: PRs that start both native runners go from 92 to 58, saving about 25 native runner-minutes per affected PR (865 in total). Wall time is bounded by Linux Tier 2 (~13 min). |
11 of 15 tasks
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.
Refs #897, #847, #900. Replaces the content scanning from #898. Supersedes #902 (closed).
Policy (maintainer)
*-posix.c,unix/orlibobs/util/platform-nix.c(macOS builds it, seelibobs/cmake/os-macos.cmake) starts both.Change
ci/platform_paths.py:platforms(path)returns the set of platforms (linux/macos/windows) a path belongs to, orNonefor core. It is meant as the single definition for both the scoper and the ci: Ratchet platform conditionals in shared C/C++ files (#847) #900 lint. ci: Ratchet platform conditionals in shared C/C++ files (#847) #900 should import it instead of keeping its ownPLATFORM_TOKENS. Today they disagree onnix/posix: ci: Ratchet platform conditionals in shared C/C++ files (#847) #900 treats them as Linux-only.ci/ci_scope.py: path-only.ci/scope_content.pyis removed, with nogit diff -U0and no file reads. Atests.d/X.cmakeis shared only iftest/cmocka/X.cpp/.hppexists (ci: A new C++ cmocka test skips the macOS and Windows Tier 2 jobs that compile it #610). Every other registration is Linux-only.docs/ci-tooling.mdupdated.RED / GREEN
test_ci_scope.pyagainst a stubplatform_paths,FAILED (errors=10).Ran 11 tests ... OK,./lintok.Known gap until #847 lands
Core files that still have grandfathered platform conditionals (the #900 baseline, ~520 conditionals) now run on Linux only, even when an edit sits in an
#ifdef _WIN32block. Pushes and the merge queue are scoped the same way. Every platform still runs withci-full, on schedule, workflow_dispatch, tags and release branches, and in the release gate. The gap closes as #847 moves each block into platform files, and #900 stops new ones.