Repository navigation
ci: consume the ci-full label once its full run starts (GEN-031) - #4923
Conversation
ci-full gates 95 workflows that also trigger on synchronize, so a sticky label re-ran the full matrix on every push. A job in ci-labels.yml now removes ci-full on the labeled event that started the run. GITHUB_TOKEN events start no workflows, so the unlabeled event cannot cancel the run.
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Gate and consume ci-full label .github/workflows/ci-labels.yml, ci.toml |
The workflow adds concurrency groups and a job for matching ci-full label events on same-repository pull requests. The job removes the label and receives pull-request write permission. |
Priority:
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix
Possibly related issues
FastLED/FastLED#4543— The workflow removes theci-fulllabel after the matching event, which aligns with the issue’s stated objective of preventing repeated full-matrix runs on later pull request updates.
Merge Risk: 
Minimal · up to 26b75
-
The change removes the ci-full label after a labeled event on same-repository PRs so later pushes do not rerun the full matrix. No concrete merge-blocking defect remains after review.
Pre-merge checks: 
5
-
Full details: Docstring Coverage
-
Explanation
No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (2 skipped: 2 unsupported.)
-
Finishing Touches
-
🧪 Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Comment @coderabbitai help to get the list of available commands.
Fixes GEN-031 clause 2 (forge-ci/ci.yml#476, see docs/policy-general.md "Full-matrix label budget").
Problem.
ci-fullgates 95 generated workflows that also trigger onsynchronize, and nothing removes the label. Every push after labeling re-ran the full matrix.Fix. This adds one job,
consume-ci-full, to the existingci-labels.yml. No new workflow file, and the generated board workflows are unchanged.labeledevent forci-fullon a same-repo PR. It runsgh pr edit --remove-label ci-fullwith a job-scopedpull-requests: write, which is declared inci.toml[allow.permissions].labeledevent has already started the full run in every gated workflow. The removal is made withGITHUB_TOKEN, and GitHub starts no workflow runs from events that token creates, so theunlabeledevent cannot cancel the running matrix through its concurrency group.ci-labels.ymlgets a cancel-in-progressconcurrencygroup (clause 4 / WF-002). The consume event has its own group key, so a burst of label events cannot cancel the removal.head.repo.full_name == github.repository), so no full run starts on a fork and the job is skipped there.Re-add the label to request another full run (GEN-031 clause 3: at most two per PR).
Verification.
ci-lint precheck --local(forge-ci/ci.yml main): GEN-031 goes from 1 violation to 0, and there are no new findings.bash ci-labels check: 0 updated.Summary by CodeRabbit
ci-fulllabel is now automatically removed from same-repository pull requests after it is processed.