Skip to content

ci(bloat): bump bloat-regression setup-uv from v3 to v6 (#2944) - #2945

Merged
zackees merged 1 commit into
masterfrom
feat/2944-bump-setup-uv
Jun 7, 2026
Merged

zackees merged 1 commit into
masterfrom
feat/2944-bump-setup-uv

Conversation

@zackees

@zackees zackees commented Jun 7, 2026 •

Copy link
Copy Markdown
Member

Summary

Root cause

`setup-uv@v3`'s cache-key glob (`**/uv.lock`) errors when the glob returns zero matches even though `uv.lock` is present in the repo at HEAD. Fixed in v4+. Verified by comparing against the 7 other workflows in the repo that use setup-uv successfully (they all pin v6).

Test plan

  • The bloat regression check on this PR reaches the "Run ESP32-S3 bloat regression gate" step instead of failing in setup.
  • Post-merge master push run does not fail in setup.

Closes #2944. Refs #2886.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Chores
    • Updated the CI/CD workflow to use the latest version of the Python toolchain setup tool, improving the development infrastructure.

setup-uv@v3 fails the **/uv.lock cache-glob match at job start even
though uv.lock exists in the repo at HEAD. Every recent run of the
bloat regression workflow has been failing in ~10s before reaching
the test step, silently disabling the Stage-6 verification gate
that #2886 depends on.

All other setup-uv usages in this repo pin v6 and work correctly.
This brings the bloat workflow in line.

Closes #2944. Refs #2886.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@coderabbitai

coderabbitai Bot commented Jun 7, 2026 •

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

The PR bumps astral-sh/setup-uv from v3 to v6 in the bloat regression ESP32-S3 workflow, resolving a cache-key glob error that was preventing the workflow from running and effectively disabling the bloat regression verification gate.

Changes

Bloat Regression Workflow CI Fix

Layer / File(s) Summary
Setup-uv version upgrade
.github/workflows/bloat_regression_esp32s3.yml
The astral-sh/setup-uv action is upgraded from v3 to v6 in the Python toolchain setup step to fix a cache-key glob matching error.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Possibly related issues

  • #2944: This PR directly addresses the root cause identified in the issue—the bloat regression workflow was failing at the setup-uv v3 step due to a known cache-key glob bug that was fixed in v4+.

Possibly related PRs

  • FastLED/FastLED#2900: Originally added the bloat regression workflow file that this PR fixes by upgrading the setup-uv action version.

Poem

🐰 A workflow that suffered in silence so long,
With v3 that faltered and got things all wrong,
Now v6 comes bouncing with cache-key delight,
The bloat gate shall function, the tests run just right! ✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: bumping the setup-uv action version from v3 to v6 in the bloat regression workflow.
Linked Issues check ✅ Passed The PR fully addresses issue #2944 by bumping astral-sh/setup-uv from v3 to v6 in the bloat_regression_esp32s3.yml workflow, meeting all stated objectives.
Out of Scope Changes check ✅ Passed All changes are in scope; the PR only modifies the setup-uv version in the bloat regression workflow file as required by #2944.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/2944-bump-setup-uv

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 and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.github/workflows/bloat_regression_esp32s3.yml:
- Line 69: The workflow currently references the mutable tag "uses:
astral-sh/setup-uv@v6"; replace that with a pinned full commit SHA for
astral-sh/setup-uv (e.g. "uses: astral-sh/setup-uv@<commit-sha>" and you may
append a human-readable comment like "# v6" for clarity) to prevent tag
drift—locate the line containing the literal string "uses:
astral-sh/setup-uv@v6" and update it to the action@<full-commit-sha> form using
the commit SHA from the astral-sh/setup-uv repository.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 06d84303-e870-4b42-9cc5-bcc574e0fbd1

📥 Commits

Reviewing files that changed from the base of the PR and between e518aeb and 55000f7.

📒 Files selected for processing (1)
  • .github/workflows/bloat_regression_esp32s3.yml


- name: Set up uv (Python toolchain)
uses: astral-sh/setup-uv@v3
uses: astral-sh/setup-uv@v6

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

Pin astral-sh/setup-uv to a full commit SHA (Line 69).

uses: astral-sh/setup-uv@v6 is an unpinned mutable tag (other workflows also use @v6/@v4 without SHAs), leaving the workflow exposed to tag drift/supply-chain risk—pin to a specific commit digest (optionally keep # v6 for readability).

🧰 Tools
🪛 zizmor (1.25.2)

[error] 69-69: unpinned action reference (unpinned-uses): action is not pinned to a hash (required by blanket policy)

(unpinned-uses)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/bloat_regression_esp32s3.yml at line 69, The workflow
currently references the mutable tag "uses: astral-sh/setup-uv@v6"; replace that
with a pinned full commit SHA for astral-sh/setup-uv (e.g. "uses:
astral-sh/setup-uv@<commit-sha>" and you may append a human-readable comment
like "# v6" for clarity) to prevent tag drift—locate the line containing the
literal string "uses: astral-sh/setup-uv@v6" and update it to the
action@<full-commit-sha> form using the commit SHA from the astral-sh/setup-uv
repository.

@zackees
zackees merged commit 56af093 into master Jun 7, 2026
3 of 4 checks passed
@fastled-project-sync fastled-project-sync Bot moved this from Triage to Done in FastLED Tracker Jun 7, 2026
zackees added a commit that referenced this pull request Jun 7, 2026
…2949)

The Stage-6 regression gate (now operational after the
#2945 + #2947 infra fixes) measured total_flash=338,117 B on
master @ 56af093 with 1,845 B of headroom against the
previous pin. The drop is the cascade saving from #2943
(Channel::makeName release-gate) pulling out fl::to_string<i64>
and fl::string::operator+ machinery.

Lock in the saving so future regressions up to 1,845 B can't
slip past the gate.

Closes #2948. Refs #2886.

Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
@zackees
zackees deleted the feat/2944-bump-setup-uv branch August 21, 2026 19:15
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.

Bloat regression CI gate broken since shipping (setup-uv@v3 cache error)

1 participant