Factor out the registry into a common location. Fix the worflow name. List
all the stages. Set a default expiry of 1 month.
Note all the current jobs as legacy. Their naming scheme needs changing, and
we'll use this opportunity to switch formats too. However, the artefacts need
to stay using the old name until the final staging-* branch using them is
phased out.
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
---
CC: Roger Pau Monné <roger.pau@citrix.com>
CC: Stefano Stabellini <sstabellini@kernel.org>
CC: Michal Orzel <michal.orzel@amd.com>
CC: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
CC: Anthony PERARD <anthony.perard@vates.tech>
---
.gitlab-ci.yml | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 36ec6a7e1ee5..5a0a853e551d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,12 +1,19 @@
+variables:
+ REGISTRY: registry.gitlab.com/xen-project/hardware/test-artifacts
+
workflow:
- name: "xen test artifacts"
+ name: "Xen test artifacts"
+
+stages:
+ - build
.artifacts:
stage: build
image:
- name: registry.gitlab.com/xen-project/hardware/test-artifacts/${CONTAINER}
+ name: ${REGISTRY}/${CONTAINER}
artifacts:
name: "${CI_JOB_NAME_SLUG}"
+ expire_in: 1 month
paths:
- binaries/
exclude:
@@ -19,6 +26,9 @@ workflow:
variables:
CONTAINER: alpine:x86_64-build
+#
+# The jobs below here are legacy and being phased out.
+#
x86_64-kernel-linux-6.6.56:
extends: .x86_64-artifacts
script:
--
2.39.5
On Wed, Apr 09, 2025 at 05:36:58PM +0100, Andrew Cooper wrote:
> diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
> index 36ec6a7e1ee5..5a0a853e551d 100644
> --- a/.gitlab-ci.yml
> +++ b/.gitlab-ci.yml
> @@ -1,12 +1,19 @@
> +variables:
> + REGISTRY: registry.gitlab.com/xen-project/hardware/test-artifacts
Did you consider naming that variable XEN_REGISTRY like in the xen.git
repo? REGISTRY is a fine name too.
> +
> workflow:
> - name: "xen test artifacts"
> + name: "Xen test artifacts"
Isn't this a very useless workflow:name? Can I suggest to remove it
instead? I mean, currently, all pipeline appear to do the same thing:
https://gitlab.com/xen-project/hardware/test-artifacts/-/pipelines
Without "workflow:name" set, the default name will be the subject of the
top commit.
Thanks,
--
Anthony Perard | Vates XCP-ng Developer
XCP-ng & Xen Orchestra - Vates solutions
web: https://vates.tech
On 10/04/2025 11:07 am, Anthony PERARD wrote: > On Wed, Apr 09, 2025 at 05:36:58PM +0100, Andrew Cooper wrote: >> diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml >> index 36ec6a7e1ee5..5a0a853e551d 100644 >> --- a/.gitlab-ci.yml >> +++ b/.gitlab-ci.yml >> @@ -1,12 +1,19 @@ >> +variables: >> + REGISTRY: registry.gitlab.com/xen-project/hardware/test-artifacts > Did you consider naming that variable XEN_REGISTRY like in the xen.git > repo? REGISTRY is a fine name too. I did, except the makefile for rebuilding takes REGISTRY, so this removes a REGISTERY=$XEN_REGISTRY from the container rebuild logic. Which is another thing I haven't posted, because it turns out our docker-in-docker only works for x86, not for ARM. > >> + >> workflow: >> - name: "xen test artifacts" >> + name: "Xen test artifacts" > Isn't this a very useless workflow:name? Can I suggest to remove it > instead? I mean, currently, all pipeline appear to do the same thing: > > https://gitlab.com/xen-project/hardware/test-artifacts/-/pipelines > > Without "workflow:name" set, the default name will be the subject of the > top commit. I did wonder about the utility of it. I'll drop. ~Andrew
On Wed, Apr 09, 2025 at 05:36:58PM +0100, Andrew Cooper wrote:
> Factor out the registry into a common location. Fix the worflow name. List
> all the stages. Set a default expiry of 1 month.
This is okay, since last artifacts for a branch are preserved even if
expired.
> Note all the current jobs as legacy. Their naming scheme needs changing, and
> we'll use this opportunity to switch formats too. However, the artefacts need
> to stay using the old name until the final staging-* branch using them is
> phased out.
This could use a comment what should the new naming be.
> Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
> ---
> CC: Roger Pau Monné <roger.pau@citrix.com>
> CC: Stefano Stabellini <sstabellini@kernel.org>
> CC: Michal Orzel <michal.orzel@amd.com>
> CC: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
> CC: Anthony PERARD <anthony.perard@vates.tech>
> ---
> .gitlab-ci.yml | 14 ++++++++++++--
> 1 file changed, 12 insertions(+), 2 deletions(-)
>
> diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
> index 36ec6a7e1ee5..5a0a853e551d 100644
> --- a/.gitlab-ci.yml
> +++ b/.gitlab-ci.yml
> @@ -1,12 +1,19 @@
> +variables:
> + REGISTRY: registry.gitlab.com/xen-project/hardware/test-artifacts
> +
> workflow:
> - name: "xen test artifacts"
> + name: "Xen test artifacts"
> +
> +stages:
> + - build
>
> .artifacts:
> stage: build
> image:
> - name: registry.gitlab.com/xen-project/hardware/test-artifacts/${CONTAINER}
> + name: ${REGISTRY}/${CONTAINER}
> artifacts:
> name: "${CI_JOB_NAME_SLUG}"
> + expire_in: 1 month
> paths:
> - binaries/
> exclude:
> @@ -19,6 +26,9 @@ workflow:
> variables:
> CONTAINER: alpine:x86_64-build
>
> +#
> +# The jobs below here are legacy and being phased out.
> +#
> x86_64-kernel-linux-6.6.56:
> extends: .x86_64-artifacts
> script:
> --
> 2.39.5
>
--
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
On 09/04/2025 6:15 pm, Marek Marczykowski-Górecki wrote: > On Wed, Apr 09, 2025 at 05:36:58PM +0100, Andrew Cooper wrote: >> Factor out the registry into a common location. Fix the worflow name. List >> all the stages. Set a default expiry of 1 month. > This is okay, since last artifacts for a branch are preserved even if > expired. > >> Note all the current jobs as legacy. Their naming scheme needs changing, and >> we'll use this opportunity to switch formats too. However, the artefacts need >> to stay using the old name until the final staging-* branch using them is >> phased out. > This could use a comment what should the new naming be. Same as we use in Xen. linux-$VER-$ARCH, as shown later in the series, and alpine-$VER-$ARCH-rootfs (currently there's no $VER, and this is going to break horribly when moving off 3.18). ~Andrew
© 2016 - 2025 Red Hat, Inc.