Skip to contentSkip to conversation

CI: Drop alpine-3.18-rootfs-export and use test-artefacts

PATCH In review Andrew Cooper 2 participants 6 messages Oct 31, 2024 – Nov 4, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 CI: Drop alpine-3.18-rootfs-export and use test-artefacts

The Argo work already moved this artefact into the new form. Reuse that, and drop one test job.

---
CC: Anthony PERARD <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Michal Orzel <[email protected]>
CC: Doug Goldstein <[email protected]>
CC: Victor Lira <[email protected]>
CC: Marek Marczykowski-Górecki <[email protected]>

https://gitlab.com/xen-project/people/andyhhp/xen/-/pipelines/1522281815

---
 automation/gitlab-ci/build.yaml | 11 -----------
 automation/gitlab-ci/test.yaml  |  4 +++-
 2 files changed, 3 insertions(+), 12 deletions(-)
automation/gitlab-ci/build.yaml +0 -11
index af2b1ceba3a4..b5ca2c3f1833 100644
@@ -304,17 +304,6 @@ qemu-system-aarch64-6.0.0-arm32-export:
 
 # x86_64 test artifacts
 
-alpine-3.18-rootfs-export:
-  extends: .test-jobs-artifact-common
-  image: registry.gitlab.com/xen-project/xen/tests-artifacts/alpine:3.18
-  script:
-    - mkdir binaries && cp /initrd.tar.gz binaries/initrd.tar.gz
-  artifacts:
-    paths:
-      - binaries/initrd.tar.gz
-  tags:
-    - x86_64
-
 kernel-6.1.19-export:
   extends: .test-jobs-artifact-common
   image: registry.gitlab.com/xen-project/xen/tests-artifacts/kernel:6.1.19
automation/gitlab-ci/test.yaml +3 -1
index e8f57e87bd19..fe023dae0d42 100644
@@ -11,8 +11,10 @@
   - qemu-system-aarch64-6.0.0-arm32-export
 
 .x86-64-test-needs: &x86-64-test-needs
-  - alpine-3.18-rootfs-export
   - kernel-6.1.19-export
+  - project: xen-project/hardware/test-artifacts
+    job: x86_64-rootfs-alpine-3.18
+    ref: master
 
 .qemu-arm64:
   extends: .test-jobs-common
Signature · 1 line
2.39.5
#1 lore raw
Quoted 4 lines · Andrew Cooper

The Argo work already moved this artefact into the new form. Reuse that, and drop one test job.

This is good but should we also remove automation/tests-artifacts/alpine/3.18.dockerfile since we are at it?

Quoted 55 lines

---
CC: Anthony PERARD <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Michal Orzel <[email protected]>
CC: Doug Goldstein <[email protected]>
CC: Victor Lira <[email protected]>
CC: Marek Marczykowski-Górecki <[email protected]>

https://gitlab.com/xen-project/people/andyhhp/xen/-/pipelines/1522281815

---
 automation/gitlab-ci/build.yaml | 11 -----------
 automation/gitlab-ci/test.yaml  |  4 +++-
 2 files changed, 3 insertions(+), 12 deletions(-)
automation/gitlab-ci/build.yaml +0 -11
index af2b1ceba3a4..b5ca2c3f1833 100644
@@ -304,17 +304,6 @@ qemu-system-aarch64-6.0.0-arm32-export:
 
 # x86_64 test artifacts
 
-alpine-3.18-rootfs-export:
-  extends: .test-jobs-artifact-common
-  image: registry.gitlab.com/xen-project/xen/tests-artifacts/alpine:3.18
-  script:
-    - mkdir binaries && cp /initrd.tar.gz binaries/initrd.tar.gz
-  artifacts:
-    paths:
-      - binaries/initrd.tar.gz
-  tags:
-    - x86_64
-
 kernel-6.1.19-export:
   extends: .test-jobs-artifact-common
   image: registry.gitlab.com/xen-project/xen/tests-artifacts/kernel:6.1.19
automation/gitlab-ci/test.yaml +3 -1
index e8f57e87bd19..fe023dae0d42 100644
@@ -11,8 +11,10 @@
   - qemu-system-aarch64-6.0.0-arm32-export
 
 .x86-64-test-needs: &x86-64-test-needs
-  - alpine-3.18-rootfs-export
   - kernel-6.1.19-export
+  - project: xen-project/hardware/test-artifacts
+    job: x86_64-rootfs-alpine-3.18
+    ref: master
 
 .qemu-arm64:
   extends: .test-jobs-common
