diff --git a/.gitlab/ci/dependencies/dependencies.yml b/.gitlab/ci/dependencies/dependencies.yml index 2dce3397b3..a8601518a8 100644 --- a/.gitlab/ci/dependencies/dependencies.yml +++ b/.gitlab/ci/dependencies/dependencies.yml @@ -77,6 +77,46 @@ build:integration_test: included_in: - build:target_test +# ------------- +# Special Cases +# ------------- +"build:{0}-esp32s3": + matrix: + - *target_test + labels: + - build + - "{0}" + - target_test + patterns: + - build_components + - build_system + - build_target_test + - "{0}" + - "build-{0}" + included_in: + - "build:{0}" + - build:target_test + +"build:component_ut-esp32s3": + matrix: + - *target_test + labels: + - build + - component_ut + - unit_test + - target_test + patterns: + - build_components + - build_system + - build_target_test + - component_ut + - unit_test + - build-component_ut + - build-unit_test + included_in: + - "build:{0}" + - build:target_test + #################### # Target Test Jobs # #################### @@ -116,6 +156,27 @@ build:integration_test: - "build:component_ut-{0}" - build:target_test +# due to the lack of runners, s3 tests will only be triggered by label +"test:{0}-esp32s3": + matrix: + - *target_test + labels: + - "{0}_esp32s3" + included_in: + - "build:{0}" + - "build:{0}-esp32s3" + - build:target_test + +# overwrite the esp32s3 component ut again +"test:component_ut-esp32s3": # component_ut will trigger by unit_test as well, since now we have 2 kinds of UT + labels: + - "component_ut_esp32s3" + - "unit_test_esp32s3" + included_in: + - build:component_ut + - "build:component_ut-esp32s3" + - build:target_test + "test:integration_test": labels: - integration_test diff --git a/.gitlab/ci/rules.yml b/.gitlab/ci/rules.yml index c3dc165ea8..b11e5a9928 100644 --- a/.gitlab/ci/rules.yml +++ b/.gitlab/ci/rules.yml @@ -453,6 +453,8 @@ changes: *patterns-build_target_test - <<: *if-dev-push changes: *patterns-component_ut + - <<: *if-dev-push + changes: *patterns-unit_test .rules:build:component_ut-esp32: rules: @@ -574,6 +576,8 @@ changes: *patterns-build_target_test - <<: *if-dev-push changes: *patterns-component_ut + - <<: *if-dev-push + changes: *patterns-unit_test .rules:build:custom_test: rules: @@ -1208,13 +1212,8 @@ - <<: *if-protected - <<: *if-label-build-only when: never - - <<: *if-label-component_ut - <<: *if-label-component_ut_esp32s3 - - <<: *if-label-target_test - - <<: *if-label-unit_test - <<: *if-label-unit_test_esp32s3 - - <<: *if-dev-push - changes: *patterns-component_ut .rules:test:custom_test-esp32: rules: @@ -1288,11 +1287,7 @@ - <<: *if-protected - <<: *if-label-build-only when: never - - <<: *if-label-custom_test - <<: *if-label-custom_test_esp32s3 - - <<: *if-label-target_test - - <<: *if-dev-push - changes: *patterns-custom_test .rules:test:example_test-esp32: rules: @@ -1376,13 +1371,7 @@ - <<: *if-protected - <<: *if-label-build-only when: never - - <<: *if-label-example_test - <<: *if-label-example_test_esp32s3 - - <<: *if-label-target_test - - <<: *if-dev-push - changes: *patterns-build-example_test - - <<: *if-dev-push - changes: *patterns-example_test .rules:test:host_test: rules: @@ -1490,8 +1479,4 @@ - <<: *if-protected - <<: *if-label-build-only when: never - - <<: *if-label-target_test - - <<: *if-label-unit_test - <<: *if-label-unit_test_esp32s3 - - <<: *if-dev-push - changes: *patterns-unit_test