[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[XEN PATCH v1] automation: edit rules for analyze jobs


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Victor Lira <victorm.lira@xxxxxxx>
  • Date: Wed, 20 May 2026 22:58:20 +0000
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0)
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=tiyW2ai+Q1Srlz+/1YbnLpsnAw5fJtpOfsPhS6Mo7Sc=; b=YyJeL3lupJK/MiE9Jrmvafp9FKxwtS/psS4FhdszmiDsGloBBcwXOiRA9P5GLrIqLKmmf4mH8uusPH9SFsQaioiQnB25TxxxJcKNpRPPg6WU4/HAiAn2IYnHjKZZ4giD3lbyC7k+oHtGa0vIXJfnSCBQ/mcVTuy5IZJHBm3sfN9l7lPvpmWHxGbAPSyasx24h3aHdFkw2EiE6QUAyDGgFR4QJcwWTaQY3Ctv+dgxUHxdV6wQ8hhJL8EZcrW9NmnYomOiTWjskyu4xwxrmBD3rof+XdUEcJFqs2+c95ON9r5Jbr+4zcH365V7qmQKwYzc+tjy0HUnzqnR+r7HAsZzJA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=JlzwQeRL5Ce3DmW4e7pFnX7b0TAtRIASWdfsA8Q46bKbNVayemtmXthwFT3bNc1C+WAMtdY++OPEpF01CJe+a8hwLxTZWZCK2YklJT03xYyayLUxq1JcbT6Pa3tVAkvwUMIsRXRLP2ak7soX2tvJu67/idaq8giU9PDmjkyavAnqHAXxSLWBMt0faN79HSYXQLVApjYU+K/oVcoJ82jBUtMzhZrg5twuvf9Uaal4eBzvuFZmH6393LfYRlb3t9ck1dljsyMcLTIUdLRU+ABYN/qxep9t4h7lRbQRIRwQzhgBDjeecaFG9bep38hCTuU3gVp3rbXEU+cBHouScGNIjg==
  • Authentication-results: eu.smtp.expurgate.cloud; dkim=pass header.s=selector1 header.d=amd.com header.i="@amd.com" header.h="From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck"
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Doug Goldstein <cardoe@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>
  • Delivery-date: Wed, 20 May 2026 22:58:39 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

rewrite analyze jobs rules to simplify the conditions under which the
jobs appear and run

after these changes:
 - to appear, all jobs must be selected (SELECTED_JOBS_ONLY), have token
   (WTOKEN), and be in an allowed path (CI_PROJECT_PATH), this is specified in
   .eclair-analysis
 - the subcategories have their own exceptions, keeping current behavior:
   - ECLAIR_SAFETY/ECLAIR_TESTING can force enable some
   - eclair-testing jobs will not appear outside xen-project/people

This assumes we don't use pipeline sources other than push/api/schedule.

Signed-off-by: Victor Lira <victorm.lira@xxxxxxx>
---
this preseves the current behavior of the -testing jobs running anywhere on
xen-project/people but maybe we want to limit it to whoever is doing the
testing, or in some other way

tested on my own repo xen-project/people/victormlira/xen

push 
https://gitlab.com/xen-project/people/victormlira/xen/-/pipelines/2541858231
push /eclair-x86_64-amd$|alpine-3.18-gcc$/ 
https://gitlab.com/xen-project/people/victormlira/xen/-/pipelines/2541859057
push /alpine-3.18-gcc$/ 
https://gitlab.com/xen-project/people/victormlira/xen/-/pipelines/2541859605
schedule 
https://gitlab.com/xen-project/people/victormlira/xen/-/pipelines/2541871689
schedule /eclair-x86_64-amd$|alpine-3.18-gcc$/ 
https://gitlab.com/xen-project/people/victormlira/xen/-/pipelines/2541875599
schudule /alpine-3.18-gcc$/ 
https://gitlab.com/xen-project/people/victormlira/xen/-/pipelines/2541876512
---
 automation/gitlab-ci/analyze.yaml | 20 +++++++++-----------
 1 file changed, 9 insertions(+), 11 deletions(-)

diff --git a/automation/gitlab-ci/analyze.yaml 
b/automation/gitlab-ci/analyze.yaml
index b3f99f472d..687af4d452 100644
--- a/automation/gitlab-ci/analyze.yaml
+++ b/automation/gitlab-ci/analyze.yaml
@@ -19,25 +19,25 @@
       - '*.log'
       - '*.json'
     reports:
       codequality: gl-code-quality-report.json
   rules:
-    - if: $WTOKEN == null
-      when: never
-    - when: always
+    - if: $CI_JOB_NAME =~ $SELECTED_JOBS_ONLY && $WTOKEN
+          && $CI_PROJECT_PATH =~ /^xen-project\/hardware\/.*$/
+      when: on_success
+    - if: $CI_JOB_NAME =~ $SELECTED_JOBS_ONLY && $WTOKEN
+          && $CI_PROJECT_PATH =~ /^xen-project\/people\/.*$/
+      when: manual
+      allow_failure: true
+
   needs: []

 .eclair-analysis:triggered:
   extends: .eclair-analysis
   rules:
-    - if: $CI_PIPELINE_SOURCE == "schedule"
+    - if: $CI_PIPELINE_SOURCE != "push" && $CI_PIPELINE_SOURCE != "api"
       when: never
-    - if: $CI_JOB_NAME !~ $SELECTED_JOBS_ONLY
-      when: never
-    - if: $WTOKEN && $CI_PROJECT_PATH =~ /^xen-project\/people\/.*$/
-      when: manual
-      allow_failure: true
     - !reference [.eclair-analysis, rules]

 eclair-x86_64-allcode:
   extends: .eclair-analysis:triggered
   variables:
@@ -218,12 +218,10 @@ eclair-ARM64-amd:
 .eclair-analysis:on-schedule:
   extends: .eclair-analysis
   rules:
     - if: $CI_PIPELINE_SOURCE != "schedule"
       when: never
-    - if: $CI_JOB_NAME !~ $SELECTED_JOBS_ONLY
-      when: never
     - !reference [.eclair-analysis, rules]

 eclair-x86_64-allrules:on-schedule:
   extends: .eclair-analysis:on-schedule
   variables:
--
2.54.0



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.