Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,46 @@ jobs:
with:
beaker_facter: 'pulpcore_version:Pulp:nightly,3.63,3.73,3.85,3.105'
rubocop: false

# TODO: fold this back into the `puppet` job's beaker_facter matrix once
# CentOS/RedHat/AlmaLinux 10 are added to metadata.json. metadata2gha has
# no way to run a subset of beaker_facter values against a subset of
# operatingsystem_support (EL10 will only ever get nightly/3.105+, never
# 3.63/3.73/3.85), so until that's resolved EL10 is tested here as a
# standalone job instead. See theforeman/el10_rebuild#25.
#
# Pulpcore nightly is now published for EL10 on yum.theforeman.org, so
# pulpcore::repo's defaults (baseurl/gpgcheck) are used as-is - no
# Copr staging overrides needed.
#
# Uses the openvox8 collection because Puppet doesn't publish an EL10
# release repo yet (yum.puppet.com/puppet8-release-el-10.noarch.rpm is a
# 404), while OpenVox already does (yum.voxpupuli.org).
acceptance-el10:
name: "Pulp nightly - CentOS Stream 10"
runs-on: ubuntu-24.04
timeout-minutes: 45
env:
BEAKER_HYPERVISOR: container_podman
BUNDLE_WITHOUT: development:test:release
BEAKER_PUPPET_COLLECTION: openvox8
BEAKER_SETFILE: 'centos10-64{hostname=centos10-64.example.com}'
BEAKER_FACTER_pulpcore_version: nightly
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: disable apparmor
run: |
# https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/2093797
sudo aa-teardown || true
sudo systemctl disable --now apparmor.service
- name: Setup podman
run: |
systemctl start --user podman.socket
echo "DOCKER_HOST=unix:///run/user/$(id -u)/podman/podman.sock" >> "$GITHUB_ENV"
- name: Setup ruby
uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0
with:
ruby-version: '3.2'
bundler-cache: true
- name: Run tests
run: bundle exec rake beaker
7 changes: 6 additions & 1 deletion spec/acceptance/basic_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,12 @@ class { 'pulpcore':
it { is_expected.to be_listening }
end

describe service('redis') do
# RHEL/CentOS Stream 10 dropped Redis in favor of Valkey (a
# Redis-protocol-compatible fork); puppet-redis installs Package[valkey]/
# Service[valkey] there instead of Package[redis]/Service[redis].
redis_service_name = (fact('os.family') == 'RedHat' && fact('os.release.major').to_i >= 10) ? 'valkey' : 'redis'

describe service(redis_service_name) do
it { is_expected.to be_running }
it { is_expected.to be_enabled }
end
Expand Down