Signature · 1 line
2.39.5
#2 lore raw
Quoted 7 lines · Stefano Stabellini
Quoted 4 lines · Andrew Cooper

The Argo work already moved this artefact into the new form. Reuse that, and drop one test job.

This is good but should we also remove automation/tests-artifacts/alpine/3.18.dockerfile since we are at it?

Well, that's another thing that needs careful consideration.

That dockerfile needs updating in tandem with the build container (or lib$FOO.so's don't work when running the test), and it's hard enough to keep track of things when they're all in one repo.

~Andrew

Reviewed-by
#3 lore raw
Quoted 6 lines · Andrew Cooper
Quoted 5 lines · Stefano Stabellini
Quoted 4 lines · Andrew Cooper

The Argo work already moved this artefact into the new form. Reuse that, and drop one test job.

Quoted 8 lines
Quoted 2 lines

This is good but should we also remove automation/tests-artifacts/alpine/3.18.dockerfile since we are at it?

Well, that's another thing that needs careful consideration.

That dockerfile needs updating in tandem with the build container (or lib$FOO.so's don't work when running the test), and it's hard enough to keep track of things when they're all in one repo.

Uhm, you have a good point. Two things come to mind. First, for this patch:

Second, I think maybe it would be better for test-artifacts to use the build containers from xen.git/automation/build ? So that at least all build containers come from the same place?

For instance, we would have to add any missing dependencies to automation/build/alpine/3.18.dockerfile, from the list currently in images/alpine/x86_64-build.dockerfile. Only a couple of things are missing. Then remove images/alpine/x86_64-build.dockerfile, and use registry.gitlab.com/xen-project/xen/alpine:3.18 in the test-artifacts build jobs?

Reviewed-by
#4 lore raw
In reply to Andrew Cooper
Quoted 6 lines · Andrew Cooper
Quoted 5 lines · Stefano Stabellini
Quoted 4 lines · Andrew Cooper

The Argo work already moved this artefact into the new form. Reuse that, and drop one test job.

Quoted 8 lines
Quoted 2 lines

This is good but should we also remove automation/tests-artifacts/alpine/3.18.dockerfile since we are at it?

Well, that's another thing that needs careful consideration.

That dockerfile needs updating in tandem with the build container (or lib$FOO.so's don't work when running the test), and it's hard enough to keep track of things when they're all in one repo.

Uhm, you have a good point. Two things come to mind. First, for this patch:

Second, I think maybe it would be better for test-artifacts to use the build containers from xen.git/automation/build ? So that at least all build containers come from the same place?

For instance, we would have to add any missing dependencies to automation/build/alpine/3.18.dockerfile, from the list currently in images/alpine/x86_64-build.dockerfile. Only a couple of things are missing. Then remove images/alpine/x86_64-build.dockerfile, and use registry.gitlab.com/xen-project/xen/alpine:3.18 in the test-artifacts build jobs?

#5 lore raw
Quoted 11 lines · Stefano Stabellini
Quoted 10 lines · Andrew Cooper
Quoted 7 lines · Stefano Stabellini
Quoted 4 lines · Andrew Cooper

The Argo work already moved this artefact into the new form. Reuse that, and drop one test job.

This is good but should we also remove automation/tests-artifacts/alpine/3.18.dockerfile since we are at it?

Well, that's another thing that needs careful consideration.

Quoted 7 lines
Quoted 3 lines

That dockerfile needs updating in tandem with the build container (or lib$FOO.so's don't work when running the test), and it's hard enough to keep track of things when they're all in one repo.

Uhm, you have a good point. Two things come to mind. First, for this patch:

Thanks.

Quoted 10 lines

Second, I think maybe it would be better for test-artifacts to use the build containers from xen.git/automation/build ? So that at least all build containers come from the same place?

For instance, we would have to add any missing dependencies to automation/build/alpine/3.18.dockerfile, from the list currently in images/alpine/x86_64-build.dockerfile. Only a couple of things are missing. Then remove images/alpine/x86_64-build.dockerfile, and use registry.gitlab.com/xen-project/xen/alpine:3.18 in the test-artifacts build jobs?

First, I think it is important that hw/t-a uses main Xen's containers, rather than its own.  That way, all the dockerfiles are in one place.

As for merging the build and test-artefact dockerfile, I'm not so sure. They're almost completely dissimilar, and (amongst other things) we don't want to be including two full toolchains in the test initrd.

So, I think they do need to remain separate, but the build/test-artefact split is weird already because build/ is both build and some test, but not all.  I think things would benefit from relaying out automation/ somewhat.

~Andrew