From 4a74ae4921ac025927203545fedec7b6ecc0438d Mon Sep 17 00:00:00 2001 From: Sachin Parekh Date: Thu, 6 Apr 2023 12:20:44 +0530 Subject: [PATCH] ci: Add patterns and target-tests for `ecdsa_efuse` runner --- .gitlab/ci/dependencies/dependencies.yml | 1 + .gitlab/ci/rules.yml | 84 ++++++++++++++++++++++++ .gitlab/ci/target-test.yml | 8 +++ conftest.py | 1 + 4 files changed, 94 insertions(+) diff --git a/.gitlab/ci/dependencies/dependencies.yml b/.gitlab/ci/dependencies/dependencies.yml index 70b3ee9c01..9d5abc4947 100644 --- a/.gitlab/ci/dependencies/dependencies.yml +++ b/.gitlab/ci/dependencies/dependencies.yml @@ -139,6 +139,7 @@ build:integration_test: - adc # component_ut_pytest_esp32x_adc - i154 - flash_multi + - ecdsa patterns: - "{0}-{1}-{2}" - "{0}-{2}" diff --git a/.gitlab/ci/rules.yml b/.gitlab/ci/rules.yml index 43b21d3569..23b1d30b40 100644 --- a/.gitlab/ci/rules.yml +++ b/.gitlab/ci/rules.yml @@ -306,6 +306,11 @@ - "components/efuse/**/*" - "examples/peripherals/adc/**/*" +.patterns-target_test-ecdsa: &patterns-target_test-ecdsa + - "components/hal/**/*" + - "components/efuse/**/*" + - "components/mbedtls/port/ecdsa/*" + ############## # if anchors # ############## @@ -623,6 +628,8 @@ changes: *patterns-downloadable-tools - <<: *if-dev-push changes: *patterns-target_test-adc + - <<: *if-dev-push + changes: *patterns-target_test-ecdsa - <<: *if-dev-push changes: *patterns-target_test-i154 - <<: *if-dev-push @@ -656,6 +663,8 @@ changes: *patterns-downloadable-tools - <<: *if-dev-push changes: *patterns-target_test-adc + - <<: *if-dev-push + changes: *patterns-target_test-ecdsa - <<: *if-dev-push changes: *patterns-target_test-i154 - <<: *if-dev-push @@ -688,6 +697,8 @@ changes: *patterns-downloadable-tools - <<: *if-dev-push changes: *patterns-target_test-adc + - <<: *if-dev-push + changes: *patterns-target_test-ecdsa - <<: *if-dev-push changes: *patterns-target_test-i154 - <<: *if-dev-push @@ -720,6 +731,8 @@ changes: *patterns-downloadable-tools - <<: *if-dev-push changes: *patterns-target_test-adc + - <<: *if-dev-push + changes: *patterns-target_test-ecdsa - <<: *if-dev-push changes: *patterns-target_test-i154 - <<: *if-dev-push @@ -752,6 +765,8 @@ changes: *patterns-downloadable-tools - <<: *if-dev-push changes: *patterns-target_test-adc + - <<: *if-dev-push + changes: *patterns-target_test-ecdsa - <<: *if-dev-push changes: *patterns-target_test-i154 - <<: *if-dev-push @@ -784,6 +799,8 @@ changes: *patterns-downloadable-tools - <<: *if-dev-push changes: *patterns-target_test-adc + - <<: *if-dev-push + changes: *patterns-target_test-ecdsa - <<: *if-dev-push changes: *patterns-target_test-i154 - <<: *if-dev-push @@ -816,6 +833,8 @@ changes: *patterns-downloadable-tools - <<: *if-dev-push changes: *patterns-target_test-adc + - <<: *if-dev-push + changes: *patterns-target_test-ecdsa - <<: *if-dev-push changes: *patterns-target_test-i154 - <<: *if-dev-push @@ -848,6 +867,8 @@ changes: *patterns-downloadable-tools - <<: *if-dev-push changes: *patterns-target_test-adc + - <<: *if-dev-push + changes: *patterns-target_test-ecdsa - <<: *if-dev-push changes: *patterns-target_test-i154 - <<: *if-dev-push @@ -879,6 +900,8 @@ changes: *patterns-downloadable-tools - <<: *if-dev-push changes: *patterns-target_test-adc + - <<: *if-dev-push + changes: *patterns-target_test-ecdsa - <<: *if-dev-push changes: *patterns-target_test-i154 - <<: *if-dev-push @@ -904,6 +927,8 @@ changes: *patterns-downloadable-tools - <<: *if-dev-push changes: *patterns-target_test-adc + - <<: *if-dev-push + changes: *patterns-target_test-ecdsa - <<: *if-dev-push changes: *patterns-target_test-i154 - <<: *if-dev-push @@ -928,6 +953,8 @@ changes: *patterns-downloadable-tools - <<: *if-dev-push changes: *patterns-target_test-adc + - <<: *if-dev-push + changes: *patterns-target_test-ecdsa - <<: *if-dev-push changes: *patterns-target_test-i154 - <<: *if-dev-push @@ -952,6 +979,8 @@ changes: *patterns-downloadable-tools - <<: *if-dev-push changes: *patterns-target_test-adc + - <<: *if-dev-push + changes: *patterns-target_test-ecdsa - <<: *if-dev-push changes: *patterns-target_test-i154 - <<: *if-dev-push @@ -976,6 +1005,8 @@ changes: *patterns-downloadable-tools - <<: *if-dev-push changes: *patterns-target_test-adc + - <<: *if-dev-push + changes: *patterns-target_test-ecdsa - <<: *if-dev-push changes: *patterns-target_test-i154 - <<: *if-dev-push @@ -1000,6 +1031,8 @@ changes: *patterns-downloadable-tools - <<: *if-dev-push changes: *patterns-target_test-adc + - <<: *if-dev-push + changes: *patterns-target_test-ecdsa - <<: *if-dev-push changes: *patterns-target_test-i154 - <<: *if-dev-push @@ -1024,6 +1057,8 @@ changes: *patterns-downloadable-tools - <<: *if-dev-push changes: *patterns-target_test-adc + - <<: *if-dev-push + changes: *patterns-target_test-ecdsa - <<: *if-dev-push changes: *patterns-target_test-i154 - <<: *if-dev-push @@ -1048,6 +1083,8 @@ changes: *patterns-downloadable-tools - <<: *if-dev-push changes: *patterns-target_test-adc + - <<: *if-dev-push + changes: *patterns-target_test-ecdsa - <<: *if-dev-push changes: *patterns-target_test-i154 - <<: *if-dev-push @@ -1110,6 +1147,8 @@ changes: *patterns-example_test-wifi - <<: *if-dev-push changes: *patterns-target_test-adc + - <<: *if-dev-push + changes: *patterns-target_test-ecdsa - <<: *if-dev-push changes: *patterns-target_test-i154 - <<: *if-dev-push @@ -1150,6 +1189,8 @@ changes: *patterns-example_test-wifi - <<: *if-dev-push changes: *patterns-target_test-adc + - <<: *if-dev-push + changes: *patterns-target_test-ecdsa - <<: *if-dev-push changes: *patterns-target_test-i154 - <<: *if-dev-push @@ -1188,6 +1229,8 @@ changes: *patterns-example_test-wifi - <<: *if-dev-push changes: *patterns-target_test-adc + - <<: *if-dev-push + changes: *patterns-target_test-ecdsa - <<: *if-dev-push changes: *patterns-target_test-i154 - <<: *if-dev-push @@ -1227,6 +1270,8 @@ changes: *patterns-example_test-wifi - <<: *if-dev-push changes: *patterns-target_test-adc + - <<: *if-dev-push + changes: *patterns-target_test-ecdsa - <<: *if-dev-push changes: *patterns-target_test-i154 - <<: *if-dev-push @@ -1265,6 +1310,8 @@ changes: *patterns-example_test-wifi - <<: *if-dev-push changes: *patterns-target_test-adc + - <<: *if-dev-push + changes: *patterns-target_test-ecdsa - <<: *if-dev-push changes: *patterns-target_test-i154 - <<: *if-dev-push @@ -1303,6 +1350,8 @@ changes: *patterns-example_test-wifi - <<: *if-dev-push changes: *patterns-target_test-adc + - <<: *if-dev-push + changes: *patterns-target_test-ecdsa - <<: *if-dev-push changes: *patterns-target_test-i154 - <<: *if-dev-push @@ -1341,6 +1390,8 @@ changes: *patterns-example_test-wifi - <<: *if-dev-push changes: *patterns-target_test-adc + - <<: *if-dev-push + changes: *patterns-target_test-ecdsa - <<: *if-dev-push changes: *patterns-target_test-i154 - <<: *if-dev-push @@ -1379,6 +1430,8 @@ changes: *patterns-example_test-wifi - <<: *if-dev-push changes: *patterns-target_test-adc + - <<: *if-dev-push + changes: *patterns-target_test-ecdsa - <<: *if-dev-push changes: *patterns-target_test-i154 - <<: *if-dev-push @@ -1502,6 +1555,8 @@ changes: *patterns-integration_test-wifi - <<: *if-dev-push changes: *patterns-target_test-adc + - <<: *if-dev-push + changes: *patterns-target_test-ecdsa - <<: *if-dev-push changes: *patterns-target_test-i154 - <<: *if-dev-push @@ -1537,6 +1592,8 @@ changes: *patterns-downloadable-tools - <<: *if-dev-push changes: *patterns-target_test-adc + - <<: *if-dev-push + changes: *patterns-target_test-ecdsa - <<: *if-dev-push changes: *patterns-target_test-i154 - <<: *if-dev-push @@ -1566,6 +1623,8 @@ changes: *patterns-downloadable-tools - <<: *if-dev-push changes: *patterns-target_test-adc + - <<: *if-dev-push + changes: *patterns-target_test-ecdsa - <<: *if-dev-push changes: *patterns-target_test-i154 - <<: *if-dev-push @@ -1594,6 +1653,8 @@ changes: *patterns-downloadable-tools - <<: *if-dev-push changes: *patterns-target_test-adc + - <<: *if-dev-push + changes: *patterns-target_test-ecdsa - <<: *if-dev-push changes: *patterns-target_test-i154 - <<: *if-dev-push @@ -1622,6 +1683,8 @@ changes: *patterns-downloadable-tools - <<: *if-dev-push changes: *patterns-target_test-adc + - <<: *if-dev-push + changes: *patterns-target_test-ecdsa - <<: *if-dev-push changes: *patterns-target_test-i154 - <<: *if-dev-push @@ -1650,6 +1713,8 @@ changes: *patterns-downloadable-tools - <<: *if-dev-push changes: *patterns-target_test-adc + - <<: *if-dev-push + changes: *patterns-target_test-ecdsa - <<: *if-dev-push changes: *patterns-target_test-i154 - <<: *if-dev-push @@ -1678,6 +1743,8 @@ changes: *patterns-downloadable-tools - <<: *if-dev-push changes: *patterns-target_test-adc + - <<: *if-dev-push + changes: *patterns-target_test-ecdsa - <<: *if-dev-push changes: *patterns-target_test-i154 - <<: *if-dev-push @@ -1706,6 +1773,8 @@ changes: *patterns-downloadable-tools - <<: *if-dev-push changes: *patterns-target_test-adc + - <<: *if-dev-push + changes: *patterns-target_test-ecdsa - <<: *if-dev-push changes: *patterns-target_test-i154 - <<: *if-dev-push @@ -1734,6 +1803,8 @@ changes: *patterns-downloadable-tools - <<: *if-dev-push changes: *patterns-target_test-adc + - <<: *if-dev-push + changes: *patterns-target_test-ecdsa - <<: *if-dev-push changes: *patterns-target_test-i154 - <<: *if-dev-push @@ -2002,6 +2073,19 @@ - <<: *if-dev-push changes: *patterns-target_test-adc +.rules:test:component_ut-esp32h2-ecdsa: + rules: + - <<: *if-revert-branch + when: never + - <<: *if-protected + - <<: *if-label-build-only + when: never + - <<: *if-label-component_ut + - <<: *if-label-component_ut_esp32h2 + - <<: *if-label-target_test + - <<: *if-dev-push + changes: *patterns-target_test-ecdsa + .rules:test:component_ut-esp32s2: rules: - <<: *if-revert-branch diff --git a/.gitlab/ci/target-test.yml b/.gitlab/ci/target-test.yml index af043b04e7..ce51b37120 100644 --- a/.gitlab/ci/target-test.yml +++ b/.gitlab/ci/target-test.yml @@ -892,6 +892,14 @@ pytest_components_esp32h2_adc: - build_pytest_components_esp32h2 tags: [ esp32h2, adc ] +component_ut_pytest_esp32h2_ecdsa: + extends: + - .pytest_components_dir_template + - .rules:test:component_ut-esp32h2-ecdsa + needs: + - build_pytest_components_esp32h2 + tags: [ esp32h2, ecdsa_efuse ] + pytest_components_esp32c6_generic_multi_device: extends: - .pytest_components_dir_template diff --git a/conftest.py b/conftest.py index baad264ce3..967587f47b 100644 --- a/conftest.py +++ b/conftest.py @@ -121,6 +121,7 @@ ENV_MARKERS = { 'multi_dut_modbus_rs485': 'a pair of runners connected by RS485 bus', 'psramv0': 'Runner with PSRAM version 0', 'esp32eco3': 'Runner with esp32 eco3 connected', + 'ecdsa_efuse': 'Runner with test ECDSA private keys programmed in efuse', # multi-dut markers 'ieee802154': 'ieee802154 related tests should run on ieee802154 runners.', 'openthread_br': 'tests should be used for openthread border router.',