Skip to content

Fix Stale Setup, Flashing, and sdkconfig Details in OPERATIONS.md - #226

Merged
ptr727 merged 3 commits into
developfrom
operations-md-fixes
Oct 15, 2026
Merged

ptr727 merged 3 commits into
developfrom
operations-md-fixes

Conversation

@ptr727

@ptr727 ptr727 commented Oct 15, 2026 •

Copy link
Copy Markdown
Owner

Fixes stale details in OPERATIONS.md, addressing #220, #221, and #222. The develop -> main promotion PR carries the closing keywords.

Changes

Verification

  • Re-check the sdkconfig clean-build claim in OPERATIONS.md on ESPHome 2026.9.1 #220, ESPHome 2026.9.1 image, native ESP-IDF toolchain, a minimal esp32s3 config: compiled with esp32_ble: max_connections: 3, changed it to 5, then ran an incremental esphome compile with no clean. The build ran a cmake reconfigure, and CONFIG_BT_ACL_CONNECTIONS went from 4 to 6 in both sdkconfig.<name> and build/config/sdkconfig.h. The PlatformIO path was not run. Its claim rests on _write_sdkconfig calling clean_build itself off the ESP-IDF toolchain.
  • Generate the secrets.yaml key with a declared host tool instead of openssl #221 and Fix three stale details in OPERATIONS.md setup and flashing steps #222 item 3: ran the edited guard block with openssl absent from PATH. It wrote a 0600 secrets.yaml whose key decodes to 32 bytes, left no temporary file, and a rerun left the file alone. Also ran the edited CI step's script against a copy of secrets._yaml: the placeholder was replaced.
  • Prose gate at the workflow's pinned hub version, plus sentence-length, markdownlint, editorconfig-checker, and actionlint all pass locally.
  • A local strict review raised four findings: the stale task comment, the CI generator drift, a past-tense sentence, and two long sentences. All four are fixed in 911ce8a, and a second pass raised none.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Documentation
    • Updated development setup instructions to use ESPHome Device Builder.
    • Clarified firmware file locations and how incremental builds apply configuration changes.
    • Revised CI-parity build guidance and updated links to the Device Builder.
  • Chores
    • Updated automated test setup to generate encryption keys using Python.

ptr727 and others added 2 commits October 14, 2026 18:48
- Replace the removed `esphome dashboard` step with Device Builder.
- Name the missing firmware file after the node name, per toolchain.
- Reword the sdkconfig bullet, since an incremental compile picks up
  an sdkconfig change on ESPHome 2026.9.1.
- Generate the secrets.yaml key with python3 instead of openssl, and
  keep the guard's temporary file beside its destination.

Closes #220, closes #221, closes #222.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
- Generate the CI dummy key with python3, the same idiom the guard uses.
- Drop the Clean task comment repeating the retracted sdkconfig claim.
- Split two long sentences and put the dashboard note in present tense.

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

ptr727 commented Oct 15, 2026

Copy link
Copy Markdown
Owner Author

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

@coderabbitai

coderabbitai Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: c93f1745-1147-4a3b-b68b-430609ed66a9
📥 Commits

Reviewing files that changed from the base of the PR and between 36541f1 and aa2a734.

📒 Files selected for processing: 4
  • .github/workflows/test-pull-request.yml
  • .vscode/tasks.json
  • OPERATIONS.md
  • secrets._yaml
💤 Files with no reviewable changes: 1
  • .vscode/tasks.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.

📝 Walkthrough

The changes update Python-based generation of the 32-byte secrets key in the workflow and documentation. They revise firmware artifact and sdkconfig guidance, remove a VSCode task comment about clean builds, and replace dashboard setup instructions with ESPHome Device Builder instructions.

Changes: Build and setup guidance

Layer / File(s) Summary
Random key generation
.github/workflows/test-pull-request.yml, OPERATIONS.md, secrets._yaml
The workflow and documentation generate a base64-encoded 32-byte key with Python. The temporary secrets file is created in the checkout directory.
Firmware and incremental compile guidance
OPERATIONS.md, .vscode/tasks.json
The firmware artifact guidance uses the node’s esphome: name. The documentation identifies sdkconfig locations and states that incremental compilation applies sdkconfig changes. The VSCode task comment about cleaning before incremental compilation is removed.
ESPHome Device Builder setup
OPERATIONS.md
The setup instructions replace the dashboard command and localhost link with instructions and a link for ESPHome Device Builder.

Priority: ⬇️ Low

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

Change: Other

Pre-merge checks: Passed 5
Passed 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 clearly summarizes the main change: correcting setup, flashing, and sdkconfig guidance in OPERATIONS.md.
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.
✨ 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.

@codecov

codecov Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 43.07%. Comparing base (36541f1) to head (aa2a734).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #226   +/-   ##
========================================
  Coverage    43.07%   43.07%           
========================================
  Files            1        1           
  Lines          130      130           
========================================
  Hits            56       56           
  Misses          74       74           
Flag Coverage Δ
python-3.13 43.07% <ø> (ø)

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

The only remaining finding is a minor documentation wording nit; no blocking issues were identified.

1 open finding
What changed in this PR

Updates ESPHome setup, flashing, sdkconfig, and secret-generation guidance for current tooling.

Changes:

  • Replaces dashboard instructions with Device Builder guidance.
  • Corrects firmware paths and incremental sdkconfig behavior.
  • Uses Python-based key generation and safer temporary-file handling.
File Summary
secrets._yaml Updates key-generation guidance.
OPERATIONS.md Corrects setup, flashing, sdkconfig, and secrets instructions; retains one minor wording nit.
.vscode/​tasks.json Removes stale clean-build guidance.
.github/​workflows/​test-pull-request.yml Generates CI secrets without OpenSSL.

🧠 Review effort: Lite


💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread OPERATIONS.md Resolved
@ptr727

ptr727 commented Oct 15, 2026

Copy link
Copy Markdown
Owner Author

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

@ptr727
ptr727 merged commit 78c6e79 into develop Oct 15, 2026
35 checks passed
@ptr727
ptr727 deleted the operations-md-fixes branch October 15, 2026 02:13
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