Przeglądaj źródła

ci: run rules:labels job only with labels

Fu Hanxi 5 lat temu
rodzic
commit
c49a72b499

+ 0 - 4
.gitlab/ci/dependencies/dependencies.yml

@@ -131,12 +131,8 @@
     - [weekend_test, iperf_stress_test, nvs_coverage]
   labels:
     - "{0}"
-  included_in:
-    - test:any_test
 
 "labels:fuzzer_test-weekend_test":
   labels:
     - fuzzer_test
     - weekend_test
-  included_in:
-    - test:any_test

+ 1 - 1
.gitlab/ci/dependencies/generate_rules.py

@@ -215,7 +215,7 @@ class RulesWriter:
         if name.endswith('-production'):
             _rules.append(self.RULE_PROD)
         else:
-            if not name.endswith('-preview'):
+            if not (name.endswith('-preview') or name.startswith('labels:')):
                 _rules.append(self.RULE_NORM)
             for label in cfg['labels']:
                 _rules.append(self.RULE_LABEL_TEMPLATE.format(label))

+ 0 - 12
.gitlab/ci/rules.yml

@@ -745,7 +745,6 @@
 
 .rules:labels:fuzzer_test-weekend_test:
   rules:
-    - <<: *if-protected
     - <<: *if-label-fuzzer_test
     - <<: *if-title-fuzzer_test
     - <<: *if-label-weekend_test
@@ -753,19 +752,16 @@
 
 .rules:labels:iperf_stress_test:
   rules:
-    - <<: *if-protected
     - <<: *if-label-iperf_stress_test
     - <<: *if-title-iperf_stress_test
 
 .rules:labels:nvs_coverage:
   rules:
-    - <<: *if-protected
     - <<: *if-label-nvs_coverage
     - <<: *if-title-nvs_coverage
 
 .rules:labels:weekend_test:
   rules:
-    - <<: *if-protected
     - <<: *if-label-weekend_test
     - <<: *if-title-weekend_test
 
@@ -802,16 +798,10 @@
     - <<: *if-title-example_test_esp32s2
     - <<: *if-label-example_test_esp32s3
     - <<: *if-title-example_test_esp32s3
-    - <<: *if-label-fuzzer_test
-    - <<: *if-title-fuzzer_test
     - <<: *if-label-host_test
     - <<: *if-title-host_test
     - <<: *if-label-integration_test
     - <<: *if-title-integration_test
-    - <<: *if-label-iperf_stress_test
-    - <<: *if-title-iperf_stress_test
-    - <<: *if-label-nvs_coverage
-    - <<: *if-title-nvs_coverage
     - <<: *if-label-unit_test
     - <<: *if-title-unit_test
     - <<: *if-label-unit_test_esp32
@@ -822,8 +812,6 @@
     - <<: *if-title-unit_test_esp32s2
     - <<: *if-label-unit_test_esp32s3
     - <<: *if-title-unit_test_esp32s3
-    - <<: *if-label-weekend_test
-    - <<: *if-title-weekend_test
     - <<: *if-dev-push
       changes: *patterns-build
     - <<: *if-dev-push