Skip to content

Commit

Permalink
Move (almost) all C8S jobs to C9S
Browse files Browse the repository at this point in the history
So we won't get caught off guard when C8S is EOLed at the end of May.
  • Loading branch information
mrc0mmand committed Mar 27, 2024
1 parent 169e921 commit c839e0f
Show file tree
Hide file tree
Showing 15 changed files with 31 additions and 33 deletions.
2 changes: 1 addition & 1 deletion jenkins/runners/upstream-coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ fi
git clone https://github.com/systemd/systemd-centos-ci
cd systemd-centos-ci

./agent-control.py --pool metal-ec2-c5n-centos-8s-x86_64 --vagrant arch-coverage ${ARGS:+"${ARGS[@]}"}
./agent-control.py --pool metal-ec2-c5n-centos-9s-x86_64 --vagrant arch-coverage ${ARGS:+"${ARGS[@]}"}
4 changes: 2 additions & 2 deletions jenkins/runners/upstream-cron-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ cd systemd-centos-ci
run_arch_remaining_sanitizer_job() {
# Run the "leftover" ASan/UBSan job (i.e. the one which is not run by
# the `upstream-vagrant-archlinux-sanitizers` job for each PR)
./agent-control.py --pool metal-ec2-c5n-centos-8s-x86_64 \
./agent-control.py --pool metal-ec2-c5n-centos-9s-x86_64 \
--vagrant arch-sanitizers-gcc \
--no-index \
${ARGS:+"${ARGS[@]}"}

#./agent-control.py --pool metal-ec2-c5n-centos-8s-x86_64 \
#./agent-control.py --pool metal-ec2-c5n-centos-9s-x86_64 \
# --vagrant arch-sanitizers-clang \
# --no-index \
# ${ARGS:+"${ARGS[@]}"}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ git clone https://github.com/systemd/systemd-centos-ci
cd systemd-centos-ci

# Run both jobs, since we don't run the other-half-of-this-job in cron in this case
./agent-control.py --pool metal-ec2-c5n-centos-8s-x86_64 \
./agent-control.py --pool metal-ec2-c5n-centos-9s-x86_64 \
--bootstrap-args='-s https://github.com/systemd/systemd-stable.git' \
--no-index \
--vagrant arch-sanitizers-gcc \
${ARGS:+"${ARGS[@]}"}

./agent-control.py --pool metal-ec2-c5n-centos-8s-x86_64 \
./agent-control.py --pool metal-ec2-c5n-centos-9s-x86_64 \
--bootstrap-args='-s https://github.com/systemd/systemd-stable.git' \
--no-index \
--vagrant arch-sanitizers-clang \
Expand Down
4 changes: 2 additions & 2 deletions jenkins/runners/upstream-vagrant-archlinux-sanitizers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ fi
git clone https://github.com/systemd/systemd-centos-ci
cd systemd-centos-ci

#./agent-control.py --pool metal-ec2-c5n-centos-8s-x86_64 \
#./agent-control.py --pool metal-ec2-c5n-centos-9s-x86_64 \
# --vagrant arch-sanitizers-gcc \
# --no-index \
# ${ARGS:+"${ARGS[@]}"}

./agent-control.py --pool metal-ec2-c5n-centos-8s-x86_64 \
./agent-control.py --pool metal-ec2-c5n-centos-9s-x86_64 \
--vagrant arch-sanitizers-clang \
--no-index \
${ARGS:+"${ARGS[@]}"}
2 changes: 1 addition & 1 deletion jenkins/runners/upstream-vagrant-archlinux-stable.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ fi
git clone https://github.com/systemd/systemd-centos-ci
cd systemd-centos-ci

./agent-control.py --pool metal-ec2-c5n-centos-8s-x86_64 \
./agent-control.py --pool metal-ec2-c5n-centos-9s-x86_64 \
--bootstrap-args='-s https://github.com/systemd/systemd-stable.git' \
--vagrant arch \
${ARGS:+"${ARGS[@]}"}
2 changes: 1 addition & 1 deletion jenkins/runners/upstream-vagrant-archlinux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ fi
git clone https://github.com/systemd/systemd-centos-ci
cd systemd-centos-ci

./agent-control.py --pool metal-ec2-c5n-centos-8s-x86_64 --vagrant arch ${ARGS:+"${ARGS[@]}"}
./agent-control.py --pool metal-ec2-c5n-centos-9s-x86_64 --vagrant arch ${ARGS:+"${ARGS[@]}"}
2 changes: 1 addition & 1 deletion jenkins/runners/upstream-vagrant-rawhide-selinux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ ARGS=()
git clone https://github.com/systemd/systemd-centos-ci
cd systemd-centos-ci

./agent-control.py --pool metal-ec2-c5n-centos-8s-x86_64 --vagrant rawhide-selinux ${ARGS:+"${ARGS[@]}"}
./agent-control.py --pool metal-ec2-c5n-centos-9s-x86_64 --vagrant rawhide-selinux ${ARGS:+"${ARGS[@]}"}
10 changes: 5 additions & 5 deletions jenkins/runners/vagrant-make-cache.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ set +e
echo "Updating the systemd Arch Linux image"

# Generate a new image with '-new' suffix
./agent-control.py --pool metal-ec2-c5n-centos-8s-x86_64 --no-index --vagrant-sync Vagrantfile_archlinux_systemd ${ARGS:+"${ARGS[@]}"}
./agent-control.py --pool metal-ec2-c5n-centos-9s-x86_64 --no-index --vagrant-sync Vagrantfile_archlinux_systemd ${ARGS:+"${ARGS[@]}"}
# Check if it doesn't break anything
./agent-control.py --pool metal-ec2-c5n-centos-8s-x86_64 --no-index --vagrant arch-new ${ARGS:+"${ARGS[@]}"}
./agent-control.py --pool metal-ec2-c5n-centos-8s-x86_64 --no-index --vagrant arch-sanitizers-clang-new ${ARGS:+"${ARGS[@]}"}
./agent-control.py --pool metal-ec2-c5n-centos-8s-x86_64 --no-index --vagrant arch-sanitizers-gcc-new ${ARGS:+"${ARGS[@]}"}
./agent-control.py --pool metal-ec2-c5n-centos-9s-x86_64 --no-index --vagrant arch-new ${ARGS:+"${ARGS[@]}"}
./agent-control.py --pool metal-ec2-c5n-centos-9s-x86_64 --no-index --vagrant arch-sanitizers-clang-new ${ARGS:+"${ARGS[@]}"}
./agent-control.py --pool metal-ec2-c5n-centos-9s-x86_64 --no-index --vagrant arch-sanitizers-gcc-new ${ARGS:+"${ARGS[@]}"}
# Overwrite the production image with the just tested one. Since the CentOS CI
# artifact server supports only rsync protocol, use a single-purpose script
# to do that
Expand All @@ -67,7 +67,7 @@ fi
echo "Updating the systemd/selinux Fedora Rawhide image"

# Generate a new image with '-new' suffix
./agent-control.py --pool metal-ec2-c5n-centos-8s-x86_64 --no-index --vagrant-sync Vagrantfile_rawhide_selinux ${ARGS:+"${ARGS[@]}"}
./agent-control.py --pool metal-ec2-c5n-centos-9s-x86_64 --no-index --vagrant-sync Vagrantfile_rawhide_selinux ${ARGS:+"${ARGS[@]}"}
# Overwrite the production image with the just tested one. Since the CentOS CI
# artifact server supports only rsync protocol, use a single-purpose script
# to do that
Expand Down
4 changes: 2 additions & 2 deletions vagrant/boxes/Vagrantfile_archlinux_systemd
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Vagrant.configure("2") do |config|
libvirt.machine_type = "q35"

# Emulate UEFI using OVMF
libvirt.loader = "/usr/share/OVMF/OVMF_CODE.fd"
libvirt.loader = "/usr/share/edk2/ovmf/OVMF_CODE.fd"
libvirt.nvram = ovmf_nvram

# Emulate TPM 2.0 using swtpm
Expand All @@ -33,7 +33,7 @@ Vagrant.configure("2") do |config|
end

config.trigger.before [:up, :provision] do |trigger|
trigger.run = {inline: "cp -u /usr/share/OVMF/OVMF_VARS.fd #{ovmf_nvram}"}
trigger.run = {inline: "cp -u /usr/share/edk2/ovmf/OVMF_VARS.fd #{ovmf_nvram}"}
end

config.trigger.after [:destroy] do |trigger|
Expand Down
4 changes: 2 additions & 2 deletions vagrant/boxes/Vagrantfile_rawhide_selinux
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Vagrant.configure("2") do |config|
libvirt.machine_type = "q35"

# Emulate UEFI using OVMF
libvirt.loader = "/usr/share/OVMF/OVMF_CODE.fd"
libvirt.loader = "/usr/share/edk2/ovmf/OVMF_CODE.fd"
libvirt.nvram = ovmf_nvram

# Emulate TPM 2.0 using swtpm
Expand All @@ -34,7 +34,7 @@ Vagrant.configure("2") do |config|
end

config.trigger.before [:up, :provision] do |trigger|
trigger.run = {inline: "cp -u /usr/share/OVMF/OVMF_VARS.fd #{ovmf_nvram}"}
trigger.run = {inline: "cp -u /usr/share/edk2/ovmf/OVMF_VARS.fd #{ovmf_nvram}"}
end

config.trigger.after [:destroy] do |trigger|
Expand Down
1 change: 1 addition & 0 deletions vagrant/test_scripts/test-arch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ fi

# Disable swap, since it seems to cause CPU soft lock-ups in some cases
swapoff -av
swapon --show

pushd /build || { echo >&2 "Can't pushd to /build"; exit 1; }

Expand Down
4 changes: 2 additions & 2 deletions vagrant/vagrant-make-cache.sh
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,13 @@ Vagrant.configure("2") do |config|
config.vm.provider :libvirt do |libvirt|
libvirt.random :model => 'random'
libvirt.machine_type = "q35"
libvirt.loader = "/usr/share/OVMF/OVMF_CODE.fd"
libvirt.loader = "/usr/share/edk2/ovmf/OVMF_CODE.fd"
libvirt.nvram = "/tmp/OVMF_VARS.fd"
end
end
EOF
cp -fvL /usr/share/OVMF/OVMF_VARS.fd /tmp
cp -fvL /usr/share/edk2/ovmf/OVMF_VARS.fd /tmp
chmod o+rw /tmp/OVMF_VARS.fd
vagrant up --no-tty --provider=libvirt
# shellcheck disable=SC2016
Expand Down
5 changes: 1 addition & 4 deletions vagrant/vagrant-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ fi

if ! vagrant plugin list | grep vagrant-libvirt; then
# Install vagrant-libvirt dependencies
cmd_retry dnf -y install gcc libguestfs-tools-c libvirt libvirt-devel libgcrypt make qemu-kvm ruby-devel
cmd_retry dnf -y --enablerepo crb install gcc libguestfs-tools-c libvirt libvirt-devel libgcrypt make qemu-kvm ruby-devel
# Start libvirt daemon
systemctl start libvirtd
systemctl status libvirtd
Expand All @@ -88,9 +88,6 @@ fi
vagrant --version
vagrant plugin list

# Install OVMF so we can enable UEFI in the Vagrant VMs
# Local mirror of https://copr.fedorainfracloud.org/coprs/mrc0mmand/systemd-centos-ci-centos8/
cmd_retry dnf -y config-manager --add-repo "https://jenkins-systemd.apps.ocp.cloud.ci.centos.org/job/reposync/lastSuccessfulBuild/artifact/repos/mrc0mmand-systemd-centos-ci-centos8-stream8/mrc0mmand-systemd-centos-ci-centos8-stream8.repo"
cmd_retry dnf -y install edk2-ovmf

# Configure NFS for Vagrant's shared folders
Expand Down
8 changes: 4 additions & 4 deletions vagrant/vagrantfiles/Vagrantfile_arch
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ Vagrant.configure("2") do |config|
# Collect output from a serial console into a file to make debugging easier
# The -nographic option allows us to collect BIOS messages as well
libvirt.qemuargs :value => "-nographic"
libvirt.qemuargs :value => "-serial"
libvirt.graphics_type = "none"
# This file needs to be collected later by vagrant-ci-wrapper.sh
libvirt.qemuargs :value => "file:/tmp/vagrant-arch-serial-console.log"
libvirt.serial :type => "file", :source => {:path => "/tmp/vagrant-arch-serial-console.log"}

# Pass through /dev/random from the host to the VM
libvirt.random :model => 'random'
Expand All @@ -67,7 +67,7 @@ Vagrant.configure("2") do |config|
libvirt.machine_type = "q35"

# Emulate UEFI using OVMF
libvirt.loader = "/usr/share/OVMF/OVMF_CODE.fd"
libvirt.loader = "/usr/share/edk2/ovmf/OVMF_CODE.fd"
libvirt.nvram = ovmf_nvram

# Emulate TPM 2.0 using swtpm
Expand All @@ -84,7 +84,7 @@ Vagrant.configure("2") do |config|
]

