This is an automated email from the ASF dual-hosted git repository. potiuk pushed a commit to branch v1-10-test in repository https://gitbox.apache.org/repos/asf/airflow.git
commit b914c32138013932cca8a231a05628eae9244d36 Author: Jarek Potiuk <[email protected]> AuthorDate: Tue Nov 17 18:49:27 2020 +0100 Switching to Ubuntu 20.04 as Github Actions runner. (#12404) Ubuntu 20.04 will soon become the default runner for GA. See: https://github.com/actions/virtual-environments/issues/1816 This PR tests if this is working fine. (cherry picked from commit c38dadb526f7104df7a1a6feda72ce1b65557bd9) --- .github/workflows/build-images-workflow-run.yml | 10 +++---- .github/workflows/ci.yml | 34 +++++++++++----------- .github/workflows/codeql-analysis.yml | 4 +-- .github/workflows/delete_old_artifacts.yml | 2 +- .github/workflows/label_when_reviewed.yml | 2 +- .../workflows/label_when_reviewed_workflow_run.yml | 2 +- .github/workflows/scheduled_quarantined.yml | 4 +-- 7 files changed, 29 insertions(+), 29 deletions(-) diff --git a/.github/workflows/build-images-workflow-run.yml b/.github/workflows/build-images-workflow-run.yml index af71710..9726c5a 100644 --- a/.github/workflows/build-images-workflow-run.yml +++ b/.github/workflows/build-images-workflow-run.yml @@ -44,7 +44,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 }} @@ -192,7 +192,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) }} @@ -257,7 +257,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: @@ -383,7 +383,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: @@ -398,7 +398,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: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dad697f..5aadfd0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -64,7 +64,7 @@ jobs: build-info: name: "Build info" - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 env: GITHUB_CONTEXT: ${{ toJson(github) }} outputs: @@ -145,7 +145,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: @@ -179,7 +179,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: MOUNT_LOCAL_SOURCES: "true" @@ -214,7 +214,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" @@ -250,7 +250,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: @@ -270,7 +270,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" @@ -318,7 +318,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: @@ -370,7 +370,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: @@ -421,7 +421,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: @@ -469,7 +469,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: @@ -541,7 +541,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 @@ -564,7 +564,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 @@ -594,7 +594,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: @@ -669,7 +669,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 @@ -705,7 +705,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 @@ -741,7 +741,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) }} @@ -774,7 +774,7 @@ jobs: constraints-push: timeout-minutes: 10 name: "Constraints push" - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 needs: - build-info - constraints diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index e0178bf..2bf92b7 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -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 }} @@ -52,7 +52,7 @@ jobs: analyze: name: Analyze - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 needs: [selective-checks] strategy: fail-fast: false diff --git a/.github/workflows/delete_old_artifacts.yml b/.github/workflows/delete_old_artifacts.yml index 8b35711..98329d5 100644 --- a/.github/workflows/delete_old_artifacts.yml +++ b/.github/workflows/delete_old_artifacts.yml @@ -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: diff --git a/.github/workflows/label_when_reviewed.yml b/.github/workflows/label_when_reviewed.yml index 62d7cc6..5095953 100644 --- a/.github/workflows/label_when_reviewed.yml +++ b/.github/workflows/label_when_reviewed.yml @@ -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 diff --git a/.github/workflows/label_when_reviewed_workflow_run.yml b/.github/workflows/label_when_reviewed_workflow_run.yml index f943609..6e45038 100644 --- a/.github/workflows/label_when_reviewed_workflow_run.yml +++ b/.github/workflows/label_when_reviewed_workflow_run.yml @@ -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: diff --git a/.github/workflows/scheduled_quarantined.yml b/.github/workflows/scheduled_quarantined.yml index 552edfb..cf29c38 100644 --- a/.github/workflows/scheduled_quarantined.yml +++ b/.github/workflows/scheduled_quarantined.yml @@ -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: @@ -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:
