Repository navigation
Stop pinning the board-parse benchmark to fixture entry counts - #3064
Conversation
|
ESPHome Bot (@esphbot) review |
There was a problem hiding this comment.
🟢 Approval recommended
There are no active review issues for this test-only update to fixture-relative board-parsing benchmark checks.
No open issues 🎉
What changed in this PR
This test-only change makes the board-parsing benchmark tolerate upstream fixture updates, addressing the CodSpeed failure in catalog-sync PR #3051.
Changes:
- Replaces fixed entry counts with comparisons against the manifest’s pin GPIOs and featured-component IDs.
- Retains nonempty checks and keeps smoke assertions outside the timed benchmark.
- Updates the comment to explain the fixture-relative checks.
| File | Description |
|---|---|
tests/benchmarks/test_startup.py |
Makes board-loader smoke checks independent of synced fixture entry counts. |
Review effort: Balanced
Merging this PR will not alter performance1 warning
Comparing Footnotes
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3064 +/- ##
=======================================
Coverage 99.77% 99.77%
=======================================
Files 300 300
Lines 26564 26564
=======================================
Hits 26503 26503
Misses 61 61
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
PR Review — Stop pinning the board-parse benchmark to fixture entry countsMerge-ready: a small test-only fix that removes the fixture-count brittleness and keeps the smoke check strict. What this 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.
What does this implement/fix?
The board-parse benchmark's smoke check now compares the loaded pins and featured components against the fixture manifest's own entries instead of hard-coded counts, so the nightly device sync stops breaking CodSpeed whenever upstream edits the fixture board.
unexpectedmaker_feathers3dis anesphome-devicesimport, and upstream added its I2C buses and a MAX17048 sensor (4 to 8 pins, 5 to 8 featured components).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.