feat(ci): Run esp-idf examples on targets#337
Conversation
a1d7fe5 to
73b88d9
Compare
|
The CI workflow correctly accessed esptool.util.FatalError: '/opt/esp/idf/examples/peripherals/usb/host/usb_host_lib/build_esp32p4_default/bootloader/bootloader.bin' requires chip revision in range [v3.0 - v3.99] (this chip is revision v1.0). Use the force argument to flash anyway.Build is for esp32p4 ECO5, the runners are not ECO5. |
44dbe6c to
2821fb2
Compare
a0c721e to
8f7a8ec
Compare
d77c06b to
69a797c
Compare
95ec11b to
3303766
Compare
3303766 to
5c73605
Compare
|
Converted to draft, as the github runners are failing to run ncm device tests. Will fix this issue in another PR |
b380cc2 to
b3f015d
Compare
b3f015d to
14abf5b
Compare
14abf5b to
31e5567
Compare
31e5567 to
59a5e28
Compare
59a5e28 to
a32c21a
Compare
a32c21a to
c08e69f
Compare
c08e69f to
f814361
Compare
|
@tore-espressif @igi540 |
f814361 to
5f86d2c
Compare
5f86d2c to
8539fb0
Compare
|
esp-idf device examples backports to use |
igi540
left a comment
There was a problem hiding this comment.
LGTM. I left few nitpicks in the inline comments.
eaf7947 to
be03ba6
Compare
tore-espressif
left a comment
There was a problem hiding this comment.
@peter-marcisovsky LGTM, just one comment that could make it a little cleaner
- build and run esp-idf device and host examples
- conditional run of the workflow
|
@tore-espressif the FYI I added back the conditional run, which I lost somewhere during rebasing I guess 😕 Just this two lines. And updated the label name to align with your label to run all test apps. So the conditional run is only based on this label, not on both the label and PR name as I had it before. |
Description
Running esp-idf usb host and usb device examples with overridden local components on target runners.
Related
Limitations
--net=hostoption (same as it is done on GL runners where the NCM device tests are passing) to access host network interface, not possible due to default GH runners configtarget-test-envfor this purposeChanges
Target runners
usb_devicetarget runners inesp-usbrunesp-idfdevice examplesusb_host_flash_disktarget runners inesp-usbrunesp-idfhost examplesConditional workflow run
build_and_run_idf_examples.ymlworkflow run conditionally specified by the PR authorBUILD_AND_TEST_IDF_EXAMPLESis present - user can add this label to trigger the runChecklist
Before submitting a Pull Request, please ensure the following:
Note
Runs esp-idf USB host/device examples on hardware with artifact-based handoff between build and run jobs, and introduces centralized example-selection rules.
.github/ci/.idf-build-examples-rules.ymlto enable/disableusbexamples (notably enableshost/uvcforIDF_VERSION >= 5.5; disables whenSOC_USB_OTG_SUPPORTED != 1, and for NCM also whenSOC_WIFI_SUPPORTED != 1).build_and_run_idf_examples.ymlto:BUILD_AND_TEST_IDF_EXAMPLESlabel; build matrix for IDF 5.2–latest; upload build artifacts.esp_tinyusbfor device and override host class/usb components as appropriate; createidf_component.ymlforusb_host_libon <6.0.esp32s2,esp32p4) for IDF ≥5.5; excludes esp32p4 on some versions; installs deps and executes pytest with markers.build_and_run_test_app_usb.yml: switch toapt-getand add--no-cache-dirto pip installs.Written by Cursor Bugbot for commit 96b07e8. This will update automatically on new commits. Configure here.