Skip to content

Commit

Permalink
Switching to Ubuntu 20.04 as Github Actions runner. (#12404)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
potiuk authored and Cloud Composer Team committed Sep 12, 2024
1 parent b9b4b4f commit 09a47b7
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 36 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build-images-workflow-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
cancel-workflow-runs:
timeout-minutes: 10
name: "Cancel workflow runs"
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
outputs:
sourceHeadRepo: ${{ steps.source-run-info.outputs.sourceHeadRepo }}
sourceHeadBranch: ${{ steps.source-run-info.outputs.sourceHeadBranch }}
Expand Down Expand Up @@ -193,7 +193,7 @@ jobs:
Source Sha: ${{ needs.cancel-workflow-runs.outputs.sourceHeadSha }}
Merge commit Sha: ${{ needs.cancel-workflow-runs.outputs.mergeCommitSha }}
Target commit Sha: ${{ needs.cancel-workflow-runs.outputs.targetCommitSha }}
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
needs: [cancel-workflow-runs]
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
Expand Down Expand Up @@ -248,7 +248,7 @@ jobs:
build-images:
timeout-minutes: 80
name: "Build ${{matrix.image-type}} images ${{matrix.python-version}}"
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
needs: [build-info, cancel-workflow-runs]
strategy:
matrix:
Expand Down Expand Up @@ -374,7 +374,7 @@ jobs:
cancel-on-build-cancel:
name: "Cancel 'CI Build' jobs on build image cancelling."
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
if: cancelled()
needs: [build-images]
steps:
Expand All @@ -389,7 +389,7 @@ jobs:

cancel-on-build-failure:
name: "Cancel 'CI Build' jobs on build image failing."
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
if: failure()
needs: [build-images]
steps:
Expand Down
46 changes: 23 additions & 23 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:

build-info:
name: "Build info"
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
outputs:
Expand Down Expand Up @@ -147,7 +147,7 @@ jobs:
test-openapi-client-generation:
name: "Test OpenAPI client generation"
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
needs: [build-info]
if: needs.build-info.outputs.needs-api-codegen == 'true'
steps:
Expand All @@ -161,7 +161,7 @@ jobs:
ci-images:
timeout-minutes: 120
name: "Wait for CI images"
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
needs: [build-info]
if: needs.build-info.outputs.image-build == 'true'
env:
Expand Down Expand Up @@ -195,7 +195,7 @@ jobs:
static-checks:
timeout-minutes: 30
name: "Static checks"
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
needs: [build-info, ci-images]
env:
SKIP: "pylint"
Expand Down Expand Up @@ -231,7 +231,7 @@ jobs:
static-checks-basic-checks-only:
timeout-minutes: 30
name: "Static checks: basic checks only"
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
needs: [build-info]
env:
SKIP: "build,mypy,flake8,pylint,bats-in-container-tests"
Expand Down Expand Up @@ -268,7 +268,7 @@ jobs:
static-checks-pylint:
timeout-minutes: 30
name: "Pylint"
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
needs: [build-info, ci-images]
if: needs.build-info.outputs.basic-checks-only == 'false'
env:
Expand Down Expand Up @@ -302,7 +302,7 @@ jobs:
docs:
timeout-minutes: 30
name: "Build docs"
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
needs: [build-info, ci-images]
if: needs.build-info.outputs.docs-build == 'true'
steps:
Expand All @@ -322,7 +322,7 @@ jobs:
docs-spell-check:
timeout-minutes: 30
name: "Spell check docs"
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
needs: [build-info, ci-images]
env:
PYTHON_MAJOR_MINOR_VERSION: ${{needs.build-info.outputs.defaultPythonVersion}}
Expand All @@ -338,7 +338,7 @@ jobs:
prepare-backport-provider-packages:
timeout-minutes: 30
name: "Backport packages"
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
needs: [build-info, ci-images]
env:
INSTALL_AIRFLOW_VERSION: "1.10.12"
Expand Down Expand Up @@ -375,7 +375,7 @@ jobs:
prepare-provider-packages:
timeout-minutes: 30
name: "Provider packages"
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
needs: [build-info, ci-images]
env:
INSTALL_AIRFLOW_VERSION: "wheel"
Expand Down Expand Up @@ -412,7 +412,7 @@ jobs:
tests-helm:
timeout-minutes: 20
name: "Python unit tests for helm chart"
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
needs: [build-info, ci-images]
env:
MOUNT_LOCAL_SOURCES: "true"
Expand Down Expand Up @@ -460,7 +460,7 @@ jobs:
name: >
Postgres${{matrix.postgres-version}},Py${{matrix.python-version}}:
${{needs.build-info.outputs.testTypes}}
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
needs: [build-info, ci-images]
strategy:
matrix:
Expand Down Expand Up @@ -512,7 +512,7 @@ jobs:
timeout-minutes: 80
name: >
MySQL${{matrix.mysql-version}}, Py${{matrix.python-version}}: ${{needs.build-info.outputs.testTypes}}
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
needs: [build-info, ci-images]
strategy:
matrix:
Expand Down Expand Up @@ -563,7 +563,7 @@ jobs:
timeout-minutes: 60
name: >
Sqlite Py${{matrix.python-version}}: ${{needs.build-info.outputs.testTypes}}
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
needs: [build-info, ci-images]
strategy:
matrix:
Expand Down Expand Up @@ -611,7 +611,7 @@ jobs:
tests-quarantined:
timeout-minutes: 60
name: "Quarantined tests"
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
continue-on-error: true
needs: [build-info, ci-images]
strategy:
Expand Down Expand Up @@ -683,7 +683,7 @@ jobs:
upload-coverage:
timeout-minutes: 5
name: "Upload coverage"
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
continue-on-error: true
needs:
- tests-kubernetes
Expand All @@ -706,7 +706,7 @@ jobs:
prod-images:
timeout-minutes: 120
name: "Wait for PROD images"
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
needs: [build-info]
env:
BACKEND: sqlite
Expand Down Expand Up @@ -736,7 +736,7 @@ jobs:
tests-kubernetes:
timeout-minutes: 50
name: K8s ${{matrix.python-version}} ${{matrix.kubernetes-version}} ${{matrix.kubernetes-mode}}
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
needs: [build-info, prod-images]
strategy:
matrix:
Expand Down Expand Up @@ -811,7 +811,7 @@ jobs:
push-prod-images-to-github-registry:
timeout-minutes: 10
name: "Push PROD images"
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
needs:
- build-info
- static-checks
Expand Down Expand Up @@ -851,7 +851,7 @@ jobs:
push-ci-images-to-github-registry:
timeout-minutes: 10
name: "Push CI images"
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
needs:
- build-info
- static-checks
Expand Down Expand Up @@ -890,7 +890,7 @@ jobs:
constraints:
timeout-minutes: 10
name: "Constraints"
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: ${{ fromJson(needs.build-info.outputs.pythonVersions) }}
Expand Down Expand Up @@ -923,7 +923,7 @@ jobs:
constraints-push:
timeout-minutes: 10
name: "Constraints push"
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
needs:
- build-info
- constraints
Expand Down Expand Up @@ -961,7 +961,7 @@ jobs:
tag-repo-nightly:
timeout-minutes: 10
name: "Tag repo nightly"
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
needs:
- docs
- docs-spell-check
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ on: # yamllint disable-line rule:truthy
jobs:
selective-checks:
name: Selective checks
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
outputs:
needs-python-scans: ${{ steps.selective-checks.outputs.needs-python-scans }}
needs-javascript-scans: ${{ steps.selective-checks.outputs.needs-javascript-scans }}
Expand All @@ -52,7 +52,7 @@ jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
needs: [selective-checks]
strategy:
fail-fast: false
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/delete_old_artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ on: # yamllint disable-line rule:truthy

jobs:
delete-artifacts:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- uses: kolpav/purge-artifacts-action@04c636a505f26ebc82f8d070b202fb87ff572b10 # v1.0
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/label_when_reviewed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:

label-when-reviewed:
name: "Label PRs when reviewed"
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- name: "Do nothing. Only trigger corresponding workflow_run event"
run: echo
2 changes: 1 addition & 1 deletion .github/workflows/label_when_reviewed_workflow_run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:

label-when-reviewed:
name: "Label PRs when reviewed workflow run"
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
outputs:
labelSet: ${{ steps.label-when-reviewed.outputs.labelSet }}
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/repo_sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ on: # yamllint disable-line rule:truthy
jobs:
repo-sync:
if: github.repository != 'apache/airflow'
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@master
- name: repo-sync
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/scheduled_quarantined.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
trigger-tests:
timeout-minutes: 5
name: "Checks if tests should be run"
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
outputs:
run-tests: ${{ steps.trigger-tests.outputs.run-tests }}
steps:
Expand All @@ -60,7 +60,7 @@ jobs:
tests-quarantined:
timeout-minutes: 80
name: "Quarantined tests"
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
continue-on-error: true
needs: [trigger-tests]
strategy:
Expand Down

0 comments on commit 09a47b7

Please sign in to comment.