Skip to content

Commit d47abc8

Browse files
potiukCloud Composer Team
authored and
Cloud Composer Team
committed
Switching to Ubuntu 20.04 as Github Actions runner. (#12404)
Ubuntu 20.04 will soon become the default runner for GA. See: actions/runner-images#1816 This PR tests if this is working fine. GitOrigin-RevId: c38dadb526f7104df7a1a6feda72ce1b65557bd9
1 parent 82859e8 commit d47abc8

8 files changed

+36
-36
lines changed

.github/workflows/build-images-workflow-run.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
cancel-workflow-runs:
4646
timeout-minutes: 10
4747
name: "Cancel workflow runs"
48-
runs-on: ubuntu-latest
48+
runs-on: ubuntu-20.04
4949
outputs:
5050
sourceHeadRepo: ${{ steps.source-run-info.outputs.sourceHeadRepo }}
5151
sourceHeadBranch: ${{ steps.source-run-info.outputs.sourceHeadBranch }}
@@ -193,7 +193,7 @@ jobs:
193193
Source Sha: ${{ needs.cancel-workflow-runs.outputs.sourceHeadSha }}
194194
Merge commit Sha: ${{ needs.cancel-workflow-runs.outputs.mergeCommitSha }}
195195
Target commit Sha: ${{ needs.cancel-workflow-runs.outputs.targetCommitSha }}
196-
runs-on: ubuntu-latest
196+
runs-on: ubuntu-20.04
197197
needs: [cancel-workflow-runs]
198198
env:
199199
GITHUB_CONTEXT: ${{ toJson(github) }}
@@ -248,7 +248,7 @@ jobs:
248248
build-images:
249249
timeout-minutes: 80
250250
name: "Build ${{matrix.image-type}} images ${{matrix.python-version}}"
251-
runs-on: ubuntu-latest
251+
runs-on: ubuntu-20.04
252252
needs: [build-info, cancel-workflow-runs]
253253
strategy:
254254
matrix:
@@ -374,7 +374,7 @@ jobs:
374374
375375
cancel-on-build-cancel:
376376
name: "Cancel 'CI Build' jobs on build image cancelling."
377-
runs-on: ubuntu-latest
377+
runs-on: ubuntu-20.04
378378
if: cancelled()
379379
needs: [build-images]
380380
steps:
@@ -389,7 +389,7 @@ jobs:
389389

390390
cancel-on-build-failure:
391391
name: "Cancel 'CI Build' jobs on build image failing."
392-
runs-on: ubuntu-latest
392+
runs-on: ubuntu-20.04
393393
if: failure()
394394
needs: [build-images]
395395
steps:

.github/workflows/ci.yml

+23-23
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565

6666
build-info:
6767
name: "Build info"
68-
runs-on: ubuntu-latest
68+
runs-on: ubuntu-20.04
6969
env:
7070
GITHUB_CONTEXT: ${{ toJson(github) }}
7171
outputs:
@@ -147,7 +147,7 @@ jobs:
147147
148148
test-openapi-client-generation:
149149
name: "Test OpenAPI client generation"
150-
runs-on: ubuntu-latest
150+
runs-on: ubuntu-20.04
151151
needs: [build-info]
152152
if: needs.build-info.outputs.needs-api-codegen == 'true'
153153
steps:
@@ -161,7 +161,7 @@ jobs:
161161
ci-images:
162162
timeout-minutes: 120
163163
name: "Wait for CI images"
164-
runs-on: ubuntu-latest
164+
runs-on: ubuntu-20.04
165165
needs: [build-info]
166166
if: needs.build-info.outputs.image-build == 'true'
167167
env:
@@ -195,7 +195,7 @@ jobs:
195195
static-checks:
196196
timeout-minutes: 30
197197
name: "Static checks"
198-
runs-on: ubuntu-latest
198+
runs-on: ubuntu-20.04
199199
needs: [build-info, ci-images]
200200
env:
201201
SKIP: "pylint"
@@ -231,7 +231,7 @@ jobs:
231231
static-checks-basic-checks-only:
232232
timeout-minutes: 30
233233
name: "Static checks: basic checks only"
234-
runs-on: ubuntu-latest
234+
runs-on: ubuntu-20.04
235235
needs: [build-info]
236236
env:
237237
SKIP: "build,mypy,flake8,pylint,bats-in-container-tests"
@@ -268,7 +268,7 @@ jobs:
268268
static-checks-pylint:
269269
timeout-minutes: 30
270270
name: "Pylint"
271-
runs-on: ubuntu-latest
271+
runs-on: ubuntu-20.04
272272
needs: [build-info, ci-images]
273273
if: needs.build-info.outputs.basic-checks-only == 'false'
274274
env:
@@ -302,7 +302,7 @@ jobs:
302302
docs:
303303
timeout-minutes: 30
304304
name: "Build docs"
305-
runs-on: ubuntu-latest
305+
runs-on: ubuntu-20.04
306306
needs: [build-info, ci-images]
307307
if: needs.build-info.outputs.docs-build == 'true'
308308
steps:
@@ -322,7 +322,7 @@ jobs:
322322
docs-spell-check:
323323
timeout-minutes: 30
324324
name: "Spell check docs"
325-
runs-on: ubuntu-latest
325+
runs-on: ubuntu-20.04
326326
needs: [build-info, ci-images]
327327
env:
328328
PYTHON_MAJOR_MINOR_VERSION: ${{needs.build-info.outputs.defaultPythonVersion}}
@@ -338,7 +338,7 @@ jobs:
338338
prepare-backport-provider-packages:
339339
timeout-minutes: 30
340340
name: "Backport packages"
341-
runs-on: ubuntu-latest
341+
runs-on: ubuntu-20.04
342342
needs: [build-info, ci-images]
343343
env:
344344
INSTALL_AIRFLOW_VERSION: "1.10.12"
@@ -375,7 +375,7 @@ jobs:
375375
prepare-provider-packages:
376376
timeout-minutes: 30
377377
name: "Provider packages"
378-
runs-on: ubuntu-latest
378+
runs-on: ubuntu-20.04
379379
needs: [build-info, ci-images]
380380
env:
381381
INSTALL_AIRFLOW_VERSION: "wheel"
@@ -412,7 +412,7 @@ jobs:
412412
tests-helm:
413413
timeout-minutes: 20
414414
name: "Python unit tests for helm chart"
415-
runs-on: ubuntu-latest
415+
runs-on: ubuntu-20.04
416416
needs: [build-info, ci-images]
417417
env:
418418
MOUNT_LOCAL_SOURCES: "true"
@@ -460,7 +460,7 @@ jobs:
460460
name: >
461461
Postgres${{matrix.postgres-version}},Py${{matrix.python-version}}:
462462
${{needs.build-info.outputs.testTypes}}
463-
runs-on: ubuntu-latest
463+
runs-on: ubuntu-20.04
464464
needs: [build-info, ci-images]
465465
strategy:
466466
matrix:
@@ -512,7 +512,7 @@ jobs:
512512
timeout-minutes: 80
513513
name: >
514514
MySQL${{matrix.mysql-version}}, Py${{matrix.python-version}}: ${{needs.build-info.outputs.testTypes}}
515-
runs-on: ubuntu-latest
515+
runs-on: ubuntu-20.04
516516
needs: [build-info, ci-images]
517517
strategy:
518518
matrix:
@@ -563,7 +563,7 @@ jobs:
563563
timeout-minutes: 60
564564
name: >
565565
Sqlite Py${{matrix.python-version}}: ${{needs.build-info.outputs.testTypes}}
566-
runs-on: ubuntu-latest
566+
runs-on: ubuntu-20.04
567567
needs: [build-info, ci-images]
568568
strategy:
569569
matrix:
@@ -611,7 +611,7 @@ jobs:
611611
tests-quarantined:
612612
timeout-minutes: 60
613613
name: "Quarantined tests"
614-
runs-on: ubuntu-latest
614+
runs-on: ubuntu-20.04
615615
continue-on-error: true
616616
needs: [build-info, ci-images]
617617
strategy:
@@ -683,7 +683,7 @@ jobs:
683683
upload-coverage:
684684
timeout-minutes: 5
685685
name: "Upload coverage"
686-
runs-on: ubuntu-latest
686+
runs-on: ubuntu-20.04
687687
continue-on-error: true
688688
needs:
689689
- tests-kubernetes
@@ -706,7 +706,7 @@ jobs:
706706
prod-images:
707707
timeout-minutes: 120
708708
name: "Wait for PROD images"
709-
runs-on: ubuntu-latest
709+
runs-on: ubuntu-20.04
710710
needs: [build-info]
711711
env:
712712
BACKEND: sqlite
@@ -736,7 +736,7 @@ jobs:
736736
tests-kubernetes:
737737
timeout-minutes: 50
738738
name: K8s ${{matrix.python-version}} ${{matrix.kubernetes-version}} ${{matrix.kubernetes-mode}}
739-
runs-on: ubuntu-latest
739+
runs-on: ubuntu-20.04
740740
needs: [build-info, prod-images]
741741
strategy:
742742
matrix:
@@ -811,7 +811,7 @@ jobs:
811811
push-prod-images-to-github-registry:
812812
timeout-minutes: 10
813813
name: "Push PROD images"
814-
runs-on: ubuntu-latest
814+
runs-on: ubuntu-20.04
815815
needs:
816816
- build-info
817817
- static-checks
@@ -851,7 +851,7 @@ jobs:
851851
push-ci-images-to-github-registry:
852852
timeout-minutes: 10
853853
name: "Push CI images"
854-
runs-on: ubuntu-latest
854+
runs-on: ubuntu-20.04
855855
needs:
856856
- build-info
857857
- static-checks
@@ -890,7 +890,7 @@ jobs:
890890
constraints:
891891
timeout-minutes: 10
892892
name: "Constraints"
893-
runs-on: ubuntu-latest
893+
runs-on: ubuntu-20.04
894894
strategy:
895895
matrix:
896896
python-version: ${{ fromJson(needs.build-info.outputs.pythonVersions) }}
@@ -923,7 +923,7 @@ jobs:
923923
constraints-push:
924924
timeout-minutes: 10
925925
name: "Constraints push"
926-
runs-on: ubuntu-latest
926+
runs-on: ubuntu-20.04
927927
needs:
928928
- build-info
929929
- constraints
@@ -961,7 +961,7 @@ jobs:
961961
tag-repo-nightly:
962962
timeout-minutes: 10
963963
name: "Tag repo nightly"
964-
runs-on: ubuntu-latest
964+
runs-on: ubuntu-20.04
965965
needs:
966966
- docs
967967
- docs-spell-check

.github/workflows/codeql-analysis.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ on: # yamllint disable-line rule:truthy
2727
jobs:
2828
selective-checks:
2929
name: Selective checks
30-
runs-on: ubuntu-latest
30+
runs-on: ubuntu-20.04
3131
outputs:
3232
needs-python-scans: ${{ steps.selective-checks.outputs.needs-python-scans }}
3333
needs-javascript-scans: ${{ steps.selective-checks.outputs.needs-javascript-scans }}
@@ -52,7 +52,7 @@ jobs:
5252
5353
analyze:
5454
name: Analyze
55-
runs-on: ubuntu-latest
55+
runs-on: ubuntu-20.04
5656
needs: [selective-checks]
5757
strategy:
5858
fail-fast: false

.github/workflows/delete_old_artifacts.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ on: # yamllint disable-line rule:truthy
2323

2424
jobs:
2525
delete-artifacts:
26-
runs-on: ubuntu-latest
26+
runs-on: ubuntu-20.04
2727
steps:
2828
- uses: kolpav/purge-artifacts-action@04c636a505f26ebc82f8d070b202fb87ff572b10 # v1.0
2929
with:

.github/workflows/label_when_reviewed.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323

2424
label-when-reviewed:
2525
name: "Label PRs when reviewed"
26-
runs-on: ubuntu-latest
26+
runs-on: ubuntu-20.04
2727
steps:
2828
- name: "Do nothing. Only trigger corresponding workflow_run event"
2929
run: echo

.github/workflows/label_when_reviewed_workflow_run.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525

2626
label-when-reviewed:
2727
name: "Label PRs when reviewed workflow run"
28-
runs-on: ubuntu-latest
28+
runs-on: ubuntu-20.04
2929
outputs:
3030
labelSet: ${{ steps.label-when-reviewed.outputs.labelSet }}
3131
steps:

.github/workflows/repo_sync.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ on: # yamllint disable-line rule:truthy
2222
jobs:
2323
repo-sync:
2424
if: github.repository != 'apache/airflow'
25-
runs-on: ubuntu-latest
25+
runs-on: ubuntu-20.04
2626
steps:
2727
- uses: actions/checkout@master
2828
- name: repo-sync

.github/workflows/scheduled_quarantined.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
trigger-tests:
4949
timeout-minutes: 5
5050
name: "Checks if tests should be run"
51-
runs-on: ubuntu-latest
51+
runs-on: ubuntu-20.04
5252
outputs:
5353
run-tests: ${{ steps.trigger-tests.outputs.run-tests }}
5454
steps:
@@ -60,7 +60,7 @@ jobs:
6060
tests-quarantined:
6161
timeout-minutes: 80
6262
name: "Quarantined tests"
63-
runs-on: ubuntu-latest
63+
runs-on: ubuntu-20.04
6464
continue-on-error: true
6565
needs: [trigger-tests]
6666
strategy:

0 commit comments

Comments
 (0)