Skip to content

Promote Develop to Main: Codegen uv Setup and HolidayLights Python - #4657

Merged
ptr727 merged 3 commits into
mainfrom
develop
Dec 6, 2026
Merged

ptr727 merged 3 commits into
mainfrom
develop

Conversation

@ptr727

@ptr727 ptr727 commented Dec 6, 2026 •

Copy link
Copy Markdown
Owner

Promoted pull requests

Closes #4641

Promotion review findings

  • Local strict review against main on 23478c5, run-codegen-pull-request-task.yml:66: once uv is installed, the caller's pre-commit prose gate runs over the bot commit, so a generator emitting an added or edited comment line would abort it. Declined: the gate reads only lines the commit adds or edits. LanguageTags' generated C# carries a fixed set of 7 /// summary lines in two of its four *DataGen.cs files, and a data refresh edits none of them. NxWitness generates only Make/Version.json and Make/Matrix.json. A generator template change arrives by a human pull request, whose own commit runs the same hook. The bot-commit hook was kept on deliberately, the first fix The Codegen Task Fails When the Carried Pre-Commit Hook Needs uv #4641 offers.

🤖 Generated with Claude Code

ptr727 and others added 2 commits December 6, 2026 12:00
…4646)

## Summary

HolidayLights is getting a lint-only Python root, with a `tests/` suite
and a Codecov upload, in ptr727/HolidayLights#84. That pull request
passes `CODECOV_TOKEN` to the hub validator, but the registry entry
required no secrets, so `configure.sh apply` never provisioned the
token.

- `requiredSecrets` now lists `CODECOV_TOKEN`, so the resolver owes it
in both the actions and dependabot stores, read from the
repository-scoped `~/.secrets/` file.
- The `python` type and `pythonDirectories ["."]` are recorded as a
planned drift note rather than declared. HolidayLights `main` and
`develop` hold no Python until #84 lands, so declaring them now would
make an audit report the type's files missing. This follows the
EspDinIoT entry's precedent.

## Verification

