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

[XEN PATCH v2 2/4] automation: add a templates for test jobs


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Anthony PERARD <anthony.perard@xxxxxxxxxx>
  • Date: Thu, 21 Jul 2022 13:46:00 +0100
  • Authentication-results: esa2.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none
  • Cc: <wl@xxxxxxx>, <andrew.cooper3@xxxxxxxxxx>, <sstabellini@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Doug Goldstein <cardoe@xxxxxxxxxx>
  • Delivery-date: Thu, 21 Jul 2022 12:46:16 +0000
  • Ironport-data: A9a23:fAblU64YbhhkzbLN3BdB1wxR2vbMJYAXvycv29bIaENr3hjvzP4J6zDmcekdWPrztNzMcNnPa4wPmlJv28rgB4V/YzDj45YBnoOIehmiOdS4m1JWvl0QTppBfgQHDvWpMe/+9kbRsIQ8+YpucBSt17uEG9ZvDfCwbx9gmzDTinl1BbEx9wiViOdJZqX+8z5UTDW2jj3khVj/5fuhK441iX77DitHHmNyQBbiMwJAS3wcQ98JIokfWyDR9F10mcJ+Y7NCDXDhjUJnNrTGknQ9qMWajTdf2ui02dBsxgL8DZcXf7iAxSmdqbrYe4GiQPhqEMiOd5k/4OMHiean+wTGHA9vNDfss+kcJqxEncjCqkT7zl2cDR2I+RxpKb2HbFjzm6ssSlvNWyyt/cBpH71KBvRMIzUMFIPp1g1+WDJVujT6VhO9OSJ+Wz9hQLX5Dtj0uzzniOGBV+ONYvz/V676WN21YMFUTbaeHwVwhGpdA6+KauZF2xtdB/YZiO9f2PB7P9jh2JWoiKYh+G13BtizrMQAdqaNL+yj6LJlb8qhdjxbQT9LrNsSTxLGQ6miivWDI/LxJtdo7LQgrA1iKfYEdXfuq3vFM/jT4wrIfJ+U16RKbkvfFF3SPoMGe4jqO563V2px2L1AzPWhlutgkrBC4Z7inJiIMjzbyANmY5wD3K+27VmsuOJ245VT8v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FcqSEiBTpls4IpzudjFQTdbSW1cmwGTtQOhZmbWjQE0xqrt0o/+1zOHkWrZOj7cU1di3WYULSmnZGSaMi1lPlCroaNfutr3L3F2ai7G4qj6TqFqByfAX8w63+i3Yfo8LygVHlh7Xlx56qfXYEDJbq0w0azFAvxzd6G58UsTJh4Q0pJMpdlgGaKcduqvQe85Qi/OhTq4TWFaJR3EpxJOu8iZL1qozqhvYau2xeEisYsy+84j1ugSr2X2HYLKuQbboQT5AGyD0KZBIknximlxC/GZrIj7+QHUfJDRkddUoyCd73v5+aXlaFfw4ytdhNI/QabIaGenW1pACZRJm8yAO7YueIHdMuZ8nqqw8AgSSiDmDMo6LZSUXiVvZwKArVyzOsmvPtIxEt9WWAg76b5x/ZJBdOqjtWBCcUxuHVb2J3YCOuIdzEyQIOrCQHm/Qdnhda3Lzik+pHG0w1rEWSNIDOZatqypi+crX0wV38tySXtL9sU9p6HOdzT5Cx+wU7ZaWRtGXO+Jtu8yEee+OOsZKuIdQla2QPpC8D4yee53GwpuZnUuO3XljuCQE76Gmk93Koq4WdnXhE02TvRz/MFvT+5DWlHGA04teEj52fq3mPu4V9JQZBOpJnVb0AXK+qID392fzkCNR3mWnajiEsnD+//82/fmxHP9W0kKF4dnZyjM6L8emVX1EcdnJ7OxuGB260dID5v5QdaHBUIo6RO4xC7Tk+XSSdqMV9utDptCL5xMEQUgABHHtei4Miwdp9thTvxaxEXNDcXJITDwYGVyrxOj/hifehm2cYPA37h8yE23LcNMX5HuBbZGd+cxDTHbvUMQjeDw6wXCqTZ/NPcyU7VSVxldUvDKcenLPEsdQ3vfBNdoqEAXQtX5mzBjWX/8mWUlQe0syOM9p/My8U+WxX6Ox/NzOVmgu547EiOfwNI3ue8Issx28tyPp0p4NXpxm2bGUDpk1HlRpw==
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

Allow to set common configuration from a single place for all tests
jobs.

Signed-off-by: Anthony PERARD <anthony.perard@xxxxxxxxxx>
---

Notes:
    v2:
    - rebased, to include "qemu-smoke-arm32-gcc".

 automation/gitlab-ci/test.yaml | 81 ++++++++--------------------------
 1 file changed, 18 insertions(+), 63 deletions(-)

diff --git a/automation/gitlab-ci/test.yaml b/automation/gitlab-ci/test.yaml
index 42cd725a12..53b43801f4 100644
--- a/automation/gitlab-ci/test.yaml
+++ b/automation/gitlab-ci/test.yaml
@@ -1,7 +1,15 @@
-# Test jobs
-build-each-commit-gcc:
+.test-jobs-common:
   stage: test
   image: registry.gitlab.com/xen-project/xen/${CONTAINER}
+  except:
+    - master
+    - smoke
+    - /^coverity-tested\/.*/
+    - /^stable-.*/
+
+# Test jobs
+build-each-commit-gcc:
+  extends: .test-jobs-common
   variables:
     CONTAINER: debian:stretch
     XEN_TARGET_ARCH: x86_64
@@ -16,15 +24,9 @@ build-each-commit-gcc:
   dependencies: []
   tags:
     - x86_64
-  except:
-    - master
-    - smoke
-    - /^coverity-tested\/.*/
-    - /^stable-.*/
 
 qemu-alpine-arm64-gcc:
-  stage: test
-  image: registry.gitlab.com/xen-project/xen/${CONTAINER}
+  extends: .test-jobs-common
   variables:
     CONTAINER: debian:unstable-arm64v8
   script:
@@ -41,15 +43,9 @@ qemu-alpine-arm64-gcc:
     when: always
   tags:
     - arm64
-  except:
-    - master
-    - smoke
-    - /^coverity-tested\/.*/
-    - /^stable-.*/
 
 qemu-alpine-x86_64-gcc:
-  stage: test
-  image: registry.gitlab.com/xen-project/xen/${CONTAINER}
+  extends: .test-jobs-common
   variables:
     CONTAINER: debian:stretch
   script:
@@ -65,15 +61,9 @@ qemu-alpine-x86_64-gcc:
     when: always
   tags:
     - x86_64
-  except:
-    - master
-    - smoke
-    - /^coverity-tested\/.*/
-    - /^stable-.*/
 
 qemu-smoke-arm64-gcc:
-  stage: test
-  image: registry.gitlab.com/xen-project/xen/${CONTAINER}
+  extends: .test-jobs-common
   variables:
     CONTAINER: debian:unstable-arm64v8
   script:
@@ -89,15 +79,9 @@ qemu-smoke-arm64-gcc:
     when: always
   tags:
     - arm64
-  except:
-    - master
-    - smoke
-    - /^coverity-tested\/.*/
-    - /^stable-.*/
 
 qemu-smoke-arm32-gcc:
-  stage: test
-  image: registry.gitlab.com/xen-project/xen/${CONTAINER}
+  extends: .test-jobs-common
   variables:
     CONTAINER: debian:unstable-arm64v8
   script:
@@ -112,15 +96,9 @@ qemu-smoke-arm32-gcc:
     when: always
   tags:
     - arm64
-  except:
-    - master
-    - smoke
-    - /^coverity-tested\/.*/
-    - /^stable-.*/
 
 qemu-smoke-x86-64-gcc:
-  stage: test
-  image: registry.gitlab.com/xen-project/xen/${CONTAINER}
+  extends: .test-jobs-common
   variables:
     CONTAINER: debian:stretch
   script:
@@ -134,15 +112,9 @@ qemu-smoke-x86-64-gcc:
     - debian-stretch-gcc-debug
   tags:
     - x86_64
-  except:
-    - master
-    - smoke
-    - /^coverity-tested\/.*/
-    - /^stable-.*/
 
 qemu-smoke-x86-64-clang:
-  stage: test
-  image: registry.gitlab.com/xen-project/xen/${CONTAINER}
+  extends: .test-jobs-common
   variables:
     CONTAINER: debian:stretch
   script:
@@ -156,15 +128,9 @@ qemu-smoke-x86-64-clang:
     - debian-unstable-clang-debug
   tags:
     - x86_64
-  except:
-    - master
-    - smoke
-    - /^coverity-tested\/.*/
-    - /^stable-.*/
 
 qemu-smoke-x86-64-gcc-pvh:
-  stage: test
-  image: registry.gitlab.com/xen-project/xen/${CONTAINER}
+  extends: .test-jobs-common
   variables:
     CONTAINER: debian:stretch
   script:
@@ -178,15 +144,9 @@ qemu-smoke-x86-64-gcc-pvh:
     - debian-stretch-gcc-debug
   tags:
     - x86_64
-  except:
-    - master
-    - smoke
-    - /^coverity-tested\/.*/
-    - /^stable-.*/
 
 qemu-smoke-x86-64-clang-pvh:
-  stage: test
-  image: registry.gitlab.com/xen-project/xen/${CONTAINER}
+  extends: .test-jobs-common
   variables:
     CONTAINER: debian:stretch
   script:
@@ -200,8 +160,3 @@ qemu-smoke-x86-64-clang-pvh:
     - debian-unstable-clang-debug
   tags:
     - x86_64
-  except:
-    - master
-    - smoke
-    - /^coverity-tested\/.*/
-    - /^stable-.*/
-- 
Anthony PERARD




 


Rackspace

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