[sysadmin/buildstream-management] /: ci: add support for tracking kde-linux-packages

Harald Sitter <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 977ca92b3c365be5675e7a53bff4528f1149e2e9 by Harald Sitter.
Committed on 03/08/2026 at 20:13.
Pushed by sitter into branch 'master'.

ci: add support for tracking kde-linux-packages

M  +28   -1    .gitlab-ci.yml
M  +6    -1    track.sh

https://invent.kde.org/sysadmin/buildstream-management/-/commit/977ca92b3c365be5675e7a53bff4528f1149e2e9

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 4a7e3d3..c11a60e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,6 +1,18 @@
 # SPDX-License-Identifier: BSD-2-Clause
 # SPDX-FileCopyrightText: None
 
+spec:
+  inputs:
+    track-job:
+      options: [
+        "none",
+        "kde-buildstream",
+        "kde-linux-packages"
+      ]
+      default: "none"
+
+---
+
 include:
   - project: sysadmin/ci-utilities
     file:
@@ -8,13 +20,28 @@ include:
 
 variables:
   KDECI_BUILD: "TRUE"
+  YOLO_PUSH_TO_MASTER: "FALSE"
 
 track_kde-buildstream:on-schedule:
   stage: build
   tags:
     - amd64
   rules:
-    - if: $CI_PIPELINE_SOURCE == "schedule"
+    - if: $CI_PIPELINE_SOURCE == "schedule" && "$[[ inputs.track-job ]]" == "kde-buildstream"
   image: storage.kde.org/vm-images/kde-linux-builder
   script:
     - TARGET_PROJECT=packaging/kde-buildstream ./track.sh **.bst
+
+track_kde-linux-packages:on-schedule:
+  stage: build
+  variables:
+    # The packages pipeline builds A LOT of stuff and doesn't have nearly as good caching so it is rather wasteful.
+    # Push to master directly. We have other mechanisms to prevent breakage later down the pipeline.
+    YOLO_PUSH_TO_MASTER: "TRUE"
+  tags:
+    - amd64
+  rules:
+    - if: $CI_PIPELINE_SOURCE == "schedule" && "$[[ inputs.track-job ]]" == "kde-linux-packages"
+  image: storage.kde.org/vm-images/kde-linux-builder
+  script:
+    - TARGET_PROJECT=kde-linux/kde-linux-packages ./track.sh kde-buildstream.bst
diff --git a/track.sh b/track.sh
index a85cd47..462c37b 100755
--- a/track.sh
+++ b/track.sh
@@ -23,4 +23,9 @@ git config user.email "[email protected]"
 git config user.name "KDE CI"
 git add .
 git commit -m "Automatic buildstream source track update"
-git push origin HEAD:work/ci/bst-source-track --force --push-option merge_request.create
+if [ "$YOLO_PUSH_TO_MASTER" = "TRUE" ]; then
+    git pull --rebase origin master
+    git push origin HEAD:master
+else
+    git push origin HEAD:work/ci/bst-source-track --force --push-option merge_request.create
+fi
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.