|
18 | 18 | name: e2e-tests-main
|
19 | 19 |
|
20 | 20 | on:
|
21 |
| - push: |
22 |
| - branches: [main] |
23 |
| - |
| 21 | + workflow_run: |
| 22 | + workflows: ["CI"] |
| 23 | + types: |
| 24 | + - completed |
24 | 25 | workflow_dispatch:
|
25 | 26 | inputs:
|
26 | 27 | organization:
|
|
42 | 43 | jobs:
|
43 | 44 | e2e-tests:
|
44 | 45 | name: Red Hat Account Extension E2E tests
|
45 |
| - runs-on: ubuntu-22.04 |
| 46 | + runs-on: ubuntu-24.04 |
| 47 | + if: github.event_name == 'workflow_dispatch' |
46 | 48 | steps:
|
47 | 49 |
|
48 | 50 | - uses: actions/checkout@v4
|
@@ -85,21 +87,28 @@ jobs:
|
85 | 87 | node-version: 20
|
86 | 88 | cache: 'pnpm'
|
87 | 89 |
|
88 |
| - - name: Update podman |
| 90 | + - name: Update podman v. 5.x |
89 | 91 | run: |
|
90 |
| - sudo sh -c "echo 'deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/unstable/xUbuntu_22.04/ /' > /etc/apt/sources.list.d/devel:kubic:libcontainers:unstable.list" |
91 |
| - curl -L "https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_22.04/Release.key" | sudo apt-key add - |
| 92 | + # ubuntu version from kubic repository to install podman we need (v5) |
| 93 | + ubuntu_version='23.04' |
| 94 | + sudo sh -c "echo 'deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/unstable/xUbuntu_${ubuntu_version}/ /' > /etc/apt/sources.list.d/devel:kubic:libcontainers:unstable.list" |
| 95 | + curl -L "https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/unstable/xUbuntu_${ubuntu_version}/Release.key" | sudo apt-key add - |
| 96 | + # install necessary dependencies for criu package which is not part of 23.04 |
| 97 | + sudo apt-get install -qq libprotobuf32t64 python3-protobuf libnet1 |
| 98 | + # install criu manually from static location |
| 99 | + curl -sLO http://cz.archive.ubuntu.com/ubuntu/pool/universe/c/criu/criu_3.16.1-2_amd64.deb && sudo dpkg -i criu_3.16.1-2_amd64.deb |
92 | 100 | sudo apt-get update -qq
|
93 | 101 | sudo apt-get -qq -y install podman || { echo "Start fallback steps for podman nightly installation from a static mirror" && \
|
94 |
| - sudo sh -c "echo 'deb http://ftp.lysator.liu.se/pub/opensuse/repositories/devel:/kubic:/libcontainers:/unstable/xUbuntu_22.04/ /' > /etc/apt/sources.list.d/devel:kubic:libcontainers:unstable.list" && \ |
95 |
| - curl -L "http://ftp.lysator.liu.se/pub/opensuse/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_22.04/Release.key" | sudo apt-key add - && \ |
| 102 | + sudo sh -c "echo 'deb http://ftp.lysator.liu.se/pub/opensuse/repositories/devel:/kubic:/libcontainers:/unstable/xUbuntu_${ubuntu_version}/ /' > /etc/apt/sources.list.d/devel:kubic:libcontainers:unstable.list" && \ |
| 103 | + curl -L "http://ftp.lysator.liu.se/pub/opensuse/repositories/devel:/kubic:/libcontainers:/unstable/xUbuntu_${ubuntu_version}/Release.key" | sudo apt-key add - && \ |
96 | 104 | sudo apt-get update && \
|
97 | 105 | sudo apt-get -y install podman; }
|
98 | 106 | podman version
|
99 |
| - # downgrade conmon package version to workaround issue with starting containers, see https://github.com/containers/conmon/issues/475 |
100 |
| - # remove once the repository contains conmon 2.1.10 |
101 |
| - wget https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_22.04/amd64/conmon_2.1.2~0_amd64.deb -O /tmp/conmon_2.1.2.deb |
102 |
| - sudo apt install /tmp/conmon_2.1.2.deb |
| 107 | +
|
| 108 | + - name: Revert unprivileged user namespace restrictions in Ubuntu 24.04 |
| 109 | + run: | |
| 110 | + # allow unprivileged user namespace |
| 111 | + sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0 |
103 | 112 |
|
104 | 113 | - name: Build Podman Desktop for E2E tests
|
105 | 114 | working-directory: ./podman-desktop
|
|
0 commit comments