Skip to contentSkip to conversation

CI: Disentangle hardware runner containers

PATCH In review Andrew Cooper 5 participants 16 messages Jun 9 – Jun 10 Arm/Zynq architecture

lore
Share & tools
lore
#0 lore raw

cover CI: Disentangle hardware runner containers

... and fix archlinux as I happened to get around to it.

There's a query on patch 3 which affects how we proceed.

Andrew Cooper (4):
CI: Fixes to containerize
CI: Rename xenial-xilinx to xilinx-hw-runner
CI: Introduce new qubes-hw-runner.dockerfile
CI: Rework the archlinux container

 .../build/alpine/qubes-hw-runner.dockerfile   | 21 ++++++++
 .../build/archlinux/current-x86_64.dockerfile | 33 ++++++++++++
 automation/build/archlinux/current.dockerfile | 53 -------------------
 .../build/ubuntu/xenial-xilinx.dockerfile     | 27 ----------
 .../build/ubuntu/xilinx-hw-runner.dockerfile  | 32 +++++++++++
 automation/gitlab-ci/build.yaml               |  8 +--
 automation/gitlab-ci/containers.yaml          |  4 +-
 automation/gitlab-ci/test.yaml                |  6 +--
 automation/scripts/containerize               |  9 ++--
 9 files changed, 99 insertions(+), 94 deletions(-)
 create mode 100644 automation/build/alpine/qubes-hw-runner.dockerfile
 create mode 100644 automation/build/archlinux/current-x86_64.dockerfile
 delete mode 100644 automation/build/archlinux/current.dockerfile
 delete mode 100644 automation/build/ubuntu/xenial-xilinx.dockerfile
 create mode 100644 automation/build/ubuntu/xilinx-hw-runner.dockerfile
Signature · 1 line
2.39.5
#1 lore raw

PATCH 1/4 CI: Fixes to containerize

These were missed from prior changes.

---
CC: Anthony PERARD <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Michal Orzel <[email protected]>
CC: Doug Goldstein <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Marek Marczykowski-Górecki <[email protected]>
CC: Oleksii Kurochko <[email protected]>

---
 automation/scripts/containerize | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
automation/scripts/containerize +3 -4
index 8bd2a847aac0..70494645e09f 100755
@@ -27,8 +27,7 @@ case "_${CONTAINER}" in
     _alpine) CONTAINER="${BASE}/alpine:3.18" ;;
     _alpine-arm64v8) CONTAINER="${BASE}/alpine:3.18-arm64v8" ;;
     _archlinux|_arch) CONTAINER="${BASE}/archlinux:current" ;;
-    _centos7) CONTAINER="${BASE}/centos:7" ;;
-    _fedora) CONTAINER="${BASE}/fedora:41-x86_64";;
+    _fedora) CONTAINER="${BASE}/fedora:43-x86_64";;
     _bullseye-ppc64le) CONTAINER="${BASE}/debian:11-ppc64le" ;;
     _bookworm-ppc64le) CONTAINER="${BASE}/debian:12-ppc64le" ;;
     _trixie-ppc64le) CONTAINER="${BASE}/debian:13-ppc64le" ;;
@@ -42,13 +41,13 @@ case "_${CONTAINER}" in
     _bookworm-arm64v8) CONTAINER="${BASE}/debian:12-arm64v8" ;;
     _bookworm-cppcheck) CONTAINER="${BASE}/debian:12-arm64v8-cppcheck" ;;
     _trixie-arm64v8) CONTAINER="${BASE}/debian:13-arm64v8" ;;
-    _opensuse-leap|_leap) CONTAINER="${BASE}/opensuse:leap-15.6-x86_64" ;;
+    _opensuse-leap|_leap) CONTAINER="${BASE}/opensuse:leap-16.0-x86_64" ;;
     _opensuse-tumbleweed|_tumbleweed) CONTAINER="${BASE}/opensuse:tumbleweed-x86_64" ;;