config.trigger.before [:up, :provision] do |trigger|
trigger.run = {inline: "cp -u /usr/share/OVMF/OVMF_VARS.fd #{ovmf_nvram}"}
trigger.run = {inline: "cp -u /usr/share/edk2/ovmf/OVMF_VARS.fd #{ovmf_nvram}"}
end

config.trigger.after [:destroy] do |trigger|
Expand Down
8 changes: 4 additions & 4 deletions vagrant/vagrantfiles/Vagrantfile_rawhide
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ Vagrant.configure("2") do |config|
# Collect output from a serial console into a file to make debugging easier
# The -nographic option allows us to collect BIOS messages as well
libvirt.qemuargs :value => "-nographic"
libvirt.qemuargs :value => "-serial"
libvirt.graphics_type = "none"
# This file needs to be collected later by vagrant-ci-wrapper.sh
libvirt.qemuargs :value => "file:/tmp/vagrant-rawhide-serial-console.log"
libvirt.serial :type => "file", :source => {:path => "/tmp/vagrant-arch-serial-console.log"}

# Pass through /dev/random from the host to the VM
libvirt.random :model => 'random'
Expand All @@ -63,7 +63,7 @@ Vagrant.configure("2") do |config|
libvirt.machine_type = "q35"

# Emulate UEFI using OVMF
libvirt.loader = "/usr/share/OVMF/OVMF_CODE.fd"
libvirt.loader = "/usr/share/edk2/ovmf/OVMF_CODE.fd"
libvirt.nvram = ovmf_nvram

# Emulate TPM 2.0 using swtpm
Expand All @@ -73,7 +73,7 @@ Vagrant.configure("2") do |config|
end

config.trigger.before [:up, :provision] do |trigger|
trigger.run = {inline: "cp -u /usr/share/OVMF/OVMF_VARS.fd #{ovmf_nvram}"}
trigger.run = {inline: "cp -u /usr/share/edk2/ovmf/OVMF_VARS.fd #{ovmf_nvram}"}
end

config.trigger.after [:destroy] do |trigger|
Expand Down

0 comments on commit c839e0f

Please sign in to comment.