You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2022/08/28 16:49:07 UTC
[airflow] branch main updated: Remove remaining fromJson in a few runs-on (#26022)
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 05cbba387d Remove remaining fromJson in a few runs-on (#26022)
05cbba387d is described below
commit 05cbba387dfd1b886cf5d882fd1b7aa415ca39ed
Author: Jarek Potiuk <ja...@polidea.com>
AuthorDate: Sun Aug 28 18:49:01 2022 +0200
Remove remaining fromJson in a few runs-on (#26022)
The change #26018 introduced better way of calculating runs-on
using Breeze, but it missed a few cases where old mechanism used
fromJson (where it was not necessary and harmful actually).
This fixes the problem.
---
.github/workflows/build-images.yml | 12 ++++++------
.github/workflows/ci.yml | 2 +-
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/.github/workflows/build-images.yml b/.github/workflows/build-images.yml
index 966683988f..5dd5aadcbe 100644
--- a/.github/workflows/build-images.yml
+++ b/.github/workflows/build-images.yml
@@ -166,7 +166,7 @@ jobs:
packages: write
timeout-minutes: 80
name: "Build CI images ${{ needs.build-info.outputs.all-python-versions-list-as-string }}"
- runs-on: ${{ fromJson(needs.build-info.outputs.runs-on) }}
+ runs-on: ${{ needs.build-info.outputs.runs-on }}
needs: [build-info]
if: |
needs.build-info.outputs.image-build == 'true' &&
@@ -174,7 +174,7 @@ jobs:
env:
DEFAULT_BRANCH: ${{ needs.build-info.outputs.default-branch }}
DEFAULT_CONSTRAINTS_BRANCH: ${{ needs.build-info.outputs.default-constraints-branch }}
- RUNS_ON: ${{ fromJson(needs.build-info.outputs.runs-on)[0] }}
+ RUNS_ON: ${{ needs.build-info.outputs.runs-on }}
BACKEND: sqlite
outputs: ${{toJSON(needs.build-info.outputs) }}
steps:
@@ -259,7 +259,7 @@ ${{ hashFiles('.pre-commit-config.yaml') }}"
packages: write
timeout-minutes: 80
name: "Build PROD images ${{ needs.build-info.outputs.all-python-versions-list-as-string }}"
- runs-on: ${{ fromJson(needs.build-info.outputs.runs-on) }}
+ runs-on: ${{ needs.build-info.outputs.runs-on }}
needs: [build-info, build-ci-images]
if: |
needs.build-info.outputs.image-build == 'true' &&
@@ -267,7 +267,7 @@ ${{ hashFiles('.pre-commit-config.yaml') }}"
env:
DEFAULT_BRANCH: ${{ needs.build-info.outputs.default-branch }}
DEFAULT_CONSTRAINTS_BRANCH: ${{ needs.build-info.outputs.default-constraints-branch }}
- RUNS_ON: ${{ fromJson(needs.build-info.outputs.runs-on)[0] }}
+ RUNS_ON: ${{ needs.build-info.outputs.runs-on }}
BACKEND: sqlite
steps:
- name: Cleanup repo
@@ -370,7 +370,7 @@ ${{ hashFiles('.pre-commit-config.yaml') }}"
build-ci-images-arm:
timeout-minutes: 50
name: "Build ARM CI images ${{ needs.build-info.outputs.all-python-versions-list-as-string }}"
- runs-on: ${{ fromJson(needs.build-info.outputs.runs-on) }}
+ runs-on: ${{ needs.build-info.outputs.runs-on }}
needs: [build-info, build-prod-images]
if: |
needs.build-info.outputs.image-build == 'true' &&
@@ -379,7 +379,7 @@ ${{ hashFiles('.pre-commit-config.yaml') }}"
env:
DEFAULT_BRANCH: ${{ needs.build-info.outputs.default-branch }}
DEFAULT_CONSTRAINTS_BRANCH: ${{ needs.build-info.outputs.default-constraints-branch }}
- RUNS_ON: ${{ fromJson(needs.build-info.outputs.runs-on)[0] }}
+ RUNS_ON: ${{ needs.build-info.outputs.runs-on }}
BACKEND: sqlite
outputs: ${{toJSON(needs.build-info.outputs) }}
steps:
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 4e000d67d8..70607c6aeb 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -315,7 +315,7 @@ ${{ hashFiles('.pre-commit-config.yaml') }}"
name: >
${{needs.build-info.outputs.build-job-description}} PROD images
${{ needs.build-info.outputs.all-python-versions-list-as-string }}
- runs-on: ${{ fromJson(needs.build-info.outputs.runs-on) }}
+ runs-on: ${{ needs.build-info.outputs.runs-on }}
needs: [build-info, build-ci-images]
env:
DEFAULT_BRANCH: ${{ needs.build-info.outputs.default-branch }}