Skip to content

Commit

Permalink
CI: Update workers fleet
Browse files Browse the repository at this point in the history
By default CI is running on RHEL 8, F36 and F37 workers.
This commit adds Fedora 38 to the workers list
and removes deprecated Fedora 36
  • Loading branch information
elkoniu committed Jan 8, 2024
1 parent 3b1e3ca commit 197b77f
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 18 deletions.
6 changes: 3 additions & 3 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ RPM:
parallel:
matrix:
- RUNNER:
- aws/fedora-36-x86_64
- aws/fedora-36-aarch64
- aws/fedora-37-x86_64
- aws/fedora-37-aarch64
- aws/fedora-38-x86_64
- aws/fedora-38-aarch64
- aws/rhel-8.6-ga-x86_64
- aws/rhel-8.6-ga-aarch64

Expand All @@ -46,8 +46,8 @@ Testing:
matrix:
# https://quay.io/repository/osbuild/postgres available only for x86_64
- RUNNER:
- aws/fedora-36-x86_64
- aws/fedora-37-x86_64
- aws/fedora-38-x86_64
- RUNNER:
- aws/rhel-8.6-ga-x86_64
INTERNAL_NETWORK: ["true"]
Expand Down
4 changes: 2 additions & 2 deletions schutzbot/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ function retry {

# Variables for where to find osbuild-composer RPMs to test against
DNF_REPO_BASEURL=http://osbuild-composer-repos.s3-website.us-east-2.amazonaws.com
OSBUILD_COMMIT=18c69d2620c785227cdc502677c55d896529d5ee # release 74
OSBUILD_COMPOSER_COMMIT=13fdf04839ff25f4cd61c80a0d046824df0519c5 # release 71
OSBUILD_COMMIT=8c95bd9dd7820a908b756a171d54104122ee906c # release 103
OSBUILD_COMPOSER_COMMIT=cfc63297ebb6eb6345062bafad0fe1e1db9a8add # release 97

# Get OS details.
source /etc/os-release
Expand Down
2 changes: 1 addition & 1 deletion schutzbot/terraform
Original file line number Diff line number Diff line change
@@ -1 +1 @@
04c82e2156dfee54181e10eac317957a8426f091
0caf5afd068c94b7c39419bb1a2249d1e1dae6b2
30 changes: 18 additions & 12 deletions test/integration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,22 @@ function greenprint {
echo -e "\033[1;32m${1}\033[0m"
}

function cleanup {
greenprint "Stopping koji builder"
sudo /usr/libexec/koji-osbuild-tests/run-builder.sh stop /usr/share/koji-osbuild-tests

greenprint "Stopping containers"
sudo /usr/libexec/koji-osbuild-tests/run-koji-container.sh stop

greenprint "Stopping mock OpenID server"
sudo /usr/libexec/koji-osbuild-tests/run-openid.sh stop

greenprint "Removing generated CA cert"
sudo rm /etc/pki/ca-trust/source/anchors/osbuild-ca-crt.pem
sudo update-ca-trust
}
trap cleanup EXIT

# Get OS data.
source /etc/os-release

Expand Down Expand Up @@ -68,15 +84,5 @@ AWS_ACCESS_KEY_ID="${V2_AWS_ACCESS_KEY_ID:-}" \
AWS_SECRET_ACCESS_KEY="${V2_AWS_SECRET_ACCESS_KEY:-}" \
python3 -m unittest discover -v /usr/libexec/koji-osbuild-tests/integration/

greenprint "Stopping koji builder"
sudo /usr/libexec/koji-osbuild-tests/run-builder.sh stop /usr/share/koji-osbuild-tests

greenprint "Stopping containers"
sudo /usr/libexec/koji-osbuild-tests/run-koji-container.sh stop

greenprint "Stopping mock OpenID server"
sudo /usr/libexec/koji-osbuild-tests/run-openid.sh stop

greenprint "Removing generated CA cert"
sudo rm /etc/pki/ca-trust/source/anchors/osbuild-ca-crt.pem
sudo update-ca-trust
# cleanup() will be triggered by EXIT
#

0 comments on commit 197b77f

Please sign in to comment.