-    _xenial) CONTAINER="${BASE}/ubuntu:16.04-x86_64" ;;
     _bionic) CONTAINER="${BASE}/ubuntu:18.04-x86_64" ;;
     _focal)  CONTAINER="${BASE}/ubuntu:20.04-x86_64" ;;
     _jammy)  CONTAINER="${BASE}/ubuntu:22.04-x86_64" ;;
     _noble)  CONTAINER="${BASE}/ubuntu:24.04-x86_64" ;;
+    _resolute) CONTAINER="${BASE}/ubuntu:26.04-x86_64" ;;
 esac
 
 # Use this variable to control whether root should be used
Signature · 1 line
2.39.5
#4 lore raw

PATCH 2/4 CI: Rename xenial-xilinx to xilinx-hw-runner

In reply to Andrew Cooper

The container is tied to the runner, not a version of Ubuntu. Intentionally give it a generic name so it need not change in the future.

Apply standard cleanup to the dockerfile, except that it must continue to be a root container to drive real hardware. Explicitly install ca-certificates to compensate for --no-install-recommends.

No practical change.

---
CC: Anthony PERARD <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Michal Orzel <[email protected]>
CC: Doug Goldstein <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Marek Marczykowski-Górecki <[email protected]>
CC: Oleksii Kurochko <[email protected]>

---
 .../build/ubuntu/xenial-xilinx.dockerfile     | 27 ----------------
 .../build/ubuntu/xilinx-hw-runner.dockerfile  | 32 +++++++++++++++++++
 automation/gitlab-ci/test.yaml                |  4 +--
 3 files changed, 34 insertions(+), 29 deletions(-)
 delete mode 100644 automation/build/ubuntu/xenial-xilinx.dockerfile
 create mode 100644 automation/build/ubuntu/xilinx-hw-runner.dockerfile
