Repository navigation
Conversation
Add an example device config per template under test/, and a fail-fast:false matrix job that compiles each one on the deployment image. Subdirectories are invisible to the Device Builder dashboard, whose scan is non-recursive, so the example devices do not appear as phantom devices. The matrix is generated from test/ by the changes job, which also fails the run if a template outside the utility-include set has no example device, so a newly published template cannot go silently untested. Fix the three templates the first sweep found broken: - sonoff-s31: declare parity: EVEN, the CSE7766 transmits 8E1. - smarthome-ceilsense: remove check_firmware_update_when_online, added upstream and referencing entities this template strips. - esp32-s3-wroom-2-n32r8v: opt into experimental IDF features, required for 32MB flash with OTA. Add a templates_dir substitution to norvi-enet-ae06-r so its Utils.h include follows the including config, since ESPHome resolves includes: against the device config directory rather than the template directory. Correct the efun-sh331 header, which still documented device_comment. Record the comment style rule in AGENTS.md. Co-Authored-By: Claude Opus 4.8 <[email protected]>
There was a problem hiding this comment.
Pull request overview
Extends CI to compile one example configuration per published ESPHome template, ensuring templates in templates/ are continuously build-verified against the current ESPHome release (in addition to the existing easystart component compile test).
Changes:
- Add
test/*.yamlexample configs (one per device template) to act as CI compile targets and minimal usage samples. - Update
.github/workflows/test-pull-request.ymlto generate a matrix fromtest/, enforce 1 example per template, and compile each config withfail-fast: false. - Fix several published templates uncovered by the new compile sweep (UART parity, removed upstream script id, includes path resolution, IDF experimental opt-in, and header comment correction), plus document the new CI guarantee in
README.md.
Reviewed changes
Copilot reviewed 25 out of 26 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| test/wemos-lolin32-lite.yaml | Adds CI compile example for the Wemos Lolin32 Lite template. |
| test/sonoff-th10.yaml | Adds CI compile example for the Sonoff TH10 template. |
| test/sonoff-s31.yaml | Adds CI compile example for the Sonoff S31 template. |
| test/smarthome-ceilsense.yaml | Adds CI compile example for the SmartHomeShop CeilSense template. |
| test/rocket-astra.yaml | Adds CI compile example for the RocketController ASTRA template. |
| test/norvi-enet-ae06-r.yaml | Adds CI compile example for the Norvi ENET-AE06-R template (with templates_dir override for includes: resolution). |
| test/konnected-blaq.yaml | Adds CI compile example for the Konnected blaQ template. |
| test/kincony-kc868-asr.yaml | Adds CI compile example for the Kincony KC868-ASR template. |
| test/gls10-bluetooth-proxy.yaml | Adds CI compile example for the GL-S10 Bluetooth proxy template. |
| test/esp32-s3-wroom-2-n32r8v.yaml | Adds CI compile example for the ESP32-S3-WROOM-2-N32R8V board overlay composed with the devkit template. |
| test/esp32-s3-wroom-2-n16r8v.yaml | Adds CI compile example for the ESP32-S3-WROOM-2-N16R8V board overlay composed with the devkit template. |
| test/esp32-s3-devkitc.yaml | Adds CI compile example for the ESP32-S3-DevKitC template. |
| test/efun-sh331.yaml | Adds CI compile example for the EFUN SH331 template. |
| test/easystart.yaml | Adds CI compile example showing how to compose the easystart template and build against local external components. |
| test/apollo-plt-1b.yaml | Adds CI compile example for the Apollo PLT-1B template. |
| test/aoycocr-x5p.yaml | Adds CI compile example for the Aoycocr X5P template. |
| test/adafruit-esp32-s3-feather.yaml | Adds CI compile example for the Adafruit ESP32-S3 Feather template. |
| templates/sonoff-s31.yaml | Fixes CSE7766 UART settings by explicitly declaring parity as EVEN (8E1). |
| templates/smarthome-ceilsense.yaml | Updates removals to match upstream additions by removing the new firmware-check glue script id. |
| templates/norvi-enet-ae06-r.yaml | Makes includes: path resolvable from non-root configs via a templates_dir substitution. |
| templates/esp32-s3-wroom-2-n32r8v.yaml | Opts into experimental IDF features required to build the 32MB+OTA configuration. |
| templates/efun-sh331.yaml | Corrects the template header’s required-substitutions comment. |
| README.md | Documents that every device template has a test/ example compiled in CI and usable as a minimal sample. |
| AGENTS.md | Adds a repo convention section for keeping comments structured and scannable. |
| .gitignore | Ignores ESPHome’s auto-written test/.gitignore generated by local compiles. |
| .github/workflows/test-pull-request.yml | Adds change-gated template compile matrix, enforces 1 example per template, and updates the aggregator gate accordingly. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Extends the change-gated compile test, which previously covered only the
easystartcomponent, to every published template. Anything published is now known to build against the current ESPHome release.Changes
test/, one per device template. Subdirectories are invisible to the ESPHome Device Builder dashboard, whose scan is non-recursive, so these do not show up as phantom devices.fail-fast: falsematrix job compiling each config on theptr727/esphome-nonrootdeployment image, so every template reports its own pass/fail.test/by thechangesjob, which also fails the run when a template outside the utility-include set has no example device. A newly published template therefore cannot go silently untested.templates/,test/, andeasystart/components/; the aggregator fails only onfailure, so a gated skip still passes.Template fixes found by the first sweep
Three published templates did not build:
sonoff-s31: missingparity: EVEN, the CSE7766 transmits 8E1.smarthome-ceilsense: upstream addedcheck_firmware_update_when_online, which references entities this template strips.esp32-s3-wroom-2-n32r8v: 32MB flash with OTA requires the experimental IDF opt-in.norvi-enet-ae06-rgains atemplates_dirsubstitution so itsUtils.hinclude follows the including config, since ESPHome resolvesincludes:against the device config directory rather than the template directory.efun-sh331had a staledevice_commentin its header.Verification
garage-gate-fan-controller.yamlas a real-device regression, sinceincludes:only resolves at build time.🤖 Generated with Claude Code