Repository navigation
Make OPERATIONS.md Independent of How ESPHome Runs - #223
Conversation
A copy of this repository is used from the dashboard's container, from a throwaway container, or through uvx on a development box with a board on USB. The commands now take one form, with a new "Running the ESPHome CLI" section that states the three routes once, how each pins the dashboard's version, and where each keeps ESPHome's data directory. Container-only paths and the docker exec logs hazard are scoped to the routes they belong to. "Framework and Platform Versions" now describes the native esp-idf toolchain that ESP32 builds use by default in 2026.9.1, where platform_version is dropped and platformio_options are ignored. Closes #217 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Scope the throwaway container to checkouts other than the dashboard's copy, keep log captures in the ignored logs/ directory, pin esptool through the esphome release, and say where the ESP-IDF toolchain lives on each route. State which platformio_options the native toolchain still applies, what version means for the arduino framework, and that platform_version needs an exact version under the PlatformIO toolchain. Note that the ESPHome CLI also reaches a host through uvx in host-tools.json. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Name the build tree by the node name beside the YAML, say when ccache is used and that esphome clean-all deletes the toolchain cache, correct build_unflags on the native ESP-IDF toolchain, add nRF52, and carry the CI-parity exception into the pinning rule. Use mktemp without a fixed /tmp path, and name the pinned venv in host-tools.json. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
A recorded local strict-review pass covers head |
|
Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configuration
📒 Files selected for processing: 2
✨ Finishing Touches
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. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #223 +/- ##
========================================
Coverage 43.07% 43.07%
========================================
Files 1 1
Lines 130 130
========================================
Hits 56 56
Misses 74 74
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved correctness, safety, and host-tool findings remain.
5 open findings
What changed in this PR
Updates ESPHome operations documentation to support multiple execution environments and refreshes toolchain guidance.
Changes:
- Documents container,
uvx, and pinned virtual-environment workflows. - Revises cache, logging, secrets, framework, and platform guidance.
- Updates host-tool documentation for supported CLI routes.
| File | Description |
|---|---|
OPERATIONS.md |
Adds host-independent ESPHome procedures and toolchain documentation. |
host-tools.json |
Documents tools covering supported CLI routes. |
🧠 Review effort: Lite
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
State what esphome clean-all deletes and which data directories it empties, limit the secrets guard to checkouts, say the PlatformIO toolchains are scheduled for removal rather than removed, and record the checked docker run logs behavior: a timeout inside the container exits 124 and leaves nothing running, while one outside it leaves the container running. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Describe esphome clean-all by what it costs rather than by every path it visits, add --rm to the docker run logs example and say how to stop a leftover container, and call the dashboard's copy something other than a checkout where the routes are listed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
A recorded local strict-review pass covers head |
Say that esphome clean-all empties the data directory of each config it reaches, so the patched-component note that links to it stays accurate, and limit the early-closing pipe note to docker exec, the case it describes. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
A recorded local strict-review pass covers head |


Summary
OPERATIONS.mdno longer assumes one way of running ESPHome. A copy of this repository may be the dashboard's live/config, or a checkout on a development box with a board on its USB port. A new "Running the ESPHome CLI" section, under "Container and CLI", states the routes once:docker exec esphome,uvx --from esphome==<version> esphome ..., withuvx --from esphome==<version> esptool ...for theesptoolthat release pins,secrets.yaml. It says where ESPHome's data directory, build tree, and ESP-IDF toolchain cache live on each route.esphome <command> <device>.yaml. Paths that exist only in the container (/cache/build,/cache/data/packages,/opt/venv/...) are described relative to the data directory.docker execlogs hazard and its/proccleanup are limited to the dashboard's container. On theuvxroute,timeout 25 uvx --from esphome==2026.9.1 esphome logs ...exits 124 and leaves no process behind. Log captures go to the git-ignoredlogs/directory.toolchainand--toolchain,versionfor both frameworks,platform_version,source, whichplatformio_optionsstill apply, and which platforms build only with PlatformIO. Closes Update OPERATIONS framework notes for the native esp-idf build #217.host-tools.jsonnote now namesuvandpython3besidedockeras the ways the ESPHome CLI is reached.Local Review Findings
Recorded local passes ran before every push. Each finding they listed on text this change wrote now has an outcome.
OPERATIONS.md"Running the ESPHome CLI", toolchain paragraph: theesphome clean-alldescription was wrong about which directories it empties. Class: introduced. Fixed in 7fd3a32, 756af1d, and c6787c7. The text now says what the command costs rather than listing paths: the toolchain cache, the PlatformIO core directory, and the data directory of each config it reaches.OPERATIONS.md"Building Against Patched ESPHome Core Components": "esphome clean-allempties.esphome/" held only for some invocations. Class: introduced. Fixed in 756af1d, which now says "can empty it".OPERATIONS.md"Framework and Platform Versions": the nRF52 bullet left out that its PlatformIO toolchain is deprecated. Class: introduced. Fixed in 7fd3a32.OPERATIONS.md"Running the ESPHome CLI": thesecrets.yamlguard was said to run "for any route", against its own placeholder. Class: introduced. Fixed in 7fd3a32 and 756af1d.docker runbehavior is now verified: atimeoutinside the container exits 124 and leaves nothing running, while one outside leaves the container running.docker runlogs example lacked--rm, so "leaves no container" was false as written. Class: introduced. Fixed in 756af1d.docker execevidence showed. Class: introduced. Fixed in c6787c7.esphome clean-allsentence could be more exact. In a container route, "the data directory of each config" reads as/cache/data. And "empties" leaves out thatstorage/and top-level.jsonfiles survive. Class: introduced, low. No change needed. The reviewer found the sentence true on every route againstclean_all()at 2026.9.1. Each gap errs toward deleting more, and the patched-component note warns on its own.Pre-existing findings from the same passes are filed as #220, #221, and #222.
Test Plan
markdownlint-cli2clean, run on a snapshot of tracked files per "Repository Tooling Hazards".--check sentence-lengthreports only the pre-existing sdkconfig sentence that Re-check the sdkconfig clean-build claim in OPERATIONS.md on ESPHome 2026.9.1 #220 covers.uvxcommand was run on ESPHome 2026.9.1:esphome version,esptool version(5.3.1), the component-grep recipe, and thetimeoutlogs run.docker runlogs timeout was run both ways onptr727/esphome-nonroot:2026.9.1.🤖 Generated with Claude Code
Summary by CodeRabbit