[Concept,23/24] gitlab-ci: Run lab tests automatically for MR pipelines

Message ID 20251217022823.392557-24-sjg@u-boot.org
State New
Headers
Series pickman: Refine the feature set |

Commit Message

Simon Glass Dec. 17, 2025, 2:28 a.m. UTC
  From: Simon Glass <simon.glass@canonical.com>

Add rule to run lab tests automatically when the pipeline is triggered
by a merge request event. This allows pickman-created MRs to have lab
tests run without needing to set SJG_LAB=1 manually.

Co-developed-by: Claude Opus 4.5 <noreply@anthropic.com>
Signed-off-by: Simon Glass <simon.glass@canonical.com>
---

 .gitlab-ci.yml | 2 ++
 1 file changed, 2 insertions(+)
  

Patch

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 0d63bd4c358..ed517d123b0 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -722,6 +722,8 @@  coreboot test.py:
   rules:
     - if: $SJG_LAB == $ROLE || $SJG_LAB == "1"
       when: always
+    - if: $CI_PIPELINE_SOURCE == "merge_request_event"
+      when: always
     - if: $SJG_LAB != "" && $SJG_LAB != "1" && $SJG_LAB != $ROLE
       when: never
     - if: $SJG_LAB == ""