[Concept,22/24] pickman: Skip push pipeline for MR branches

Message ID 20251217022823.392557-23-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>

Remove SJG_LAB CI variable from push since lab tests are now
triggered automatically for MR pipelines via .gitlab-ci.yml rules.
Keep ci.skip to avoid running a pipeline on push; the MR pipeline
will run when the merge request is created.

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

 tools/pickman/gitlab_api.py | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
  

Patch

diff --git a/tools/pickman/gitlab_api.py b/tools/pickman/gitlab_api.py
index 0db251bd9b8..50c3ec67909 100644
--- a/tools/pickman/gitlab_api.py
+++ b/tools/pickman/gitlab_api.py
@@ -146,10 +146,8 @@  def push_branch(remote, branch, force=False):
         bool: True on success
     """
     try:
-        # Use ci.skip to avoid duplicate pipeline (MR pipeline will still run)
-        # Set SJG_LAB=1 CI variable for the MR pipeline
-        args = ['git', 'push', '-u', '-o', 'ci.skip',
-                '-o', 'ci.variable=SJG_LAB=1']
+        # Skip push pipeline; MR pipeline will run when MR is created
+        args = ['git', 'push', '-u', '-o', 'ci.skip']
         if force:
             args.append('--force-with-lease')
         args.extend([remote, branch])