Skip to content

Commit 4aaadf4

Browse files
authored
Update Ubuntu in Github test runners (#4204)
The runner `ubuntu-20.04` will be removed on April 1st, 2025.
1 parent 3d2f044 commit 4aaadf4

15 files changed

+105
-42
lines changed

.github/workflows/test-integrations-ai.yml

+9-3
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,13 @@ jobs:
3434
# new versions of hosted runners on Github Actions
3535
# ubuntu-20.04 is the last version that supported python3.6
3636
# see https://github.com/actions/setup-python/issues/544#issuecomment-1332535877
37-
os: [ubuntu-20.04]
37+
os: [ubuntu-22.04]
38+
# Use Docker container only for Python 3.6
39+
container: ${{ matrix.python-version == '3.6' && 'python:3.6' || null }}
3840
steps:
3941
- uses: actions/[email protected]
4042
- uses: actions/setup-python@v5
43+
if: ${{ matrix.python-version != '3.6' }}
4144
with:
4245
python-version: ${{ matrix.python-version }}
4346
allow-prereleases: true
@@ -106,10 +109,13 @@ jobs:
106109
# new versions of hosted runners on Github Actions
107110
# ubuntu-20.04 is the last version that supported python3.6
108111
# see https://github.com/actions/setup-python/issues/544#issuecomment-1332535877
109-
os: [ubuntu-20.04]
112+
os: [ubuntu-22.04]
113+
# Use Docker container only for Python 3.6
114+
container: ${{ matrix.python-version == '3.6' && 'python:3.6' || null }}
110115
steps:
111116
- uses: actions/[email protected]
112117
- uses: actions/setup-python@v5
118+
if: ${{ matrix.python-version != '3.6' }}
113119
with:
114120
python-version: ${{ matrix.python-version }}
115121
allow-prereleases: true
@@ -171,7 +177,7 @@ jobs:
171177
needs: test-ai-pinned
172178
# Always run this, even if a dependent job failed
173179
if: always()
174-
runs-on: ubuntu-20.04
180+
runs-on: ubuntu-22.04
175181
steps:
176182
- name: Check for failures
177183
if: contains(needs.test-ai-pinned.result, 'failure') || contains(needs.test-ai-pinned.result, 'skipped')

.github/workflows/test-integrations-cloud.yml

+9-3
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,17 @@ jobs:
3434
# new versions of hosted runners on Github Actions
3535
# ubuntu-20.04 is the last version that supported python3.6
3636
# see https://github.com/actions/setup-python/issues/544#issuecomment-1332535877
37-
os: [ubuntu-20.04]
37+
os: [ubuntu-22.04]
3838
services:
3939
docker:
4040
image: docker:dind # Required for Docker network management
4141
options: --privileged # Required for Docker-in-Docker operations
42+
# Use Docker container only for Python 3.6
43+
container: ${{ matrix.python-version == '3.6' && 'python:3.6' || null }}
4244
steps:
4345
- uses: actions/[email protected]
4446
- uses: actions/setup-python@v5
47+
if: ${{ matrix.python-version != '3.6' }}
4548
with:
4649
python-version: ${{ matrix.python-version }}
4750
allow-prereleases: true
@@ -110,14 +113,17 @@ jobs:
110113
# new versions of hosted runners on Github Actions
111114
# ubuntu-20.04 is the last version that supported python3.6
112115
# see https://github.com/actions/setup-python/issues/544#issuecomment-1332535877
113-
os: [ubuntu-20.04]
116+
os: [ubuntu-22.04]
114117
services:
115118
docker:
116119
image: docker:dind # Required for Docker network management
117120
options: --privileged # Required for Docker-in-Docker operations
121+
# Use Docker container only for Python 3.6
122+
container: ${{ matrix.python-version == '3.6' && 'python:3.6' || null }}
118123
steps:
119124
- uses: actions/[email protected]
120125
- uses: actions/setup-python@v5
126+
if: ${{ matrix.python-version != '3.6' }}
121127
with:
122128
python-version: ${{ matrix.python-version }}
123129
allow-prereleases: true
@@ -179,7 +185,7 @@ jobs:
179185
needs: test-cloud-pinned
180186
# Always run this, even if a dependent job failed
181187
if: always()
182-
runs-on: ubuntu-20.04
188+
runs-on: ubuntu-22.04
183189
steps:
184190
- name: Check for failures
185191
if: contains(needs.test-cloud-pinned.result, 'failure') || contains(needs.test-cloud-pinned.result, 'skipped')

.github/workflows/test-integrations-common.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,13 @@ jobs:
3434
# new versions of hosted runners on Github Actions
3535
# ubuntu-20.04 is the last version that supported python3.6
3636
# see https://github.com/actions/setup-python/issues/544#issuecomment-1332535877
37-
os: [ubuntu-20.04]
37+
os: [ubuntu-22.04]
38+
# Use Docker container only for Python 3.6
39+
container: ${{ matrix.python-version == '3.6' && 'python:3.6' || null }}
3840
steps:
3941
- uses: actions/[email protected]
4042
- uses: actions/setup-python@v5
43+
if: ${{ matrix.python-version != '3.6' }}
4144
with:
4245
python-version: ${{ matrix.python-version }}
4346
allow-prereleases: true
@@ -83,7 +86,7 @@ jobs:
8386
needs: test-common-pinned
8487
# Always run this, even if a dependent job failed
8588
if: always()
86-
runs-on: ubuntu-20.04
89+
runs-on: ubuntu-22.04
8790
steps:
8891
- name: Check for failures
8992
if: contains(needs.test-common-pinned.result, 'failure') || contains(needs.test-common-pinned.result, 'skipped')

.github/workflows/test-integrations-dbs.yml

+13-7
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
# new versions of hosted runners on Github Actions
3535
# ubuntu-20.04 is the last version that supported python3.6
3636
# see https://github.com/actions/setup-python/issues/544#issuecomment-1332535877
37-
os: [ubuntu-20.04]
37+
os: [ubuntu-22.04]
3838
services:
3939
postgres:
4040
image: postgres
@@ -50,17 +50,20 @@ jobs:
5050
ports:
5151
- 5432:5432
5252
env:
53-
SENTRY_PYTHON_TEST_POSTGRES_HOST: localhost
53+
SENTRY_PYTHON_TEST_POSTGRES_HOST: ${{ matrix.python-version == '3.6' && 'postgres' || 'localhost' }}
5454
SENTRY_PYTHON_TEST_POSTGRES_USER: postgres
5555
SENTRY_PYTHON_TEST_POSTGRES_PASSWORD: sentry
56+
# Use Docker container only for Python 3.6
57+
container: ${{ matrix.python-version == '3.6' && 'python:3.6' || null }}
5658
steps:
5759
- uses: actions/[email protected]
5860
- uses: actions/setup-python@v5
61+
if: ${{ matrix.python-version != '3.6' }}
5962
with:
6063
python-version: ${{ matrix.python-version }}
6164
allow-prereleases: true
6265
- name: "Setup ClickHouse Server"
63-
uses: getsentry/action-clickhouse-in-ci@v1.5
66+
uses: getsentry/action-clickhouse-in-ci@v1.6
6467
- name: Setup Test Env
6568
run: |
6669
pip install "coverage[toml]" tox
@@ -130,7 +133,7 @@ jobs:
130133
# new versions of hosted runners on Github Actions
131134
# ubuntu-20.04 is the last version that supported python3.6
132135
# see https://github.com/actions/setup-python/issues/544#issuecomment-1332535877
133-
os: [ubuntu-20.04]
136+
os: [ubuntu-22.04]
134137
services:
135138
postgres:
136139
image: postgres
@@ -146,17 +149,20 @@ jobs:
146149
ports:
147150
- 5432:5432
148151
env:
149-
SENTRY_PYTHON_TEST_POSTGRES_HOST: localhost
152+
SENTRY_PYTHON_TEST_POSTGRES_HOST: ${{ matrix.python-version == '3.6' && 'postgres' || 'localhost' }}
150153
SENTRY_PYTHON_TEST_POSTGRES_USER: postgres
151154
SENTRY_PYTHON_TEST_POSTGRES_PASSWORD: sentry
155+
# Use Docker container only for Python 3.6
156+
container: ${{ matrix.python-version == '3.6' && 'python:3.6' || null }}
152157
steps:
153158
- uses: actions/[email protected]
154159
- uses: actions/setup-python@v5
160+
if: ${{ matrix.python-version != '3.6' }}
155161
with:
156162
python-version: ${{ matrix.python-version }}
157163
allow-prereleases: true
158164
- name: "Setup ClickHouse Server"
159-
uses: getsentry/action-clickhouse-in-ci@v1.5
165+
uses: getsentry/action-clickhouse-in-ci@v1.6
160166
- name: Setup Test Env
161167
run: |
162168
pip install "coverage[toml]" tox
@@ -219,7 +225,7 @@ jobs:
219225
needs: test-dbs-pinned
220226
# Always run this, even if a dependent job failed
221227
if: always()
222-
runs-on: ubuntu-20.04
228+
runs-on: ubuntu-22.04
223229
steps:
224230
- name: Check for failures
225231
if: contains(needs.test-dbs-pinned.result, 'failure') || contains(needs.test-dbs-pinned.result, 'skipped')

.github/workflows/test-integrations-flags.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,13 @@ jobs:
3434
# new versions of hosted runners on Github Actions
3535
# ubuntu-20.04 is the last version that supported python3.6
3636
# see https://github.com/actions/setup-python/issues/544#issuecomment-1332535877
37-
os: [ubuntu-20.04]
37+
os: [ubuntu-22.04]
38+
# Use Docker container only for Python 3.6
39+
container: ${{ matrix.python-version == '3.6' && 'python:3.6' || null }}
3840
steps:
3941
- uses: actions/[email protected]
4042
- uses: actions/setup-python@v5
43+
if: ${{ matrix.python-version != '3.6' }}
4144
with:
4245
python-version: ${{ matrix.python-version }}
4346
allow-prereleases: true
@@ -95,7 +98,7 @@ jobs:
9598
needs: test-flags-pinned
9699
# Always run this, even if a dependent job failed
97100
if: always()
98-
runs-on: ubuntu-20.04
101+
runs-on: ubuntu-22.04
99102
steps:
100103
- name: Check for failures
101104
if: contains(needs.test-flags-pinned.result, 'failure') || contains(needs.test-flags-pinned.result, 'skipped')

.github/workflows/test-integrations-gevent.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,13 @@ jobs:
3434
# new versions of hosted runners on Github Actions
3535
# ubuntu-20.04 is the last version that supported python3.6
3636
# see https://github.com/actions/setup-python/issues/544#issuecomment-1332535877
37-
os: [ubuntu-20.04]
37+
os: [ubuntu-22.04]
38+
# Use Docker container only for Python 3.6
39+
container: ${{ matrix.python-version == '3.6' && 'python:3.6' || null }}
3840
steps:
3941
- uses: actions/[email protected]
4042
- uses: actions/setup-python@v5
43+
if: ${{ matrix.python-version != '3.6' }}
4144
with:
4245
python-version: ${{ matrix.python-version }}
4346
allow-prereleases: true
@@ -83,7 +86,7 @@ jobs:
8386
needs: test-gevent-pinned
8487
# Always run this, even if a dependent job failed
8588
if: always()
86-
runs-on: ubuntu-20.04
89+
runs-on: ubuntu-22.04
8790
steps:
8891
- name: Check for failures
8992
if: contains(needs.test-gevent-pinned.result, 'failure') || contains(needs.test-gevent-pinned.result, 'skipped')

.github/workflows/test-integrations-graphql.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,13 @@ jobs:
3434
# new versions of hosted runners on Github Actions
3535
# ubuntu-20.04 is the last version that supported python3.6
3636
# see https://github.com/actions/setup-python/issues/544#issuecomment-1332535877
37-
os: [ubuntu-20.04]
37+
os: [ubuntu-22.04]
38+
# Use Docker container only for Python 3.6
39+
container: ${{ matrix.python-version == '3.6' && 'python:3.6' || null }}
3840
steps:
3941
- uses: actions/[email protected]
4042
- uses: actions/setup-python@v5
43+
if: ${{ matrix.python-version != '3.6' }}
4144
with:
4245
python-version: ${{ matrix.python-version }}
4346
allow-prereleases: true
@@ -95,7 +98,7 @@ jobs:
9598
needs: test-graphql-pinned
9699
# Always run this, even if a dependent job failed
97100
if: always()
98-
runs-on: ubuntu-20.04
101+
runs-on: ubuntu-22.04
99102
steps:
100103
- name: Check for failures
101104
if: contains(needs.test-graphql-pinned.result, 'failure') || contains(needs.test-graphql-pinned.result, 'skipped')

.github/workflows/test-integrations-misc.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,13 @@ jobs:
3434
# new versions of hosted runners on Github Actions
3535
# ubuntu-20.04 is the last version that supported python3.6
3636
# see https://github.com/actions/setup-python/issues/544#issuecomment-1332535877
37-
os: [ubuntu-20.04]
37+
os: [ubuntu-22.04]
38+
# Use Docker container only for Python 3.6
39+
container: ${{ matrix.python-version == '3.6' && 'python:3.6' || null }}
3840
steps:
3941
- uses: actions/[email protected]
4042
- uses: actions/setup-python@v5
43+
if: ${{ matrix.python-version != '3.6' }}
4144
with:
4245
python-version: ${{ matrix.python-version }}
4346
allow-prereleases: true
@@ -103,7 +106,7 @@ jobs:
103106
needs: test-misc-pinned
104107
# Always run this, even if a dependent job failed
105108
if: always()
106-
runs-on: ubuntu-20.04
109+
runs-on: ubuntu-22.04
107110
steps:
108111
- name: Check for failures
109112
if: contains(needs.test-misc-pinned.result, 'failure') || contains(needs.test-misc-pinned.result, 'skipped')

.github/workflows/test-integrations-network.yml

+9-3
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,13 @@ jobs:
3434
# new versions of hosted runners on Github Actions
3535
# ubuntu-20.04 is the last version that supported python3.6
3636
# see https://github.com/actions/setup-python/issues/544#issuecomment-1332535877
37-
os: [ubuntu-20.04]
37+
os: [ubuntu-22.04]
38+
# Use Docker container only for Python 3.6
39+
container: ${{ matrix.python-version == '3.6' && 'python:3.6' || null }}
3840
steps:
3941
- uses: actions/[email protected]
4042
- uses: actions/setup-python@v5
43+
if: ${{ matrix.python-version != '3.6' }}
4144
with:
4245
python-version: ${{ matrix.python-version }}
4346
allow-prereleases: true
@@ -98,10 +101,13 @@ jobs:
98101
# new versions of hosted runners on Github Actions
99102
# ubuntu-20.04 is the last version that supported python3.6
100103
# see https://github.com/actions/setup-python/issues/544#issuecomment-1332535877
101-
os: [ubuntu-20.04]
104+
os: [ubuntu-22.04]
105+
# Use Docker container only for Python 3.6
106+
container: ${{ matrix.python-version == '3.6' && 'python:3.6' || null }}
102107
steps:
103108
- uses: actions/[email protected]
104109
- uses: actions/setup-python@v5
110+
if: ${{ matrix.python-version != '3.6' }}
105111
with:
106112
python-version: ${{ matrix.python-version }}
107113
allow-prereleases: true
@@ -155,7 +161,7 @@ jobs:
155161
needs: test-network-pinned
156162
# Always run this, even if a dependent job failed
157163
if: always()
158-
runs-on: ubuntu-20.04
164+
runs-on: ubuntu-22.04
159165
steps:
160166
- name: Check for failures
161167
if: contains(needs.test-network-pinned.result, 'failure') || contains(needs.test-network-pinned.result, 'skipped')

.github/workflows/test-integrations-tasks.yml

+9-3
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,13 @@ jobs:
3434
# new versions of hosted runners on Github Actions
3535
# ubuntu-20.04 is the last version that supported python3.6
3636
# see https://github.com/actions/setup-python/issues/544#issuecomment-1332535877
37-
os: [ubuntu-20.04]
37+
os: [ubuntu-22.04]
38+
# Use Docker container only for Python 3.6
39+
container: ${{ matrix.python-version == '3.6' && 'python:3.6' || null }}
3840
steps:
3941
- uses: actions/[email protected]
4042
- uses: actions/setup-python@v5
43+
if: ${{ matrix.python-version != '3.6' }}
4144
with:
4245
python-version: ${{ matrix.python-version }}
4346
allow-prereleases: true
@@ -120,10 +123,13 @@ jobs:
120123
# new versions of hosted runners on Github Actions
121124
# ubuntu-20.04 is the last version that supported python3.6
122125
# see https://github.com/actions/setup-python/issues/544#issuecomment-1332535877
123-
os: [ubuntu-20.04]
126+
os: [ubuntu-22.04]
127+
# Use Docker container only for Python 3.6
128+
container: ${{ matrix.python-version == '3.6' && 'python:3.6' || null }}
124129
steps:
125130
- uses: actions/[email protected]
126131
- uses: actions/setup-python@v5
132+
if: ${{ matrix.python-version != '3.6' }}
127133
with:
128134
python-version: ${{ matrix.python-version }}
129135
allow-prereleases: true
@@ -199,7 +205,7 @@ jobs:
199205
needs: test-tasks-pinned
200206
# Always run this, even if a dependent job failed
201207
if: always()
202-
runs-on: ubuntu-20.04
208+
runs-on: ubuntu-22.04
203209
steps:
204210
- name: Check for failures
205211
if: contains(needs.test-tasks-pinned.result, 'failure') || contains(needs.test-tasks-pinned.result, 'skipped')

0 commit comments

Comments
 (0)