diff mbox series

[v2,1/2] CI: dev kernel allow failure

Message ID 20230402131659.560595-1-jon.mason@arm.com
State New
Headers show
Series [v2,1/2] CI: dev kernel allow failure | expand

Commit Message

Jon Mason April 2, 2023, 1:16 p.m. UTC
The dev kernel can frequently fail, and is not anything that is used in
production.  Allow failure to prevent CI issues but still notify that
there are potential issues.

Signed-off-by: Jon Mason <jon.mason@arm.com>
---
 .gitlab-ci.yml | 18 +++++++++++++++---
 1 file changed, 15 insertions(+), 3 deletions(-)

Comments

Jon Mason April 3, 2023, 3:21 a.m. UTC | #1
On Sun, 2 Apr 2023 09:16:58 -0400, Jon Mason wrote:
> The dev kernel can frequently fail, and is not anything that is used in
> production.  Allow failure to prevent CI issues but still notify that
> there are potential issues.

Applied, thanks!

[1/2] CI: dev kernel allow failure
      commit: 9e57aa4f501d5434c697dd350ec37870ca111e9d
[2/2] arm/linux-yocto: remove IP_VS config fragment
      commit: 3b4ab43d2f82b9db682a88dff4665807b62d1870

Best regards,
diff mbox series

Patch

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 28d0cc19..41d8940f 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -42,9 +42,21 @@  stages:
   extends: .setup
   variables:
     KUBERNETES_CPU_REQUEST: $CPU_REQUEST
-  only:
-    variables:
-      - $BUILD_ENABLE_REGEX == null || $CI_JOB_NAME =~ $BUILD_ENABLE_REGEX
+  rules:
+    # Don't run MR pipelines
+    - if: $CI_PIPELINE_SOURCE == "merge_request_event"
+      when: never
+    # Don't run pipelines for tags
+    - if: $CI_COMMIT_TAG
+      when: never
+    # Don't run if BUILD_ENABLE_REGEX is set, but the job doesn't match the regex
+    - if: '$BUILD_ENABLE_REGEX != null && $CI_JOB_NAME !~ $BUILD_ENABLE_REGEX'
+      when: never
+    # Allow the dev kernels to fail and not fail the overall build
+    - if: '$KERNEL == "linux-yocto-dev"'
+      allow_failure: true
+    # Catch all for everything else
+    - if: '$KERNEL != "linux-yocto-dev"'
   script:
     - KASFILES=$(./ci/jobs-to-kas "$CI_JOB_NAME")
     - kas dump --update --force-checkout --resolve-refs --resolve-env $KASFILES