Skip to content

ci: consume the ci-full label once its full run starts (GEN-031) - #4923

Merged
zackees merged 1 commit into
masterfrom
ci/gen031-consume-ci-full
Oct 26, 2026
Merged

zackees merged 1 commit into
masterfrom
ci/gen031-consume-ci-full

Conversation

@zackees

@zackees zackees commented Oct 26, 2026 •

Copy link
Copy Markdown
Member

Fixes GEN-031 clause 2 (forge-ci/ci.yml#476, see docs/policy-general.md "Full-matrix label budget").

Problem. ci-full gates 95 generated workflows that also trigger on synchronize, and nothing removes the label. Every push after labeling re-ran the full matrix.

Fix. This adds one job, consume-ci-full, to the existing ci-labels.yml. No new workflow file, and the generated board workflows are unchanged.

  • The job runs only on a labeled event for ci-full on a same-repo PR. It runs gh pr edit --remove-label ci-full with a job-scoped pull-requests: write, which is declared in ci.toml [allow.permissions].
  • The labeled event has already started the full run in every gated workflow. The removal is made with GITHUB_TOKEN, and GitHub starts no workflow runs from events that token creates, so the unlabeled event cannot cancel the running matrix through its concurrency group.
  • ci-labels.yml gets a cancel-in-progress concurrency group (clause 4 / WF-002). The consume event has its own group key, so a burst of label events cannot cancel the removal.
  • Fork PRs get a read-only token, but the gated jobs already refuse fork heads (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

  • Chores
    • The ci-full label is now automatically removed from same-repository pull requests after it is processed.
    • CI workflow runs on pull requests now use concurrency controls, which can cancel an in-progress run when a newer run starts. Other event runs are not cancelled by this setting.

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.
@coderabbitai

coderabbitai Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
Commits

Reviewing files that changed from the base of the PR and between c3cc64d and 26b752c.

Files selected for processing: 2
  • .github/workflows/ci-labels.yml
  • ci.toml

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 6 remain after this review.

Walkthrough

The CI label workflow now separates ci-full label events from other runs and consumes the label on same-repository pull requests. The job receives pull-request write permission to remove the label.

Changes: ci-full label consumption

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: Normal

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Possibly related issues

  • FastLED/FastLED#4543 — The workflow removes the ci-full label 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: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly and concisely describes the main change: consuming the ci-full label when the full run starts.
Docstring Coverage Passed 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…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@zackees
zackees merged commit 53425eb into master Oct 26, 2026
121 checks passed
@fastled-project-sync fastled-project-sync Bot moved this from Triage to Done in FastLED Tracker Oct 26, 2026
@zackees
zackees deleted the ci/gen031-consume-ci-full branch November 5, 2026 05:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant