From 0e7ee3fdb6711f53a572a6ddecb93b5a329494e1 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Thu, 17 Oct 2024 11:53:52 +0200 Subject: [PATCH 1/2] allow pip to break system packages when installin pykickstart Ubuntu 24.04 by default protects system packages, which is good, but in CI we just don't care enough to create a venv. --- .github/workflows/foreman.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/foreman.yml b/.github/workflows/foreman.yml index 361cb1cb317..4c126fcab47 100644 --- a/.github/workflows/foreman.yml +++ b/.github/workflows/foreman.yml @@ -115,7 +115,7 @@ jobs: if: contains(matrix.task, 'compile') - name: Install external test dependencies run: | - pip3 install pykickstart + pip3 install --break-system-packages pykickstart sudo apt-get -qq -y install --no-install-recommends grub-common if: contains(matrix.task, 'external') - name: Prepare test env From e50cc9eae48ea42a57b4d601d53afd6d5a08c308 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Thu, 17 Oct 2024 12:02:53 +0200 Subject: [PATCH 2/2] explicitly run on Ubuntu 24.04, not latest --- .github/workflows/foreman.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/foreman.yml b/.github/workflows/foreman.yml index 4c126fcab47..7a5c845604d 100644 --- a/.github/workflows/foreman.yml +++ b/.github/workflows/foreman.yml @@ -21,7 +21,7 @@ concurrency: jobs: setup_matrix: name: Setup matrix - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 outputs: matrix: ${{ steps.build_matrix.outputs.matrix }} steps: @@ -32,7 +32,7 @@ jobs: rubocop: name: Rubocop needs: setup_matrix - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 env: BUNDLE_WITHOUT: assets:console:development:dynflow_sidekiq:ec2:journald:jsonp:libvirt:openid:openstack:ovirt:redis:service:telemetry:vmware steps: @@ -47,7 +47,7 @@ jobs: tests: name: "${{ matrix.task }} - Ruby ${{ matrix.ruby }} and Node ${{ matrix.node }} on PostgreSQL ${{ matrix.postgresql }}" - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 needs: - setup_matrix - rubocop @@ -146,7 +146,7 @@ jobs: result: if: always() name: Test suite - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 needs: - tests - katello