This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 3d8794bf50 Upgrade to latest ubuntu version for public runners (#31514)
3d8794bf50 is described below
commit 3d8794bf50fe6028706d5e4b15f04110c6e2428b
Author: Jarek Potiuk <[email protected]>
AuthorDate: Wed May 24 22:29:58 2023 +0200
Upgrade to latest ubuntu version for public runners (#31514)
---
.github/workflows/build-images.yml | 2 +-
.github/workflows/ci.yml | 4 ++--
.github/workflows/codeql-analysis.yml | 4 ++--
.github/workflows/recheck-old-bug-report.yml | 2 +-
.github/workflows/release_dockerhub_image.yml | 6 +++---
.github/workflows/stale.yml | 2 +-
dev/breeze/src/airflow_breeze/global_constants.py | 2 +-
dev/breeze/tests/test_pr_info.py | 10 +++++-----
8 files changed, 16 insertions(+), 16 deletions(-)
diff --git a/.github/workflows/build-images.yml
b/.github/workflows/build-images.yml
index 6e6fa47f88..077ef00ae2 100644
--- a/.github/workflows/build-images.yml
+++ b/.github/workflows/build-images.yml
@@ -50,7 +50,7 @@ jobs:
build-info:
timeout-minutes: 10
name: "Build Info"
- runs-on: 'ubuntu-20.04'
+ runs-on: 'ubuntu-22.04'
env:
TARGET_BRANCH: ${{ github.event.pull_request.base.ref }}
outputs:
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 3c19cf0217..e6ce47e93f 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -65,7 +65,7 @@ jobs:
# to find the list of authors and replace them, so any changes to the
# formatting of the contains(fromJSON()) structure below will need to be
# reflected in that workflow too.
- runs-on: "ubuntu-20.04"
+ runs-on: "ubuntu-22.04"
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
outputs:
@@ -468,7 +468,7 @@ jobs:
wait-for-ci-images:
timeout-minutes: 120
name: "Wait for CI images"
- runs-on: "ubuntu-20.04"
+ runs-on: "ubuntu-22.04"
needs: [build-info, build-ci-images]
if: needs.build-info.outputs.image-build == 'true'
env:
diff --git a/.github/workflows/codeql-analysis.yml
b/.github/workflows/codeql-analysis.yml
index cec9eaf995..656ab5d7c5 100644
--- a/.github/workflows/codeql-analysis.yml
+++ b/.github/workflows/codeql-analysis.yml
@@ -33,7 +33,7 @@ concurrency:
jobs:
selective-checks:
name: Selective checks
- runs-on: ubuntu-20.04
+ runs-on: ubuntu-22.04
outputs:
needs-python-scans: ${{
steps.selective-checks.outputs.needs-python-scans }}
needs-javascript-scans: ${{
steps.selective-checks.outputs.needs-javascript-scans }}
@@ -54,7 +54,7 @@ jobs:
analyze:
name: Analyze
- runs-on: ubuntu-20.04
+ runs-on: ubuntu-22.04
needs: [selective-checks]
strategy:
fail-fast: false
diff --git a/.github/workflows/recheck-old-bug-report.yml
b/.github/workflows/recheck-old-bug-report.yml
index f40997fb73..0d94764433 100644
--- a/.github/workflows/recheck-old-bug-report.yml
+++ b/.github/workflows/recheck-old-bug-report.yml
@@ -26,7 +26,7 @@ permissions:
issues: write
jobs:
recheck-old-bug-report:
- runs-on: ubuntu-20.04
+ runs-on: ubuntu-22.04
steps:
- uses: actions/stale@v7
with:
diff --git a/.github/workflows/release_dockerhub_image.yml
b/.github/workflows/release_dockerhub_image.yml
index fca33a204e..98869ce0b2 100644
--- a/.github/workflows/release_dockerhub_image.yml
+++ b/.github/workflows/release_dockerhub_image.yml
@@ -36,7 +36,7 @@ jobs:
build-info:
timeout-minutes: 10
name: "Build Info"
- runs-on: ${{ github.repository == 'apache/airflow' && 'self-hosted' ||
'ubuntu-20.04' }}
+ runs-on: ${{ github.repository == 'apache/airflow' && 'self-hosted' ||
'ubuntu-22.04' }}
outputs:
pythonVersions: ${{ steps.selective-checks.outputs.python-versions }}
allPythonVersions: ${{
steps.selective-checks.outputs.all-python-versions }}
@@ -63,14 +63,14 @@ jobs:
release-images:
timeout-minutes: 120
name: "Release images: ${{ github.event.inputs.airflowVersion }}, ${{
matrix.python-version }}"
- runs-on: ${{ github.repository == 'apache/airflow' && 'self-hosted' ||
'ubuntu-20.04' }}
+ runs-on: ${{ github.repository == 'apache/airflow' && 'self-hosted' ||
'ubuntu-22.04' }}
needs: [build-info]
strategy:
fail-fast: false
matrix:
python-version: ${{ fromJson(needs.build-info.outputs.pythonVersions)
}}
env:
- RUNS_ON: ${{ github.repository == 'apache/airflow' && 'self-hosted' ||
'ubuntu-20.04' }}
+ RUNS_ON: ${{ github.repository == 'apache/airflow' && 'self-hosted' ||
'ubuntu-22.04' }}
if: contains(fromJSON('[
"ashb",
"ephraimbuddy",
diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml
index 073043b2d5..d149792076 100644
--- a/.github/workflows/stale.yml
+++ b/.github/workflows/stale.yml
@@ -27,7 +27,7 @@ permissions:
issues: write
jobs:
stale:
- runs-on: ubuntu-20.04
+ runs-on: ubuntu-22.04
steps:
- uses: actions/stale@v8
with:
diff --git a/dev/breeze/src/airflow_breeze/global_constants.py
b/dev/breeze/src/airflow_breeze/global_constants.py
index a72f6b7513..2ae12f1376 100644
--- a/dev/breeze/src/airflow_breeze/global_constants.py
+++ b/dev/breeze/src/airflow_breeze/global_constants.py
@@ -28,7 +28,7 @@ from pathlib import Path
from airflow_breeze.utils.host_info_utils import Architecture
from airflow_breeze.utils.path_utils import AIRFLOW_SOURCES_ROOT,
DEPENDENCIES_JSON_FILE_PATH
-RUNS_ON_PUBLIC_RUNNER = "ubuntu-20.04"
+RUNS_ON_PUBLIC_RUNNER = "ubuntu-22.04"
RUNS_ON_SELF_HOSTED_RUNNER = "self-hosted"
ANSWER = ""
diff --git a/dev/breeze/tests/test_pr_info.py b/dev/breeze/tests/test_pr_info.py
index 23a971da5d..7a8d910fe9 100644
--- a/dev/breeze/tests/test_pr_info.py
+++ b/dev/breeze/tests/test_pr_info.py
@@ -39,7 +39,7 @@ def test_pr_info():
assert wi.head_repo == "test/airflow"
assert wi.event_name == "pull_request"
assert wi.pr_number == 26004
- assert wi.get_runs_on() == "ubuntu-20.04"
+ assert wi.get_runs_on() == "ubuntu-22.04"
assert wi.is_canary_run() == "false"
assert wi.run_coverage() == "false"
@@ -53,7 +53,7 @@ def test_push_info():
assert wi.head_repo == "apache/airflow"
assert wi.event_name == "push"
assert wi.pr_number is None
- assert wi.get_runs_on() == "ubuntu-20.04"
+ assert wi.get_runs_on() == "ubuntu-22.04"
assert wi.is_canary_run() == "true"
assert wi.run_coverage() == "true"
@@ -67,7 +67,7 @@ def test_schedule():
assert wi.head_repo == "apache/airflow"
assert wi.event_name == "schedule"
assert wi.pr_number is None
- assert wi.get_runs_on() == "ubuntu-20.04"
+ assert wi.get_runs_on() == "ubuntu-22.04"
assert wi.is_canary_run() == "false"
assert wi.run_coverage() == "false"
@@ -95,7 +95,7 @@ def test_runs_on_forced_public_runner():
assert wi.head_repo == "apache/airflow"
assert wi.event_name == "pull_request"
assert wi.pr_number == 1234
- assert wi.get_runs_on() == "ubuntu-20.04"
+ assert wi.get_runs_on() == "ubuntu-22.04"
assert wi.is_canary_run() == "false"
assert wi.run_coverage() == "false"
@@ -109,7 +109,7 @@ def test_runs_on_simple_pr_other_repo():
assert wi.head_repo == "test/airflow"
assert wi.event_name == "pull_request"
assert wi.pr_number == 1234
- assert wi.get_runs_on() == "ubuntu-20.04"
+ assert wi.get_runs_on() == "ubuntu-22.04"
assert wi.is_canary_run() == "false"
assert wi.run_coverage() == "false"