- `spec/validate.py` passes.
- `spec/resolve_secrets.py names` for HolidayLights resolves
`CODECOV_TOKEN`, `CODEGEN_APP_CLIENT_ID`, and `CODEGEN_APP_PRIVATE_KEY`
in both stores.
- With the maintainer's go-ahead, `repo-config/configure.sh apply
ptr727/HolidayLights operational` ran from this branch, whose
repo-config tooling is identical to `main`'s. It set all three secrets
in both stores, and `configure.sh check` exits 0 with every secrets line
`ok`.
- Two local strict review passes ran. The first found the premature type
declaration, which the second commit fixes, and the second found
nothing.

🤖 Generated with [Claude Code](https://claude.com/claude-code)


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

<!-- coderabbit-ai-generated:v1 -->

## Summary by CodeRabbit

* **Documentation**
* Updated the HolidayLights registry entry to require a Codecov token
and reflect planned project updates.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
## Summary

Fixes the codegen task failure in #4641.
`run-codegen-pull-request-task.yml` runs `dotnet husky install` in its
format step, so the caller's carried `.husky/pre-commit` runs when
`peter-evans/create-pull-request` commits. That hook runs the prose
gate, and `hub_fetch_run.py`, through uv. The task never installed uv,
so every codegen run failed with `uv: not found` and opened no pull
request.

- Adds the pinned `astral-sh/setup-uv` step (the same SHA
`validate-task.yml` uses) before the format step, at Python 3.13, the
floor `prose_lint.py` declares. `ignore-nothing-to-cache: true` covers a
run where codegen changes nothing, the hook never runs, and the cache
stays empty.
- Updates the task's description in `docs/reusable-workflows.md`.

Refs #4641. The closing keyword goes on the develop -> main promotion.

## Verification

- Prose gate (diff-scoped, comments allowed), actionlint, and the eol
check pass.
- `tests/test_release_guards`, `tests/test_repo_gate`,
`tests/test_audit_helpers`: 490 tests pass.
- Local strict review at the `frontier` tier: no findings.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings December 6, 2026 21:23
@coderabbitai

coderabbitai Bot commented Dec 6, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 15 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between ac58eec and 23478c5.

Files selected for processing: 5

  • .github/workflows/run-codegen-pull-request-task.yml
  • docs/eol-lf-rollout.md
  • docs/pre-commit-hooks-rollout.md
  • docs/reusable-workflows.md
  • registry/repos.json
  • 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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues are identified in the documented uv setup and Codecov secret provisioning changes.

No open issues 🎉

What changed in this PR

Promotes codegen uv setup and HolidayLights Codecov secret provisioning to main.

Changes:

  • Installs uv before codegen formatting and pull request commits.
  • Documents the uv dependency.
  • Adds HolidayLights' Codecov token requirement and planned Python drift note.
File Description
registry/​repos.json Adds HolidayLights' required Codecov token and records its planned Python type as a drift note.
docs/​reusable-workflows.md Documents the uv dependency for codegen workflow hook execution.
.github/​workflows/​run-codegen-pull-request-task.yml Adds pinned uv setup before code formatting and pull request creation.

Review effort: Lite

@codecov

codecov Bot commented Dec 6, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.47%. Comparing base (d531ca3) to head (23478c5).
⚠️ Report is 542 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4657   +/-   ##
=======================================
  Coverage   78.47%   78.47%           
=======================================
  Files          58       58           
  Lines       17873    17873           
=======================================
  Hits        14026    14026           
  Misses       3847     3847           
Flag Coverage Δ
python-3.13 78.47% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Declares HolidayLights as `python` in the registry now that its `main`
carries the lint-only Python tool, its tests, and the Codecov upload
(ptr727/HolidayLights#84, #86, promoted in #87).

- `registry/repos.json`: adds the `python` type and `pythonDirectories:
["."]`, keeps `CODECOV_TOKEN` (from #4646), and drops #4646's "Planned"
drift note now that this change does what it planned. Rewrites the
show-folder note so `FPP/` is the committed provisioning config the
Python tool pulls and diffs, with `apply` planned
(ptr727/HolidayLights#79). Rewrites the line-ending note, since
ptr727/HolidayLights@e031f34 dropped the CRLF pin.
- `docs/eol-lf-rollout.md`: records the dropped pin on the HolidayLights
row.
- `docs/pre-commit-hooks-rollout.md`: lists HolidayLights as `python`,
owed the `pre-commit` framework plus doc gates.

## Earlier Local-Pass Findings, Cleared Outside This Branch

An earlier local pass, over the same content before the rebase onto
#4646, raised two findings. Both were cleared outside this branch:

- The registry's ground truth is HolidayLights `main`, which did not yet
carry the Python tool. Cleared by ptr727/HolidayLights#87, which
promoted it to `main`.
- HolidayLights' release workflow called the validator without
`python-directories`. Cleared by ptr727/HolidayLights#86.

🤖 Generated with [Claude Code](https://claude.com/claude-code)


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

<!-- coderabbit-ai-generated:v1 -->

## Summary by CodeRabbit

* **Documentation**
* Updated the HolidayLights setup notes to reflect its Python tooling
and pre-commit checks.
* Clarified that its effects preset file uses LF line endings, with no
CRLF exception.
* Updated repository registry details for the Python directory and
tracked provisioning configuration.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
@ptr727

ptr727 commented Dec 6, 2026

Copy link
Copy Markdown
Owner Author

@coderabbitai review

@ptr727

ptr727 commented Dec 6, 2026

Copy link
Copy Markdown
Owner Author

/review

@coderabbitai

coderabbitai Bot commented Dec 6, 2026 •

Copy link
Copy Markdown
Action not completed

Review rate limited. More included reviews will be available in 16 minutes.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@ptr727 ptr727 changed the title Promote Develop to Main: Codegen uv Setup and HolidayLights Codecov Token Promote Develop to Main: Codegen uv Setup and HolidayLights Codecov Dec 6, 2026
@ptr727 ptr727 changed the title Promote Develop to Main: Codegen uv Setup and HolidayLights Codecov Promote Develop to Main: Codegen uv Setup and HolidayLights Python Dec 6, 2026
@ptr727

ptr727 commented Dec 6, 2026

Copy link
Copy Markdown
Owner Author

A recorded local strict-review pass covers head 23478c5fbda128bd62eba03e670d739b4b3f1b81, the content this pull request carries at that commit against main, and it recorded 1 finding.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues were identified in the supplied evidence.

No open issues 🎉

Review effort: Lite

@ptr727
ptr727 merged commit 8cd5eef into main Dec 6, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The Codegen Task Fails When the Carried Pre-Commit Hook Needs uv

2 participants