ci(system): restrict number of system examples built in regular pipelines

This commit is contained in:
Marius Vikhammer 2023-10-18 14:39:33 +08:00
parent d6def6c06e
commit 4f4f32ecf2
7 changed files with 115 additions and 56 deletions

View File

@ -6,6 +6,10 @@ examples/system/app_trace_basic:
temporary: true
reason: target esp32c6, esp32h2 is not supported yet
examples/system/base_mac_address:
depends_components:
- esp_hw_support
examples/system/console/advanced:
disable:
- if: IDF_TARGET == "esp32p4"
@ -14,10 +18,16 @@ examples/system/console/advanced:
disable_test:
- if: IDF_TARGET not in ["esp32", "esp32c3"]
reason: Sufficient to run this app on one chip with each architecture
depends_components:
- console
- vfs
examples/system/console/advanced_usb_cdc:
disable:
- if: SOC_USB_PERIPH_NUM == 0
depends_components:
- console
- vfs
examples/system/console/basic:
disable:
@ -27,6 +37,9 @@ examples/system/console/basic:
disable_test:
- if: IDF_TARGET not in ["esp32", "esp32c3"]
reason: Sufficient to run this app on one chip with each architecture
depends_components:
- console
- vfs
examples/system/deep_sleep:
disable:
@ -40,15 +53,31 @@ examples/system/deep_sleep_wake_stub:
temporary: true
reason: target(s) is not supported yet
examples/system/efuse:
enable:
- if: IDF_TARGET == "esp32" or (NIGHTLY_RUN == "1" and IDF_TARGET != "linux")
reason: no target specific functionality, testing on a single target is sufficient
depends_components:
- efuse
- bootloader_support
examples/system/esp_timer:
disable:
- if: IDF_TARGET in ["esp32c6", "esp32h2", "esp32p4"]
- if: IDF_TARGET in ["esp32p4"]
temporary: true
reason: target(s) is not supported yet # TODO: IDF-7529
depends_components:
- esp_timer
examples/system/eventfd:
enable:
- if: IDF_TARGET == "esp32" or (NIGHTLY_RUN == "1" and IDF_TARGET != "linux")
reason: no target specific functionality, testing on a single target is sufficient
disable:
- if: SOC_GPTIMER_SUPPORTED != 1
depends_components:
- vfs
- driver
examples/system/flash_suspend:
enable:
@ -56,6 +85,13 @@ examples/system/flash_suspend:
temporary: true
reason: the other targets are not tested yet
examples/system/freertos:
enable:
- if: IDF_TARGET == "esp32" or (NIGHTLY_RUN == "1" and IDF_TARGET != "linux")
reason: no target specific functionality, testing on a single target is sufficient
depends_components:
- freertos
examples/system/gcov:
disable_test:
- if: IDF_TARGET != "esp32"
@ -69,28 +105,34 @@ examples/system/gdbstub:
reason: not supported yet #TODO: IDF-7510
examples/system/heap_task_tracking:
disable:
- if: IDF_TARGET == "esp32c2" or IDF_TARGET == "esp32h2"
temporary: true
reason: target esp32c2, esp32h2 is not supported yet
enable:
- if: IDF_TARGET == "esp32c3" or (NIGHTLY_RUN == "1" and IDF_TARGET != "linux")
reason: no target specific functionality, testing on a single target is sufficient
depends_components:
- heap
examples/system/himem:
enable:
- if: IDF_TARGET == "esp32"
temporary: true
reason: the other targets are not tested yet
reason: Feature is only needed/supported on ESP32
examples/system/ipc/ipc_isr/riscv:
enable:
- if: IDF_TARGET in ["esp32p4"]
temporary: true
- if: IDF_TARGET_ARCH_RISCV == 1 and ESP_IPC_ISR_ENABLE == 1
reason: The test is intended only for multi-core chips
disable_test:
- if: IDF_TARGET == "esp32p4"
temporary: true
reason: lack of runners
depends_components:
- esp_system
examples/system/ipc/ipc_isr/xtensa:
enable:
- if: IDF_TARGET in ["esp32", "esp32s3"]
temporary: true
- if: IDF_TARGET_ARCH_XTENSA == 1 and ESP_IPC_ISR_ENABLE == 1
reason: The test is intended only for multi-core chips
depends_components:
- esp_system
examples/system/light_sleep:
disable:
@ -147,21 +189,23 @@ examples/system/ota/simple_ota_example:
examples/system/perfmon:
enable:
- if: IDF_TARGET in ["esp32", "esp32s2", "esp32s3"]
temporary: true
reason: the other targets are not tested yet
reason: xtensa only feature
depends_components:
- perfmon
examples/system/pthread:
enable:
- if: IDF_TARGET == "esp32" or (NIGHTLY_RUN == "1" and IDF_TARGET != "linux")
reason: no target specific functionality, testing on a single target is sufficient
depends_components:
- pthread
examples/system/select:
disable:
- if: IDF_TARGET == "esp32c2"
temporary: true
reason: target esp32c2 is not supported yet
disable_test:
- if: IDF_TARGET in ["esp32s2", "esp32s3"]
temporary: true
reason: lack of runners
- if: IDF_TARGET == "esp32c6" or IDF_TARGET == "esp32h2"
temporary: true
reason: target esp32c6 is not supported yet
enable:
- if: IDF_TARGET == "esp32c3" or (NIGHTLY_RUN == "1" and IDF_TARGET != "linux")
reason: no target specific functionality, testing on a single target is sufficient
depends_components:
- vfs
examples/system/sysview_tracing:
disable:
@ -186,72 +230,100 @@ examples/system/sysview_tracing_heap_log:
reason: lack of runners
examples/system/task_watchdog:
disable_test:
- if: IDF_TARGET == "esp32c2"
temporary: true
reason: target esp32c2 is not supported yet
enable:
- if: IDF_TARGET == "esp32" or (NIGHTLY_RUN == "1" and IDF_TARGET != "linux")
reason: no target specific functionality, testing on a single target is sufficient
depends_components:
- esp_system
examples/system/ulp/lp_core/gpio:
enable:
- if: SOC_LP_CORE_SUPPORTED == 1
depends_components:
- ulp
examples/system/ulp/lp_core/lp_i2c:
enable:
- if: SOC_LP_I2C_SUPPORTED == 1
depends_components:
- ulp
examples/system/ulp/lp_core/lp_uart/lp_uart_echo:
disable:
- if: SOC_ULP_LP_UART_SUPPORTED != 1
depends_components:
- ulp
examples/system/ulp/lp_core/lp_uart/lp_uart_print:
disable:
- if: SOC_ULP_LP_UART_SUPPORTED != 1
depends_components:
- ulp
examples/system/ulp/ulp_fsm/ulp:
disable:
- if: SOC_ULP_FSM_SUPPORTED != 1
depends_components:
- ulp
examples/system/ulp/ulp_fsm/ulp_adc:
enable:
- if: IDF_TARGET in ["esp32", "esp32s3"]
temporary: true
reason: the other targets are not tested yet
depends_components:
- ulp
examples/system/ulp/ulp_riscv/adc:
enable:
- if: SOC_RISCV_COPROC_SUPPORTED == 1
temporary: true
reason: the other targets are not tested yet
depends_components:
- ulp
examples/system/ulp/ulp_riscv/ds18b20_onewire:
enable:
- if: IDF_TARGET == "esp32s2"
temporary: true
reason: the other targets are not tested yet
depends_components:
- ulp
examples/system/ulp/ulp_riscv/gpio:
enable:
- if: SOC_RISCV_COPROC_SUPPORTED == 1
temporary: true
reason: the other targets are not tested yet
depends_components:
- ulp
examples/system/ulp/ulp_riscv/gpio_interrupt:
enable:
- if: SOC_RISCV_COPROC_SUPPORTED == 1
temporary: true
reason: the other targets are not tested yet
depends_components:
- ulp
examples/system/ulp/ulp_riscv/i2c:
enable:
- if: SOC_RISCV_COPROC_SUPPORTED == 1
depends_components:
- ulp
examples/system/ulp/ulp_riscv/touch:
enable:
- if: SOC_RISCV_COPROC_SUPPORTED == 1
depends_components:
- ulp
examples/system/ulp/ulp_riscv/uart_print:
enable:
- if: SOC_RISCV_COPROC_SUPPORTED == 1
depends_components:
- ulp
examples/system/unit_test/:
enable:
- if: IDF_TARGET == "esp32" or (NIGHTLY_RUN == "1" and IDF_TARGET != "linux")
reason: no target specific functionality, testing on a single target is sufficient
depends_components:
- unity
examples/system/xip_from_psram:
enable:

