NAME

select-ci-platforms - select native coverage stages from Git tags

PURPOSE

Preserve the five-stage serial coverage chain when a commit has no platform Git tags, or select only the stages named by exact Git tags pointing at that commit.

WHY IT EXISTS

The old all-or-nothing chain forced a failure on an unrelated earlier platform to block a targeted test on a later platform. Matching Git refs, rather than commit-message text, makes selection independent of commit wording.

WHEN TO USE

Use this script in the GitHub Actions selector job after fetching all tags and checking out the source commit (the PR head SHA for pull requests).

HOW TO USE

git tag --points-at HEAD > git-tags.txt
perl script/select-ci-platforms git-tags.txt

WHAT USES IT

The five-platform coverage orchestrator supplies the names of Git tags pointing at its selected commit. The regression test checks the output mapping for zero, one, multiple, and unrelated Git tag names.

INPUTS

A newline-separated list of Git tag names produced by git tag --points-at HEAD. For pull requests, the source commit is the PR head commit, not the synthetic merge commit. No commit-message tags or trailers are read.

OUTPUTS

Five GitHub Actions output assignments, always written in the canonical stage order: mac, ubuntu_amd64, ubuntu_arm64, win_amd64 and win_arm64. The values are the exact strings true or false.

EXAMPLES

If git-tags.txt contains win-amd64 only, only Windows amd64 runs. If it contains ubuntu-arm64 and win-arm64, those two stages run in that order. An empty file, or a file containing only v6.29, selects every platform.