diff mbox series

[5/8] automation/cirrus-ci: build XTF

Message ID 20250317121616.40687-6-roger.pau@citrix.com (mailing list archive)
State New
Headers show
Series automation/cirrus-ci: add smoke tests of the FreeBSD builds | expand

Commit Message

Roger Pau Monne March 17, 2025, 12:16 p.m. UTC
In preparation for using the XTF selftests to smoke test the FreeBSD based
Xen builds.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
---
I've used the current version of FreeBSD to build XTF, but it might be
safer to use the latest production (release) version instead.
---
 .cirrus.yml | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

Comments

Stefano Stabellini March 18, 2025, 12:07 a.m. UTC | #1
On Mon, 17 Mar 2025, Roger Pau Monne wrote:
> In preparation for using the XTF selftests to smoke test the FreeBSD based
> Xen builds.
> 
> Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
> ---
> I've used the current version of FreeBSD to build XTF, but it might be
> safer to use the latest production (release) version instead.

Yes, I think so, especially as the latest is a rolling distro?


> ---
>  .cirrus.yml | 24 ++++++++++++++++++++++++
>  1 file changed, 24 insertions(+)
> 
> diff --git a/.cirrus.yml b/.cirrus.yml
> index bda4dbe86a7c..d8a322acd54c 100644
> --- a/.cirrus.yml
> +++ b/.cirrus.yml
> @@ -12,6 +12,12 @@ freebsd_template: &FREEBSD_ENV
>      CIRRUS_CLONE_DEPTH: 1
>      CIRRUS_LOG_TIMESTAMP: true
>  
> +freebsd_template_latest: &FREEBSD_ENV_LATEST
> +  << : *FREEBSD_VERSIONS
> +  freebsd_instance:
> +    image_family: $FREEBSD_15
> +  << : *FREEBSD_ENV
> +
>  freebsd_configure_artifacts: &FREEBSD_CONFIGURE_ARTIFACTS
>    always:
>      rename_script:
> @@ -82,3 +88,21 @@ task:
>  
>    build_script:
>      - gmake -j`sysctl -n hw.ncpu` build-xen clang=y
> +
> +task:
> +  name: 'FreeBSD: XTF build'
> +  alias: xtf
> +
> +  << : *FREEBSD_ENV_LATEST
> +
> +  clone_script:
> +    - pkg install -y git
> +    - git clone --depth 1 https://xenbits.xen.org/git-http/xtf.git
> +
> +  install_script: pkg install -y gmake
> +
> +  build_script:
> +    - cd xtf
> +    - cc --version
> +    - git rev-parse HEAD
> +    - gmake -j`sysctl -n hw.ncpu` LLVM=y
> -- 
> 2.48.1
>
Roger Pau Monne March 18, 2025, 9:43 a.m. UTC | #2
On Mon, Mar 17, 2025 at 05:07:22PM -0700, Stefano Stabellini wrote:
> On Mon, 17 Mar 2025, Roger Pau Monne wrote:
> > In preparation for using the XTF selftests to smoke test the FreeBSD based
> > Xen builds.
> > 
> > Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
> > ---
> > I've used the current version of FreeBSD to build XTF, but it might be
> > safer to use the latest production (release) version instead.
> 
> Yes, I think so, especially as the latest is a rolling distro?

Kind of - it's even weirder, as part of the libraries are bundled with
the FreeBSD base system (together with the kernel).  When using current
there could be a window where the packages are built against stale
libraries, because the ones in base have been updated, but the
packages haven't been rebuilt yet.

I will switch to use the last production release.

Thanks, Roger.
diff mbox series

Patch

diff --git a/.cirrus.yml b/.cirrus.yml
index bda4dbe86a7c..d8a322acd54c 100644
--- a/.cirrus.yml
+++ b/.cirrus.yml
@@ -12,6 +12,12 @@  freebsd_template: &FREEBSD_ENV
     CIRRUS_CLONE_DEPTH: 1
     CIRRUS_LOG_TIMESTAMP: true
 
+freebsd_template_latest: &FREEBSD_ENV_LATEST
+  << : *FREEBSD_VERSIONS
+  freebsd_instance:
+    image_family: $FREEBSD_15
+  << : *FREEBSD_ENV
+
 freebsd_configure_artifacts: &FREEBSD_CONFIGURE_ARTIFACTS
   always:
     rename_script:
@@ -82,3 +88,21 @@  task:
 
   build_script:
     - gmake -j`sysctl -n hw.ncpu` build-xen clang=y
+
+task:
+  name: 'FreeBSD: XTF build'
+  alias: xtf
+
+  << : *FREEBSD_ENV_LATEST
+
+  clone_script:
+    - pkg install -y git
+    - git clone --depth 1 https://xenbits.xen.org/git-http/xtf.git
+
+  install_script: pkg install -y gmake
+
+  build_script:
+    - cd xtf
+    - cc --version
+    - git rev-parse HEAD
+    - gmake -j`sysctl -n hw.ncpu` LLVM=y