Repository navigation
Fix the MQTT e2e broker on ubuntu-26.04 runners - #3029
Conversation
|
ESPHome Bot (@esphbot) review |
Merging this PR will not alter performance
Comparing Footnotes
|
|
ESPHome Bot (@esphbot) review |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3029 +/- ##
=======================================
Coverage 99.77% 99.77%
=======================================
Files 300 300
Lines 26522 26522
=======================================
Hits 26461 26461
Misses 61 61
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 remain for the CI and test-harness changes addressing MQTT discovery failures.
No open issues 🎉
What changed in this PR
This PR addresses MQTT discovery end-to-end test failures after ubuntu-latest moved to Ubuntu 26.04. Changes are limited to CI and the test harness; production behavior is unchanged.
Changes:
- Unload Mosquitto’s AppArmor profile when present so the broker can read temporary test configurations.
- Capture broker output, report early exits, and improve startup-timeout diagnostics and cleanup.
| File | Description |
|---|---|
tests/e2e/slow/mqtt/conftest.py |
Preserve broker logs and improve startup-failure reporting and cleanup. |
.github/workflows/test.yml |
Unload the AppArmor profile before running MQTT discovery tests. |
Review effort: Balanced
PR Review — Fix the MQTT e2e broker on ubuntu-26.04 runnersSmall, well-targeted fix to the CI and test harness. Merge-ready, with one note on how robust the workflow step is. The harness change is a clear improvement. Before, mosquitto's output went to
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 MQTT discovery e2e jobs went red on main when
ubuntu-latestmoved to ubuntu-26.04: that image ships an AppArmor profile for mosquitto that only lets it read its own config paths, so the broker exits withUnable to open config file /tmp/pytest-of-runner/.../mosquitto.conf. The job now unloads that profile before the tests, and the harness keeps the broker's output so a startup failure says why.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.