Skip to content

Commit cccbef4

Browse files
committed
Use ubuntu 24.04 in CI
Ubuntu 24.04 image has Python 3.12 by default. PyKMIP server and CodeCheker tool don't support this version, so we have to downgrade Python version to 3.11.
1 parent e636b10 commit cccbef4

File tree

6 files changed

+35
-12
lines changed

6 files changed

+35
-12
lines changed

.github/workflows/codechecker.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,19 @@ env:
1111
jobs:
1212
run:
1313
name: Run
14-
runs-on: ubuntu-22.04
14+
runs-on: ubuntu-24.04
1515
steps:
1616
- name: Clone repository
1717
uses: actions/checkout@v4
1818
with:
1919
submodules: recursive
2020

21+
# CodeChecker doesn't support python 3.12 for now: https://github.com/Ericsson/codechecker/issues/4350
22+
- name: Downgrade python to 3.11
23+
uses: actions/setup-python@v5
24+
with:
25+
python-version: 3.11
26+
2127
- name: Install dependencies
2228
run: ci_scripts/ubuntu-deps.sh
2329

.github/workflows/coverage.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,19 @@ env:
1111
jobs:
1212
collect:
1313
name: Collect and upload
14-
runs-on: ubuntu-22.04
14+
runs-on: ubuntu-24.04
1515
steps:
1616
- name: Clone repository
1717
uses: actions/checkout@v4
1818
with:
1919
submodules: recursive
2020

21+
# KMIP server doesn't support Python 3.12 for now: https://github.com/OpenKMIP/PyKMIP/pull/707
22+
- name: Downgrade python to 3.11
23+
uses: actions/setup-python@v5
24+
with:
25+
python-version: 3.11
26+
2127
- name: Install dependencies
2228
run: ci_scripts/ubuntu-deps.sh
2329

.github/workflows/psp-matrix.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
name: PSP
1212
strategy:
1313
matrix:
14-
os: ['ubuntu-22.04']
14+
os: [ubuntu-24.04]
1515
compiler: [gcc, clang]
1616
build_type: [debugoptimized]
1717
build_script: [make, meson]

.github/workflows/psp-reusable.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,14 @@ jobs:
6464
- name: Extract artifact file
6565
run: tar -xzf artifacts.tar
6666

67+
- name: Downgrade python to 3.11
68+
uses: actions/setup-python@v5
69+
with:
70+
python-version: 3.11
71+
6772
- name: Install dependencies
6873
run: src/ci_scripts/ubuntu-deps.sh
69-
74+
7075
- name: Setup kmip and vault
7176
run: src/ci_scripts/setup-keyring-servers.sh
7277

@@ -109,6 +114,12 @@ jobs:
109114
- name: Extract artifact file
110115
run: tar -xzf artifacts.tar
111116

117+
# KMIP server don't support Python 3.12 for now: https://github.com/OpenKMIP/PyKMIP/pull/707
118+
- name: Downgrade python to 3.11
119+
uses: actions/setup-python@v5
120+
with:
121+
python-version: 3.11
122+
112123
- name: Install dependencies
113124
run: src/ci_scripts/ubuntu-deps.sh
114125

.github/workflows/sanitizers.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,19 @@ env:
1818
jobs:
1919
run:
2020
name: Run
21-
runs-on: ubuntu-22.04
21+
runs-on: ubuntu-24.04
2222
steps:
2323
- name: Clone repository
2424
uses: actions/checkout@v4
2525
with:
2626
submodules: recursive
2727

28+
# KMIP server don't support Python 3.12 for now: https://github.com/OpenKMIP/PyKMIP/pull/707
29+
- name: Downgrade python to 3.11
30+
uses: actions/setup-python@v5
31+
with:
32+
python-version: 3.11
33+
2834
- name: Install dependencies
2935
run: ci_scripts/ubuntu-deps.sh
3036

ci_scripts/ubuntu-deps.sh

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,6 @@ DEPS=(
2929
mawk
3030
perl
3131
pkgconf
32-
python3-dev
33-
python3
34-
python3-pip
35-
python3-setuptools
36-
python3-wheel
3732
systemtap-sdt-dev
3833
tcl-dev
3934
uuid-dev
@@ -45,7 +40,6 @@ DEPS=(
4540
# Test
4641
libipc-run-perl
4742
# Test pg_tde
48-
python3-pykmip
4943
libhttp-server-simple-perl
5044
lcov
5145
# Run pgperltidy
@@ -56,7 +50,7 @@ sudo apt-get update
5650
sudo apt-get install -y ${DEPS[@]}
5751

5852
sudo bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)"
59-
pip3 install meson
53+
pip3 install meson pykmip cryptography
6054

6155
# Vault
6256
wget -O - https://apt.releases.hashicorp.com/gpg | sudo tee /etc/apt/keyrings/hashicorp-archive-keyring.asc

0 commit comments

Comments
 (0)