Skip to content

Require a Codecov Token for HolidayLights Ahead of Its Python Tests - #4646

Merged
ptr727 merged 2 commits into
developfrom
feature/holidaylights-python-codecov
Dec 6, 2026
Merged

ptr727 merged 2 commits into
developfrom
feature/holidaylights-python-codecov

Conversation

@ptr727

@ptr727 ptr727 commented Dec 6, 2026 •

Copy link
Copy Markdown
Owner

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 Fix pre-release badges (#83) and develop ruleset auto-merge stall (#82) #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

Summary by CodeRabbit

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

ptr727 and others added 2 commits December 6, 2026 11:27
HolidayLights#84 adds a lint-only Python root with a tests/ suite and a
Codecov upload, so the registry entry gains the python type,
pythonDirectories ["."] to match the caller's python-directories input,
and CODECOV_TOKEN in requiredSecrets so configure.sh apply provisions it
in both stores. The drift note now says FPP/ holds the pulled controller
configuration rather than local backups.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
HolidayLights main and develop hold no Python yet, since #84 is still
open, so declaring the type now would make an audit report its files
missing. Keep CODECOV_TOKEN in requiredSecrets, which provisions the
token on its own, and record the type as planned, as EspDinIoT does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings December 6, 2026 19:31
@ptr727

ptr727 commented Dec 6, 2026

Copy link
Copy Markdown
Owner Author

A recorded local strict-review pass covers head 92000ac18ee019baaa077fb613759c54398ee579, the content this pull request carries at that commit against develop, and it recorded 0 findings.

@coderabbitai

coderabbitai Bot commented Dec 6, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The HolidayLights registry entry now requires CODECOV_TOKEN. Its drift notes record a planned Python root, tests, Codecov upload, and an update to the FPP/ note when issue #84 lands. The planned rename note remains.

Changes: HolidayLights registry

Layer / File(s) Summary
Secret requirement and drift notes
registry/repos.json
The entry now lists CODECOV_TOKEN as a required secret. Its drift notes add planned Python root, tests, and Codecov upload, and retain the existing planned rename note.

Estimated code review effort: 1 (Trivial) | ~4 minutes

Possibly related PRs

Merge Risk: Minimal · up to 92000

This registry update requires the Codecov token for HolidayLights and records planned Python drift. No actionable merge risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title states the main change: HolidayLights now requires a CODECOV_TOKEN secret. The changeset makes that change in registry/repos.json, and the PR objectives confirm it. The phrase about Python t…
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: Title check

Explanation

The title states the main change: HolidayLights now requires a CODECOV_TOKEN secret. The changeset makes that change in registry/repos.json, and the PR objectives confirm it. The phrase about Python tests refers to planned drift recorded in the same file, not a Python change, so it is a minor aspect of the title and not a mismatch.

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

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between d531ca3 and 92000ac.

Files selected for processing: 1

  • registry/repos.json

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

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 remain, and the metadata updates are limited to the required Codecov secret and planned Python coverage context.

No open issues 🎉

What changed in this PR

Updates HolidayLights registry metadata to provision its Codecov token ahead of planned Python test integration.

Changes:

  • Adds CODECOV_TOKEN as a required secret.
  • Records planned Python support as drift-note context without declaring it prematurely.
File Description
registry/​repos.json Updates HolidayLights' required secrets and planned Python coverage drift notes.

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 (92000ac).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #4646   +/-   ##
========================================
  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.

@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 performed

Review finished.

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 merged commit b512351 into develop Dec 6, 2026
18 checks passed
@ptr727
ptr727 deleted the feature/holidaylights-python-codecov branch December 6, 2026 20:00
ptr727 added a commit that referenced this pull request Dec 6, 2026
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 added a commit that referenced this pull request Dec 6, 2026
…4657)

## Promoted pull requests

- #4656: Set up uv in `run-codegen-pull-request-task.yml` before its
format step, so a caller's carried pre-commit hook can run the prose
gate through uv when the pull request step commits. Every codegen run in
a repository carrying the current hook failed with `uv: not found` and
opened no pull request.
- #4646: Require `CODECOV_TOKEN` for HolidayLights in
`registry/repos.json` ahead of its Python tests, and record its planned
`python` type as a drift note.
- #4654: Declare HolidayLights as `python` with `pythonDirectories:
["."]` now that its `main` carries the Python tool and tests, drop
#4646's planned-drift note, and record its dropped CRLF pin in
`docs/eol-lf-rollout.md`.

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 #4641 offers.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
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.

2 participants