Repository navigation
Pack sdk-nrf remote builds without platformio.ini or idedata - #2983
Jonathan Swoboda (swoboda1337) merged 3 commits into
Conversation
esphome writes no idedata cache for sdk-nrf builds, so the toolchain table's PlatformIO fallback made every sdk-nrf remote build fail to pack.
|
ESPHome Bot (@esphbot) review |
There was a problem hiding this comment.
🟢 Approval recommended
The narrow policy change covers packing and materialisation, with focused regression tests and no unresolved issues identified.
No open issues 🎉
What changed in this PR
Fixes remote-build artifact handling for native nRF52 sdk-nrf builds by removing PlatformIO metadata requirements.
Changes:
- Marks
sdk-nrfas requiring neither an idedata cache norplatformio.ini. - Adds packing coverage with and without an optional
platformio.ini. - Adds a pack-and-materialise round-trip test without either metadata file.
| File | Description |
|---|---|
tests/test_remote_build_artifacts_download.py |
Updates the fixture and tests sdk-nrf packing with optional PlatformIO configuration. |
tests/test_remote_artifacts_materialise.py |
Tests sdk-nrf artifact round-tripping without PlatformIO metadata. |
esphome_device_builder/constants.py |
Adds sdk-nrf artifact requirements to the shared toolchain table. |
Review effort: Balanced
Merging this PR will not alter performance
Comparing Footnotes
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2983 +/- ##
=======================================
Coverage 99.76% 99.76%
=======================================
Files 300 300
Lines 26430 26430
=======================================
Hits 26368 26368
Misses 62 62
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
|
|
ESPHome Bot (esphbot)
left a comment
There was a problem hiding this comment.
Tip
No blocking issues found — ready to merge.
|
ESPHome Bot (@esphbot) review |
PR Review — Pack sdk-nrf remote builds without platformio.ini or idedataBoth earlier suggestions are fixed. Merge-ready. The fix is one row in
✅ Resolved since last review (1)Previously-flagged issues verified fixed
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.
3265bc7
into
esphome:main
|
Thanks |
What does this implement/fix?
toolchain_artifacts()has entries foresp-idfandarduinoonly, so ansdk-nrfbuild (nRF52 built natively with west) falls back to the PlatformIO entry:idedata=True, platformio_ini=True. esphome never writes an idedata cache for sdk-nrf builds (esphome idedatarefuses the toolchain), so packing an nRF52 remote build fails withidedata cache missing for <config>.yaml.This adds
sdk-nrfto the table with neither file required. Aplatformio.inithat is present is still packed, so this works with current esphome, which writes one for sdk-nrf builds, and with esphome/esphome#21704, which stops writing it. That PR should not merge until this one ships, because without this entry the receiver also raisesplatformio.ini missing, and the offloader's unpack step rejects a tarball without it.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.New tests: an sdk-nrf build packs without an idedata cache, with and without
platformio.ini(tests/test_remote_build_artifacts_download.py), and round-trips through pack and unpack, also with and withoutplatformio.ini(tests/test_remote_artifacts_materialise.py). Both fail onmain; withplatformio.inipresent and no idedata,mainraisesidedata cache missing. Tested with unit tests only, not with a real remote build between two hosts.