automation/build/ubuntu/xenial-xilinx.dockerfile deleted +0 -27
deleted file mode 100644
index 6107d8b7711f..000000000000
@@ -1,27 +0,0 @@
-# syntax=docker/dockerfile:1
-FROM --platform=linux/amd64 ubuntu:16.04
-LABEL maintainer.name="The Xen Project " \
-      maintainer.email="[email protected]"
-
-ENV DEBIAN_FRONTEND=noninteractive
-ENV USER root
-
-RUN mkdir /build
-WORKDIR /build
-
-# board bringup depends
-RUN apt-get update && \
-    apt-get --quiet --yes install \
-        snmp \
-        snmp-mibs-downloader \
-        u-boot-tools \
-        device-tree-compiler \
-        cpio \
-        git \
-        gzip \
-        file \
-        expect \
-        && \
-        apt-get autoremove -y && \
-        apt-get clean && \
-        rm -rf /var/lib/apt/lists* /tmp/* /var/tmp/*
automation/build/ubuntu/xilinx-hw-runner.dockerfile new file +32 -0
new file mode 100644
index 000000000000..1855b11af354
@@ -0,0 +1,32 @@
+# syntax=docker/dockerfile:1
+FROM --platform=linux/amd64 ubuntu:16.04
+LABEL maintainer.name="The Xen Project"
+LABEL maintainer.email="[email protected]"
+
+ENV DEBIAN_FRONTEND=noninteractive
+
+RUN <<EOF
+#!/bin/bash
+    set -e
+
+    apt-get update
+
+    DEPS=(
+        ca-certificates
+        cpio
+        device-tree-compiler
+        expect
+        file
+        git
+        gzip
+        snmp
+        snmp-mibs-downloader
+        u-boot-tools
+    )
+
+    apt-get -y --no-install-recommends install "${DEPS[@]}"
+    rm -rf /var/lib/apt/lists/*
+EOF
+
+USER root
+WORKDIR /build
automation/gitlab-ci/test.yaml +2 -2
index 1722800c1541..89760b24e63a 100644
@@ -105,7 +105,7 @@
 .xilinx-arm64:
   extends: .test-jobs-common
   variables:
-    CONTAINER: ubuntu:xenial-xilinx
+    CONTAINER: ubuntu:xilinx-hw-runner
     LOGFILE: qemu-smoke-xilinx.log
     TEST_TIMEOUT_OVERRIDE: 120
   artifacts:
@@ -124,7 +124,7 @@
 .xilinx-x86_64:
   extends: .test-jobs-common
   variables:
-    CONTAINER: ubuntu:xenial-xilinx
+    CONTAINER: ubuntu:xilinx-hw-runner
     LOGFILE: xilinx-smoke-x86_64.log
     XEN_CMD_CONSOLE: "console=com2 com2=57600,8n1,0x2F8,4"
     TEST_BOARD: "crater"
Signature · 1 line
2.39.5
Reviewed-by on v1 2/4
#5 lore raw

Re: [PATCH 2/4] CI: Rename xenial-xilinx to xilinx-hw-runner

Quoted 10 lines · Andrew Cooper

The container is tied to the runner, not a version of Ubuntu. Intentionally give it a generic name so it need not change in the future.

Apply standard cleanup to the dockerfile, except that it must continue to be a root container to drive real hardware. Explicitly install ca-certificates to compensate for --no-install-recommends.

No practical change.

Thanks,

--
Anthony Perard | Vates XCP-ng Developer

XCP-ng & Xen Orchestra - Vates solutions

web: https://vates.tech

#6 lore raw

Re: [PATCH 2/4] CI: Rename xenial-xilinx to xilinx-hw-runner

Quoted 8 lines · Anthony PERARD
Quoted 7 lines · Andrew Cooper

The container is tied to the runner, not a version of Ubuntu. Intentionally give it a generic name so it need not change in the future.

Apply standard cleanup to the dockerfile, except that it must continue to be a root container to drive real hardware. Explicitly install ca-certificates to compensate for --no-install-recommends.

Quoted 5 lines
Quoted 3 lines

No practical change.

I don't have an opinion on the best name for this container

#7 lore raw

PATCH 3/4 CI: Introduce new qubes-hw-runner.dockerfile

In reply to Andrew Cooper

We want to make the build containers be non-root, but the hardware runner needs to continue being root. Split it out into a dedicated container. Intentionally give it a generic name so it need not change in the future.

No practical change.

---
CC: Anthony PERARD <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Michal Orzel <[email protected]>
CC: Doug Goldstein <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Marek Marczykowski-Górecki <[email protected]>
CC: Oleksii Kurochko <[email protected]>

I need to backport this patch to all trees (4.18 and later) before alpine:3.18-arm64v8 can be converted to be be non-root.

In all other cases we've been renaming the containers to bypass this problem, but alpine:3.18-arm64v8 is in the correct new form.

Alternatively, I could see about combining it with the Alpine update (which is long overdue and needs doing).

---
 .../build/alpine/qubes-hw-runner.dockerfile   | 21 +++++++++++++++++++
 automation/gitlab-ci/test.yaml                |  2 +-
 2 files changed, 22 insertions(+), 1 deletion(-)
 create mode 100644 automation/build/alpine/qubes-hw-runner.dockerfile
automation/build/alpine/qubes-hw-runner.dockerfile new file +21 -0
new file mode 100644
index 000000000000..0af17c6aabc6
@@ -0,0 +1,21 @@
+# syntax=docker/dockerfile:1
+FROM --platform=linux/arm64/v8 alpine:3.18
+LABEL maintainer.name="The Xen Project"
+LABEL maintainer.email="[email protected]"
+
+RUN apk --no-cache add bash
+
+RUN <<EOF
+#!/bin/bash
+    set -eu
+
+    DEPS=(
+          expect
+          openssh-client
+    )
+
+    apk add --no-cache "${DEPS[@]}"
+EOF
+
+USER root
+WORKDIR /build
automation/gitlab-ci/test.yaml +1 -1
index 89760b24e63a..70bb4bbb3b45 100644
@@ -145,7 +145,7 @@
   extends: .test-jobs-common
   variables:
     # the test controller runs on RPi4
-    CONTAINER: alpine:3.18-arm64v8
+    CONTAINER: alpine:qubes-hw-runner
     LOGFILE: smoke-test.log
     PCIDEV: "03:00.0"
     PCIDEV_INTR: "MSI-X"
Signature · 1 line
2.39.5
#8 lore raw

Re: [PATCH 3/4] CI: Introduce new qubes-hw-runner.dockerfile

Quoted 3 lines · Andrew Cooper

We want to make the build containers be non-root, but the hardware runner needs to continue being root. Split it out into a dedicated container. Intentionally give it a generic name so it need not change in the future.

I'd rather prefer to keep the alpine version in the container name, so future container updates can be made without breaking stable branches. I have a related patch for this at
https://gitlab.com/xen-project/people/marmarek/xen/-/commits/automation-linux?ref_type=heads,
but apparently not posted yet.

Quoted 12 lines

No practical change.

---
CC: Anthony PERARD <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Michal Orzel <[email protected]>
CC: Doug Goldstein <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Marek Marczykowski-Górecki <[email protected]>
CC: Oleksii Kurochko <[email protected]>

Quoted 2 lines

I need to backport this patch to all trees (4.18 and later) before alpine:3.18-arm64v8 can be converted to be be non-root.

Converted? Since 3.18 is EOL for quite some time already, simply phase it out slowly.

Quoted 5 lines

In all other cases we've been renaming the containers to bypass this problem, but alpine:3.18-arm64v8 is in the correct new form.

Alternatively, I could see about combining it with the Alpine update (which is long overdue and needs doing).

Yeah, this.

Quoted 49 lines
---
 .../build/alpine/qubes-hw-runner.dockerfile   | 21 +++++++++++++++++++
 automation/gitlab-ci/test.yaml                |  2 +-
 2 files changed, 22 insertions(+), 1 deletion(-)
 create mode 100644 automation/build/alpine/qubes-hw-runner.dockerfile
automation/build/alpine/qubes-hw-runner.dockerfile new file +21 -0
new file mode 100644
index 000000000000..0af17c6aabc6
@@ -0,0 +1,21 @@
+# syntax=docker/dockerfile:1
+FROM --platform=linux/arm64/v8 alpine:3.18
+LABEL maintainer.name="The Xen Project"
+LABEL maintainer.email="[email protected]"
+
+RUN apk --no-cache add bash
+
+RUN <<EOF
+#!/bin/bash
+    set -eu
+
+    DEPS=(
+          expect
+          openssh-client
+    )
+
+    apk add --no-cache "${DEPS[@]}"
+EOF
+
+USER root
+WORKDIR /build
automation/gitlab-ci/test.yaml +1 -1
index 89760b24e63a..70bb4bbb3b45 100644
@@ -145,7 +145,7 @@
   extends: .test-jobs-common
   variables:
     # the test controller runs on RPi4
-    CONTAINER: alpine:3.18-arm64v8
+    CONTAINER: alpine:qubes-hw-runner
     LOGFILE: smoke-test.log
     PCIDEV: "03:00.0"
     PCIDEV_INTR: "MSI-X"
Signature · 1 line
2.39.5
Signature · 3 lines
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
#9 lore raw

Re: [PATCH 3/4] CI: Introduce new qubes-hw-runner.dockerfile

Quoted 27 lines · Marek Marczykowski-Górecki
Quoted 3 lines · Andrew Cooper

We want to make the build containers be non-root, but the hardware runner needs to continue being root. Split it out into a dedicated container. Intentionally give it a generic name so it need not change in the future.

I'd rather prefer to keep the alpine version in the container name, so future container updates can be made without breaking stable branches. I have a related patch for this at
https://gitlab.com/xen-project/people/marmarek/xen/-/commits/automation-linux?ref_type=heads,
but apparently not posted yet.

Quoted 12 lines

No practical change.

---
CC: Anthony PERARD <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Michal Orzel <[email protected]>
CC: Doug Goldstein <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Marek Marczykowski-Górecki <[email protected]>
CC: Oleksii Kurochko <[email protected]>

Quoted 2 lines

I need to backport this patch to all trees (4.18 and later) before alpine:3.18-arm64v8 can be converted to be be non-root.

Converted? Since 3.18 is EOL for quite some time already, simply phase it out slowly.

Quoted 6 lines
Quoted 5 lines

In all other cases we've been renaming the containers to bypass this problem, but alpine:3.18-arm64v8 is in the correct new form.

Alternatively, I could see about combining it with the Alpine update (which is long overdue and needs doing).

Yeah, this.

Marek and I had a discussion about this last night.

It's going to be much easier if I merge with the unposted series.  That series needs to land too (all our alpine testing is currently on an obsolete version).

However as of last night, Alpine 3.24 has been released so I'll bump to that sorting this out.

~Andrew

#10 lore raw

PATCH 4/4 CI: Rework the archlinux container

In reply to Andrew Cooper

Rename it to have an x86_64 suffix, updating the build job names and scheduled rebuild task.

Apply standard cleanups. Trim the package list down to what is actually needed. Archlinux's base-devel contains most libraries, but some of those packages have never been dependenices for Xen, and a lot are QEMU dependenices which aren't useful owing to the lack of the ninja package.

This shrinks the container from 533MB to 427MB.

No practical change.

---
CC: Anthony PERARD <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Michal Orzel <[email protected]>
CC: Doug Goldstein <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Marek Marczykowski-Górecki <[email protected]>
CC: Oleksii Kurochko <[email protected]>

---
 .../build/archlinux/current-x86_64.dockerfile | 33 ++++++++++++
 automation/build/archlinux/current.dockerfile | 53 -------------------
 automation/gitlab-ci/build.yaml               |  8 +--
 automation/gitlab-ci/containers.yaml          |  4 +-
 automation/scripts/containerize               |  2 +-
 5 files changed, 40 insertions(+), 60 deletions(-)
 create mode 100644 automation/build/archlinux/current-x86_64.dockerfile
 delete mode 100644 automation/build/archlinux/current.dockerfile
automation/build/archlinux/current-x86_64.dockerfile new file +33 -0
new file mode 100644
index 000000000000..bbd5fa72d2d6
@@ -0,0 +1,33 @@
+# syntax=docker/dockerfile:1
+FROM --platform=linux/amd64 archlinux:base-devel
+LABEL maintainer.name="The Xen Project"
+LABEL maintainer.email="[email protected]"
+
+RUN <<EOF
+#!/bin/bash
+    set -eu
+
+    useradd --create-home user
+
+    pacman-key --init
+
+    DEPS=(
+        # Tools (general)
+        git
+        wget
+        # libxenguest dombuilder
+        lzo
+        # libacpi
+        iasl
+        # Python bindings
+        python-setuptools
+        # Golang bindings
+        go
+    )
+
+    pacman -S --refresh --sysupgrade --noconfirm --noprogressbar --needed "${DEPS[@]}"
+    pacman -S --clean --clean
+EOF
+
+USER user
+WORKDIR /build
automation/build/archlinux/current.dockerfile deleted +0 -53

53 lines not on this page · raw message

automation/gitlab-ci/build.yaml +4 -4
index acd4acf13138..9eda40dc6e57 100644
@@ -523,16 +523,16 @@ alpine-3.18-clang-debug:
   variables:
     CONTAINER: alpine:3.18
 
-archlinux-gcc:
+archlinux-x86_64-gcc:
   extends: .gcc-x86-64-build
   variables:
-    CONTAINER: archlinux:current
+    CONTAINER: archlinux:current-x86_64
   allow_failure: true
 
-archlinux-gcc-debug:
+archlinux-x86_64-gcc-debug:
   extends: .gcc-x86-64-build-debug
   variables:
-    CONTAINER: archlinux:current
+    CONTAINER: archlinux:current-x86_64
   allow_failure: true
 
 debian-12-x86_64-gcc-ibt:
automation/gitlab-ci/containers.yaml +2 -2
index 8b702a1d8209..8e1c42a0c5a2 100644
@@ -16,11 +16,11 @@
   after_script:
     - docker logout
 
-container-archlinux-current:
+container-archlinux-current-x86_64:
   extends:
     - .container-build-tmpl
   variables:
-    CONTAINER: "archlinux:current"
+    CONTAINER: "archlinux:current-x86_64"
 
 container-opensuse-tumbleweed-x86_64:
   extends:
automation/scripts/containerize +1 -1
index 70494645e09f..f3c2b48b113f 100755
@@ -26,7 +26,7 @@ BASE="registry.gitlab.com/xen-project/xen"
 case "_${CONTAINER}" in
     _alpine) CONTAINER="${BASE}/alpine:3.18" ;;
     _alpine-arm64v8) CONTAINER="${BASE}/alpine:3.18-arm64v8" ;;
-    _archlinux|_arch) CONTAINER="${BASE}/archlinux:current" ;;
+    _archlinux|_arch) CONTAINER="${BASE}/archlinux-x86_64:current" ;;
     _fedora) CONTAINER="${BASE}/fedora:43-x86_64";;
     _bullseye-ppc64le) CONTAINER="${BASE}/debian:11-ppc64le" ;;
     _bookworm-ppc64le) CONTAINER="${BASE}/debian:12-ppc64le" ;;
Signature · 1 line
2.39.5
Reviewed-by on v1 4/4
#11 lore raw

Re: [PATCH 4/4] CI: Rework the archlinux container

Review

Quoted 5 lines · Andrew Cooper

--- a/automation/build/archlinux/current.dockerfile

(quoted diff) +2 -1
-    && yes | pacman -S --clean --clean
 
+++ b/automation/build/archlinux/current-x86_64.dockerfile
+    pacman -S --clean --clean

The "yes |" is needed, otherwise the files aren't removed from the caches.

I've only got, without:
:: Do you want to remove ALL files from cache? [y/N] :: Do you want to remove unused repositories? [Y/n]
and no messages about the files been cleaned.

I tried --noconfirm, but seems to just get the default response, so nothing is removed.

With "yes|", I drop from 1.32 GB to 1.26 GB on my machine.

automation/scripts/containerize BASE="registry.gitlab.com/xen-project/xen" · line 29

Quoted 10 lines
automation/scripts/containerize +1 -1
index 70494645e09f..f3c2b48b113f 100755
@@ -26,7 +26,7 @@ BASE="registry.gitlab.com/xen-project/xen"
 case "_${CONTAINER}" in
     _alpine) CONTAINER="${BASE}/alpine:3.18" ;;
     _alpine-arm64v8) CONTAINER="${BASE}/alpine:3.18-arm64v8" ;;
-    _archlinux|_arch) CONTAINER="${BASE}/archlinux:current" ;;
+    _archlinux|_arch) CONTAINER="${BASE}/archlinux-x86_64:current" ;;

The "-x86_64" should be added to "current".

With both fix:

Thanks,

--
Anthony Perard | Vates XCP-ng Developer

XCP-ng & Xen Orchestra - Vates solutions

web: https://vates.tech

#12 lore raw

Re: [PATCH 4/4] CI: Rework the archlinux container

Quoted 8 lines · Anthony PERARD

Review

Quoted 4 lines · Andrew Cooper

--- a/automation/build/archlinux/current.dockerfile

(quoted diff) +2 -1
-    && yes | pacman -S --clean --clean
+++ b/automation/build/archlinux/current-x86_64.dockerfile
+    pacman -S --clean --clean

The "yes |" is needed, otherwise the files aren't removed from the caches.

Quoted 6 lines

I've only got, without:
:: Do you want to remove ALL files from cache? [y/N] :: Do you want to remove unused repositories? [Y/n]
and no messages about the files been cleaned.

I tried --noconfirm, but seems to just get the default response, so nothing is removed.

Lovely :(

Quoted 15 lines

With "yes|", I drop from 1.32 GB to 1.26 GB on my machine.

automation/scripts/containerize BASE="registry.gitlab.com/xen-project/xen" · line 29

Quoted 10 lines
automation/scripts/containerize +1 -1
index 70494645e09f..f3c2b48b113f 100755
@@ -26,7 +26,7 @@ BASE="registry.gitlab.com/xen-project/xen"
 case "_${CONTAINER}" in
     _alpine) CONTAINER="${BASE}/alpine:3.18" ;;
     _alpine-arm64v8) CONTAINER="${BASE}/alpine:3.18-arm64v8" ;;
-    _archlinux|_arch) CONTAINER="${BASE}/archlinux:current" ;;
+    _archlinux|_arch) CONTAINER="${BASE}/archlinux-x86_64:current" ;;

The "-x86_64" should be added to "current".

Quoted 2 lines

With both fix:

Thanks.

~Andrew

#13 lore raw

Re: [PATCH 4/4] CI: Rework the archlinux container

Quoted 9 lines · Andrew Cooper
Quoted 8 lines · Anthony PERARD

Review

Quoted 4 lines · Andrew Cooper

--- a/automation/build/archlinux/current.dockerfile

(quoted diff) +2 -1
-    && yes | pacman -S --clean --clean
+++ b/automation/build/archlinux/current-x86_64.dockerfile
+    pacman -S --clean --clean

The "yes |" is needed, otherwise the files aren't removed from the caches.

Quoted 9 lines
Quoted 6 lines

I've only got, without:
:: Do you want to remove ALL files from cache? [y/N] :: Do you want to remove unused repositories? [Y/n]
and no messages about the files been cleaned.

I tried --noconfirm, but seems to just get the default response, so nothing is removed.

Lovely :(

Quoted 1 line

With "yes|", I drop from 1.32 GB to 1.26 GB on my machine.

Gitlab says that the "yes |" alone shrunk the resulting container from 427MB to 380MB, so a substantial saving.

~Andrew

#14 lore raw

Re: [PATCH 4/4] CI: Rework the archlinux container

Quoted 14 lines · Andrew Cooper
Quoted 13 lines · Andrew Cooper
Quoted 12 lines · Anthony PERARD

Review

Quoted 4 lines · Andrew Cooper

--- a/automation/build/archlinux/current.dockerfile

(quoted diff) +2 -1
-    && yes | pacman -S --clean --clean
+++ b/automation/build/archlinux/current-x86_64.dockerfile
+    pacman -S --clean --clean

The "yes |" is needed, otherwise the files aren't removed from the caches.

I've only got, without:
:: Do you want to remove ALL files from cache? [y/N] :: Do you want to remove unused repositories? [Y/n]
and no messages about the files been cleaned.

Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

I tried --noconfirm, but seems to just get the default response, so nothing is removed.

Lovely :(

Quoted 1 line

With "yes|", I drop from 1.32 GB to 1.26 GB on my machine.

Gitlab says that the "yes |" alone shrunk the resulting container from 427MB to 380MB, so a substantial saving.

Nice!

Consider my acked-by

#15 lore raw
In reply to Andrew Cooper
Quoted 20 lines · Andrew Cooper

... and fix archlinux as I happened to get around to it.

There's a query on patch 3 which affects how we proceed.

Andrew Cooper (4):
CI: Fixes to containerize
CI: Rename xenial-xilinx to xilinx-hw-runner
CI: Introduce new qubes-hw-runner.dockerfile
CI: Rework the archlinux container

  .../build/alpine/qubes-hw-runner.dockerfile   | 21 ++++++++
  .../build/archlinux/current-x86_64.dockerfile | 33 ++++++++++++
  automation/build/archlinux/current.dockerfile | 53 -------------------
  .../build/ubuntu/xenial-xilinx.dockerfile     | 27 ----------
  .../build/ubuntu/xilinx-hw-runner.dockerfile  | 32 +++++++++++
  automation/gitlab-ci/build.yaml               |  8 +--
  automation/gitlab-ci/containers.yaml          |  4 +-
  automation/gitlab-ci/test.yaml                |  6 +--
  automation/scripts/containerize               |  9 ++--
  9 files changed, 99 insertions(+), 94 deletions(-)
Quoted 6 lines

create mode 100644 automation/build/alpine/qubes-hw-runner.dockerfile create mode 100644 automation/build/archlinux/current-x86_64.dockerfile delete mode 100644 automation/build/archlinux/current.dockerfile delete mode 100644 automation/build/ubuntu/xenial-xilinx.dockerfile create mode 100644 automation/build/ubuntu/xilinx-hw-runner.dockerfile

Thanks.

~ Oleksii