Repository navigation
Re-stamp boards before the component sync and sort platform defaults - #3017
Conversation
|
ESPHome Bot (@esphbot) review |
Merging this PR will not alter performance
Comparing Footnotes
|
PR Review — Re-stamp boards before the component sync and sort platform defaultsMerge-ready. This fixes the cause of the follow-up sync PRs with no runtime change, and I found nothing to fix. What the PR does well:
No issues found. Checklist
Automated review by Kōan (Claude) |
ESPHome Bot (esphbot)
left a comment
There was a problem hiding this comment.
Tip
No blocking issues found — ready to merge.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3017 +/- ##
=======================================
Coverage 99.76% 99.76%
=======================================
Files 300 300
Lines 26403 26403
=======================================
Hits 26341 26341
Misses 62 62
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the catalog-generation consistency changes.
No open issues 🎉
What changed in this PR
This PR makes catalog generation more consistent, preventing follow-up refresh PRs caused by stale board options or unstable platform-default ordering. It does not change runtime behavior.
Changes:
- Re-stamps boards before component sync, then regenerates board bodies against the refreshed component catalog.
- Sorts
platform_defaultskeys for deterministic output. - Adds a regression test for platform-key ordering and updates the board-index loading documentation.
| File | Description |
|---|---|
tests/test_sync_components_platform_defaults.py |
Tests deterministic platform-key ordering. |
script/sync_components.py |
Sorts platform defaults and clarifies board-index loading. |
.github/workflows/sync-component-catalog.yml |
Orders catalog generation so board options and bodies use refreshed data. |
Review effort: Balanced
What does this implement/fix?
Stop the nightly component sync from opening a follow-up PR after every board restamp or rerun: new boards now reach the platform
boarddropdowns in the same sync, andplatform_defaultskeys come out in a stable order.remote_receiver.jsonkey reshuffle) is the kind of PR this prevents._collect_platform_defaults; no runtime change. Upstream buildsremote_receiver'sbuffer_sizeSplitDefault from the setesp32_rmt.VARIANTS_NO_RMT, so the order changed between runs; the resolver looks keys up, so sorting is safe.platform_defaultsin api, i2c, logger, remote_receiver, remote_transmitter, socket and wifi, and replaces Sync component catalog from schema 2026.11.0b1 #3016 on the same branch.Verification
Ran the new step order locally against esphome 2026.11.0b1 (
sync_boards.py --restamp,sync_components.py,sync_boards.py,validate_definitions.py): all passed, the second board sync changed no board files, and the component diff against main was the two board options from #3016 plus order-onlyplatform_defaultschanges in the seven files above. The board sync reads component bodies for pin and reference keys, which is why it runs again after the component sync instead of only moving the restamp.Related issue or feature (if applicable):
Types of changes
bugfixnew-featureenhancementbreaking-changerefactordocsmaintenancecidependenciesFrontend coordination
Checklist
ruff,codespell, yaml/json/python checks).tests/where applicable.components.index.json/definitions/components/*.jsonhave not been hand-edited (regenerate viascript/sync_components.pyif a sync is needed).docs/ARCHITECTURE.mdand/ordocs/API.md.