CI: Drop alpine-3.18-rootfs-export and use test-artefacts
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
@@ -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
@@ -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
Quoted 4 lines · Andrew Cooper
The Argo work already moved this artefact into the new form. Reuse that, and drop one test job.
Signed-off-by Andrew Cooper <[email protected]>
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@@ -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.19automation/gitlab-ci/test.yaml +3
-1@@ -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-commonSignature · 1 line
2.39.5
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.
Signed-off-by Andrew Cooper <[email protected]>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
Stefano Stabellini
Reviewed-byQuoted 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.
Signed-off-by Andrew Cooper <[email protected]>
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?
Stefano Stabellini
Reviewed-byQuoted 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.
Signed-off-by Andrew Cooper <[email protected]>
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?
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.
Signed-off-by Andrew Cooper <[email protected]>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:
Reviewed-by Stefano Stabellini <[email protected]>
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