Skip to contentSkip to conversation

CI: dev kernel allow failure

PATCH Applied Jon Mason 2 participants 3 messages Apr 2, 2023 – Apr 3, 2023

lore
Share & tools
lore

Jon Mason

author
#0 lore raw

PATCH v2 1/2 CI: dev kernel allow failure

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.

---
 .gitlab-ci.yml | 18 +++++++++++++++---
 1 file changed, 15 insertions(+), 3 deletions(-)
.gitlab-ci.yml +15 -3
index 28d0cc19..41d8940f 100644
@@ -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 
Signature · 1 line
2.25.1
author
#1 lore raw

PATCH v2 2/2 arm/linux-yocto: remove IP_VS config fragment

This config fragment was needed to get the dev kernel working. Since it in now allowed to fail, it is no longer necessary (and doesn't appear to be an issue).

---
 meta-arm/recipes-kernel/linux/files/no-ipvs.cfg     | 1 -
 meta-arm/recipes-kernel/linux/linux-yocto%.bbappend | 1 -
 2 files changed, 2 deletions(-)
 delete mode 100644 meta-arm/recipes-kernel/linux/files/no-ipvs.cfg
meta-arm/recipes-kernel/linux/files/no-ipvs.cfg deleted +0 -1
deleted file mode 100644
index fcfd2b21..00000000
@@ -1 +0,0 @@
-CONFIG_IP_VS=n
meta-arm/recipes-kernel/linux/linux-yocto%.bbappend +0 -1
index cab7f47e..883ed2ca 100644
@@ -10,7 +10,6 @@ COMPATIBLE_MACHINE:generic-arm64 = "generic-arm64"
 FILESEXTRAPATHS:prepend:generic-arm64 = "${ARMFILESPATHS}"
 SRC_URI:append:generic-arm64 = " \
     file://generic-arm64-kmeta;type=kmeta;destsuffix=generic-arm64-kmeta \
-    file://no-ipvs.cfg \
     "
 
 FILESEXTRAPATHS:prepend:qemuarm64-secureboot = "${ARMFILESPATHS}"
Signature · 1 line
2.25.1
Applied
#2 lore raw
In reply to Jon Mason
Quoted 3 lines · Jon Mason

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,

Signature · 1 line
Jon Mason <[email protected]>