View File

@ -1,5 +1,5 @@
| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-S2 | ESP32-S3 |
| ----------------- | ----- | -------- | -------- | -------- | -------- |
| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H2 | ESP32-S2 | ESP32-S3 |
| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- | -------- |
# High Resolution Timer Example (`esp_timer`)

View File

@ -8,13 +8,7 @@ import pytest
from pytest_embedded import Dut
@pytest.mark.esp32
@pytest.mark.esp32c2
@pytest.mark.esp32s2
@pytest.mark.esp32s3
@pytest.mark.esp32c3
@pytest.mark.esp32c6
@pytest.mark.esp32h2
@pytest.mark.supported_targets
@pytest.mark.generic
def test_eventfd(dut: Dut) -> None:

View File

@ -1,5 +1,5 @@
| Supported Targets | ESP32 | ESP32-C3 | ESP32-C6 | ESP32-P4 | ESP32-S2 | ESP32-S3 |
| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- |
| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H2 | ESP32-P4 | ESP32-S2 | ESP32-S3 |
| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- | -------- | -------- |
# Heap Task Tracking Example

View File

@ -1,5 +1,5 @@
| Supported Targets | ESP32 | ESP32-C3 | ESP32-C6 | ESP32-H2 | ESP32-P4 | ESP32-S2 | ESP32-S3 |
| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- | -------- |
| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H2 | ESP32-P4 | ESP32-S2 | ESP32-S3 |
| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- | -------- | -------- |
# Synchronous I/O multiplexing example

View File

@ -20,8 +20,7 @@ def get_uart_msgs(i: int) -> List[str]:
'uart_select_example: {} bytes were received through UART1: {}'.format(len(msg), msg)]
@pytest.mark.esp32
@pytest.mark.esp32c3
@pytest.mark.supported_targets
@pytest.mark.generic
def test_examples_select(dut: Dut) -> None:

View File

@ -5,13 +5,7 @@ import pytest
from pytest_embedded import Dut
# IDF-5055
@pytest.mark.esp32
@pytest.mark.esp32s2
@pytest.mark.esp32s3
@pytest.mark.esp32c3
@pytest.mark.esp32c6
@pytest.mark.esp32h2
@pytest.mark.supported_targets
@pytest.mark.generic
def test_task_watchdog(dut: Dut) -> None: