Skip to contentSkip to conversation

automation/cirrus-ci: store xen/.config as an artifact

PATCH In review Roger Pau Monne 3 participants 5 messages Mar 10, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 automation/cirrus-ci: store xen/.config as an artifact

Always store xen/.config as an artifact, renamed to xen-config to match the naming used in the Gitlab CI tests.

---
 .cirrus.yml | 12 ++++++++++++
 1 file changed, 12 insertions(+)
.cirrus.yml +12 -0
index e2949d99d73a..1a39f5026f9a 100644
@@ -15,6 +15,14 @@ freebsd_template: &FREEBSD_ENV
     APPEND_INCLUDES: /usr/local/include
     CIRRUS_CLONE_DEPTH: 1
 
+freebsd_artifacts: &FREEBSD_ARTIFACTS
+  always:
+    rename_script:
+      - cp xen/.config xen-config
+    config_artifacts:
+      path: xen-config
+      type: text/plain
+
 freebsd_full_build_template: &FREEBSD_FULL_BUILD_TEMPLATE
   << : *FREEBSD_ENV
 
@@ -28,6 +36,8 @@ freebsd_full_build_template: &FREEBSD_FULL_BUILD_TEMPLATE
     - ./configure --with-system-seabios=/usr/local/share/seabios/bios.bin
     - gmake -j`sysctl -n hw.ncpu` clang=y
 
+  << : *FREEBSD_ARTIFACTS
+
 freebsd_randconfig_template: &FREEBSD_RANDCONFIG_TEMPLATE
   << : *FREEBSD_ENV
 
@@ -39,6 +49,8 @@ freebsd_randconfig_template: &FREEBSD_RANDCONFIG_TEMPLATE
             KCONFIG_ALLCONFIG=tools/kconfig/allrandom.config randconfig
     - gmake -j`sysctl -n hw.ncpu` build-xen clang=y
 
+  << : *FREEBSD_ARTIFACTS
+
 task:
   name: 'FreeBSD 13: full build'
   << : *FREEBSD_13
Signature · 1 line
2.48.1
#1 lore raw
Quoted 5 lines · Roger Pau Monne

Always store xen/.config as an artifact, renamed to xen-config to match the naming used in the Gitlab CI tests.

Looking at this, I suspect my failure was caused by trying to capture ".config" directly.

Quoted 9 lines
---
 .cirrus.yml | 12 ++++++++++++
 1 file changed, 12 insertions(+)
.cirrus.yml +0 -0
index e2949d99d73a..1a39f5026f9a 100644

.cirrus.yml freebsd_template: &FREEBSD_ENV · line 24

Quoted 10 lines
.cirrus.yml +7 -0
@@ -15,6 +15,14 @@ freebsd_template: &FREEBSD_ENV
     APPEND_INCLUDES: /usr/local/include
     CIRRUS_CLONE_DEPTH: 1
 
+freebsd_artifacts: &FREEBSD_ARTIFACTS
+  always:
+    rename_script:
+      - cp xen/.config xen-config
+    config_artifacts:
+      path: xen-config
+      type: text/plain

Can't this be part of freebsd_template directly?

Or is there an ordering problem with the regular build_script ?

~Andrew

#2 lore raw
Quoted 32 lines · Andrew Cooper
Quoted 5 lines · Roger Pau Monne

Always store xen/.config as an artifact, renamed to xen-config to match the naming used in the Gitlab CI tests.

Looking at this, I suspect my failure was caused by trying to capture ".config" directly.

Quoted 9 lines
---
 .cirrus.yml | 12 ++++++++++++
 1 file changed, 12 insertions(+)
.cirrus.yml +0 -0
index e2949d99d73a..1a39f5026f9a 100644

.cirrus.yml freebsd_template: &FREEBSD_ENV · line 24

Quoted 10 lines
.cirrus.yml +7 -0
@@ -15,6 +15,14 @@ freebsd_template: &FREEBSD_ENV
     APPEND_INCLUDES: /usr/local/include
     CIRRUS_CLONE_DEPTH: 1
 
+freebsd_artifacts: &FREEBSD_ARTIFACTS
+  always:
+    rename_script:
+      - cp xen/.config xen-config
+    config_artifacts:
+      path: xen-config
+      type: text/plain

Can't this be part of freebsd_template directly?

Quoted 1 line

Or is there an ordering problem with the regular build_script ?

Exactly, that was my first attempt (placing it in freebsd_template), but then the collection would be done before the build, as freebsd_template sets the env variables ahead of the build, see:

https://cirrus-ci.com/task/5086615544004608

Thanks, Roger.

Reviewed-by
#3 lore raw
Quoted 31 lines · Roger Pau Monné
Quoted 30 lines · Andrew Cooper
Quoted 5 lines · Roger Pau Monne

Always store xen/.config as an artifact, renamed to xen-config to match the naming used in the Gitlab CI tests.

Looking at this, I suspect my failure was caused by trying to capture ".config" directly.

Quoted 9 lines
---
 .cirrus.yml | 12 ++++++++++++
 1 file changed, 12 insertions(+)
.cirrus.yml +0 -0
index e2949d99d73a..1a39f5026f9a 100644

.cirrus.yml freebsd_template: &FREEBSD_ENV · line 24

Quoted 10 lines
.cirrus.yml +7 -0
@@ -15,6 +15,14 @@ freebsd_template: &FREEBSD_ENV
     APPEND_INCLUDES: /usr/local/include
     CIRRUS_CLONE_DEPTH: 1
 
+freebsd_artifacts: &FREEBSD_ARTIFACTS
+  always:
+    rename_script:
+      - cp xen/.config xen-config
+    config_artifacts:
+      path: xen-config
+      type: text/plain

Can't this be part of freebsd_template directly?

Quoted 8 lines
Quoted 1 line

Or is there an ordering problem with the regular build_script ?

Exactly, that was my first attempt (placing it in freebsd_template), but then the collection would be done before the build, as freebsd_template sets the env variables ahead of the build, see:

https://cirrus-ci.com/task/5086615544004608

Thanks, Roger.

Ok.

#4 lore raw
Quoted 37 lines · Andrew Cooper
Quoted 36 lines · Roger Pau Monné
Quoted 30 lines · Andrew Cooper
Quoted 5 lines · Roger Pau Monne

Always store xen/.config as an artifact, renamed to xen-config to match the naming used in the Gitlab CI tests.

Looking at this, I suspect my failure was caused by trying to capture ".config" directly.

Quoted 9 lines
---
 .cirrus.yml | 12 ++++++++++++
 1 file changed, 12 insertions(+)
.cirrus.yml +0 -0
index e2949d99d73a..1a39f5026f9a 100644

.cirrus.yml freebsd_template: &FREEBSD_ENV · line 24

Quoted 10 lines
.cirrus.yml +7 -0
@@ -15,6 +15,14 @@ freebsd_template: &FREEBSD_ENV
     APPEND_INCLUDES: /usr/local/include
     CIRRUS_CLONE_DEPTH: 1
 
+freebsd_artifacts: &FREEBSD_ARTIFACTS
+  always:
+    rename_script:
+      - cp xen/.config xen-config
+    config_artifacts:
+      path: xen-config
+      type: text/plain

Can't this be part of freebsd_template directly?

Quoted 1 line

Or is there an ordering problem with the regular build_script ?

Exactly, that was my first attempt (placing it in freebsd_template), but then the collection would be done before the build, as freebsd_template sets the env variables ahead of the build, see:

Quoted 7 lines
Quoted 3 lines

https://cirrus-ci.com/task/5086615544004608

Thanks, Roger.

Ok.