Skip to content

Document That an Allowed ESPHome Warning Exits the Lint at 0 - #284

Merged
ptr727 merged 2 commits into
developfrom
fix/promotion-283-findings
Oct 30, 2026
Merged

ptr727 merged 2 commits into
developfrom
fix/promotion-283-findings

Conversation

@ptr727

@ptr727 ptr727 commented Oct 30, 2026 •

Copy link
Copy Markdown
Owner

Answers the documentation finding Copilot raised on the #283 promotion.

  • OPERATIONS.md "Compile Lint": the Exit status bullet now says 1 also covers an ESPHome warning the allow list does not let through. Before, it named only findings in this repository's code.
  • tools/compile-lint/src/compile_lint/lint.py: the module docstring says the same. It used to say any ESPHome warning exits 1, which an allowed one does not.

Verified: 60 compile-lint tests pass, ruff is clean, and the prose gate passes on the changed lines. The local strict review's second pass found nothing.

The other two #283 findings were declined in their threads with evidence and need no change here.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Documentation
    • Clarified that Compile Lint returns status 1 for findings in owned code or ESPHome warnings not permitted by the allow list.

ptr727 and others added 2 commits October 29, 2026 20:20
The compile step pasted the matrix config path, a file name from the pull request, into its bash -c script text.
It now reaches the container as the CONFIG environment variable and is expanded quoted.
OPERATIONS.md "Compile Lint" now says exit status 1 also covers an ESPHome warning the allow list does not let through.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…nces

The env indirection for the matrix config path guarded nothing, since a pull_request run executes the author's own workflow file with a read-only token.
The OPERATIONS.md "Compile Lint" exit status bullet is split under the sentence-length limit.
The lint's docstring now says an ESPHome warning exits 1 only when the allow list does not let it through.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Copilot AI lite review requested due to automatic review settings October 30, 2026 03:25
@ptr727

ptr727 commented Oct 30, 2026

Copy link
Copy Markdown
Owner Author

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

@coderabbitai

coderabbitai Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Walkthrough

The Compile Lint exit-status descriptions now state that an ESPHome warning produces status 1 when the allow list does not permit it. The documented statuses for no findings and when lint cannot run remain unchanged.

Changes: Compile Lint documentation

Layer / File(s) Summary
Document exit-status condition
tools/compile-lint/src/compile_lint/lint.py, OPERATIONS.md
Both descriptions specify that an ESPHome warning produces status 1 when the allow list does not permit it.

Priority: Low

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

Change: Other

Possibly related issues

Possibly related PRs

Merge Risk: Minimal · up to 1a8fd

The documentation accurately describes the warning and allow-list exit behavior, with no identified merge-blocking risk.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Title check Warning The title says the PR documents that an allowed ESPHome warning exits the lint at 0. The changeset does the opposite. It documents that an ESPHome warning not permitted by the allow list exits with st… Retitle the PR to match the change. For example: "Document That a Non-Allowed ESPHome Warning Exits the Lint at 1". The title must name status 1 for warnings the allow list does not permit, not status 0 for allowed warnings.
Passed Passed checks: 4 passed
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
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 eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 1 files. (1 skipped: 1 unsupported.)

Full details: Title check

Explanation

The title says the PR documents that an allowed ESPHome warning exits the lint at 0. The changeset does the opposite. It documents that an ESPHome warning not permitted by the allow list exits with status 1, and it corrects the earlier text that said any ESPHome warning causes status 1. The title is therefore misleading about the direction of the change and the exit status it describes. It also refers to a real subject of the change, so it is not unrelated.

Resolution

Retitle the PR to match the change. For example: "Document That a Non-Allowed ESPHome Warning Exits the Lint at 1". The title must name status 1 for warnings the allow list does not permit, not status 0 for allowed warnings.

Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 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.

@codecov

codecov Bot commented Oct 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.89%. Comparing base (8eec435) to head (1a8fd22).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #284   +/-   ##
========================================
  Coverage    85.89%   85.89%           
========================================
  Files            3        3           
  Lines          695      695           
========================================
  Hits           597      597           
  Misses          98       98           
Flag Coverage Δ
python-3.13 85.89% <ø> (ø)

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.

Copilot AI 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.

🟢 Approval recommended

No active review issues remain, and the change only updates the exit-status description in the docs and the module docstring to cover ESPHome warnings the allow list does not permit.

No open issues 🎉

What changed in this PR

This PR fixes a documentation gap in the compile-lint exit status. An ESPHome warning that the allow list does not permit now makes the lint exit 1. The docs previously said 1 covered only findings in this repository's code. The change answers a documentation finding raised on the #283 promotion.

Changes:

  • OPERATIONS.md "Compile Lint": the Exit status bullet now says exit 1 also covers an ESPHome warning the allow list does not let through.
  • tools/compile-lint/src/compile_lint/lint.py: the module docstring states the same exit-status rule, replacing the old "any ESPHome warning exits 1" wording.
File Description
tools/​compile-lint/​src/​compile_lint/​lint.py Module docstring now says exit 1 covers owned-code findings and ESPHome warnings not on the allow list.
OPERATIONS.md Exit status bullet now says exit 1 also covers ESPHome warnings the allow list does not let through.

Review effort: Lite

@ptr727
ptr727 merged commit 91ca6bd into develop Oct 30, 2026
46 checks passed
@ptr727
ptr727 deleted the fix/promotion-283-findings branch October 30, 2026 03:30
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