goss-org / goss

Quick and Easy server testing/validation
https://goss.rocks
Apache License 2.0
5.5k stars 470 forks source link

Build own docker images for integration tests #901

Open dklimpel opened 1 month ago

dklimpel commented 1 month ago
Checklist

Description of change

Add own github workflow to build the docker images from the test and store them in a repo (ghcr.io). This can resolve the dependency on external repos in the future and ensure more up-to-date images or tests.

There are no significant changes at the Dockerfiles. I have therefore updated the md5 files so that the tests continue to run unchanged.

#6 [2/4] RUN pacman -Sy --noconfirm systemd-sysvcompat
#6 0.061 :: Synchronizing package databases...
#6 2.666  core downloading...
#6 2.666  extra downloading...
#6 2.671 resolving dependencies...
#6 2.838 :: There are 2 providers available for dbus-units:
#6 2.838 :: Repository core
#6 2.838    1) dbus-broker-units  2) dbus-daemon-units
#6 2.838 
#6 2.838 Enter a number (default=1): 
#6 2.838 looking for conflicting packages...
#6 2.839 
#6 2.839 Package (5)              Old Version  New Version  Net Change  Download Size
#6 2.839 
#6 2.839 core/dbus-broker                      36-2           0.35 MiB       0.15 MiB
#6 2.839 core/dbus-broker-units                36-2           0.00 MiB       0.00 MiB
#6 2.839 core/systemd             255.2-1      255.5-4       -0.47 MiB       8.00 MiB
#6 2.839 core/systemd-libs        255.2-1      255.5-4       -0.06 MiB       1.07 MiB
#6 2.839 core/systemd-sysvcompat  255.2-1      255.5-4        0.00 MiB       0.01 MiB
#6 2.839 
#6 2.839 Total Download Size:    9.22 MiB
#6 2.839 Total Installed Size:  33.84 MiB
#6 2.839 Net Upgrade Size:      -0.18 MiB
#6 2.839 
#6 2.839 :: Proceed with installation? [Y/n] 
#6 2.839 :: Retrieving packages...
#6 3.718  systemd-255.5-4-x86_64 downloading...
#6 3.718  systemd-libs-255.5-4-x86_64 downloading...
#6 3.718  dbus-broker-36-2-x86_64 downloading...
#6 3.718  systemd-sysvcompat-255.5-4-x86_64 downloading...
#6 3.718  dbus-broker-units-36-2-x86_64 downloading...
#6 3.718 checking keyring...
#6 4.912 checking package integrity...
#6 5.067 loading package files...
#6 5.075 checking for file conflicts...
#6 5.076 error: failed to commit transaction (conflicting files)
#6 5.122 dbus-broker-units: /usr/lib/systemd/system/dbus.service exists in filesystem (owned by dbus)
#6 5.122 dbus-broker-units: /usr/lib/systemd/user/dbus.service exists in filesystem (owned by dbus)
#6 5.122 Errors occurred, no packages were upgraded.
#6 ERROR: process "/bin/sh -c pacman -Sy --noconfirm systemd-sysvcompat" did not complete successfully: exit code: 1
------
 > [2/4] RUN pacman -Sy --noconfirm systemd-sysvcompat:
3.718  systemd-sysvcompat-255.5-4-x86_64 downloading...
3.718  dbus-broker-units-36-2-x86_64 downloading...
3.718 checking keyring...
4.912 checking package integrity...
5.067 loading package files...
5.075 checking for file conflicts...
5.076 error: failed to commit transaction (conflicting files)
5.122 dbus-broker-units: /usr/lib/systemd/system/dbus.service exists in filesystem (owned by dbus)
5.122 dbus-broker-units: /usr/lib/systemd/user/dbus.service exists in filesystem (owned by dbus)
5.122 Errors occurred, no packages were upgraded.
------
Dockerfile_arch:4
--------------------
   2 |     MAINTAINER @siddharthist
   3 |     
   4 | >>> RUN pacman -Sy --noconfirm systemd-sysvcompat
   5 |     RUN ln -s /does_not_exist /foo && \
   6 |         chmod 700 ~root
--------------------
ERROR: failed to solve: process "/bin/sh -c pacman -Sy --noconfirm systemd-sysvcompat" did not complete successfully: exit code: 1

Related to:

dklimpel commented 2 days ago

How would a person go about running this locally if they need to debug / reproduce what CI is doing?

You have this options for debugging.