This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch v3-0-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/v3-0-test by this push:
new 3ea50a992d4 [v3-0-test] Make sure default-python-version is quoted in
GH action yaml files (#52848) (#52853)
3ea50a992d4 is described below
commit 3ea50a992d4560a9a89384b38852b8a1d05b2e6c
Author: Jarek Potiuk <[email protected]>
AuthorDate: Fri Jul 4 11:15:57 2025 +0200
[v3-0-test] Make sure default-python-version is quoted in GH action yaml
files (#52848) (#52853)
This is a nice (?) feature of yaml that it interpretes the type
of passed value and tries to determine it automatically. Which is
a bummer if you pass python version = 3.10 without quotes, because
it is interpreted as 3.1 float rather than "3.10" string
And we have now 3.10 as default python version so we have to
quote it in order to make sure it is interpreted correctly.
It did not cause problems for now because breeze automatically switches
to a default ("3.10") python version when you specify a version that
is not valid, but we had a number of warnings in CI:
```
The value 3.1 is not allowed for parameter python. Setting default value to
3.10
```
(cherry picked from commit 2784d39447ccace53314948646e4f9e992eaf5d2)
---
.github/workflows/additional-ci-image-checks.yml | 4 +--
.github/workflows/additional-prod-image-tests.yml | 8 +++---
.github/workflows/ci-amd.yml | 26 ++++++++++----------
.github/workflows/ci-arm.yml | 12 ++++-----
.github/workflows/ci-image-checks.yml | 10 ++++----
.github/workflows/helm-tests.yml | 2 +-
.github/workflows/integration-system-tests.yml | 12 ++++-----
.github/workflows/prod-image-extra-checks.yml | 4 +--
.github/workflows/publish-docs-to-s3.yml | 30 ++++++++++++++++++++---
.github/workflows/test-providers.yml | 2 +-
10 files changed, 67 insertions(+), 43 deletions(-)
diff --git a/.github/workflows/additional-ci-image-checks.yml
b/.github/workflows/additional-ci-image-checks.yml
index d78404dfef5..024f4a4ea0a 100644
--- a/.github/workflows/additional-ci-image-checks.yml
+++ b/.github/workflows/additional-ci-image-checks.yml
@@ -122,8 +122,8 @@ jobs:
runs-on: ${{ fromJSON(inputs.runners) }}
env:
UPGRADE_TO_NEWER_DEPENDENCIES: false
- PYTHON_MAJOR_MINOR_VERSION: ${{ inputs.default-python-version }}
- PYTHON_VERSION: ${{ inputs.default-python-version }}
+ PYTHON_MAJOR_MINOR_VERSION: "${{ inputs.default-python-version }}"
+ PYTHON_VERSION: "${{ inputs.default-python-version }}"
GITHUB_REPOSITORY: ${{ github.repository }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_USERNAME: ${{ github.actor }}
diff --git a/.github/workflows/additional-prod-image-tests.yml
b/.github/workflows/additional-prod-image-tests.yml
index d8e3180f883..e970526c4b0 100644
--- a/.github/workflows/additional-prod-image-tests.yml
+++ b/.github/workflows/additional-prod-image-tests.yml
@@ -70,7 +70,7 @@ jobs:
runners: ${{ inputs.runners }}
platform: ${{ inputs.platform }}
python-versions: "[ '${{ inputs.default-python-version }}' ]"
- default-python-version: ${{ inputs.default-python-version }}
+ default-python-version: "${{ inputs.default-python-version }}"
branch: ${{ inputs.default-branch }}
upgrade-to-newer-dependencies: ${{ inputs.upgrade-to-newer-dependencies
}}
constraints-branch: ${{ inputs.constraints-branch }}
@@ -85,7 +85,7 @@ jobs:
runners: ${{ inputs.runners }}
platform: ${{ inputs.platform }}
python-versions: "[ '${{ inputs.default-python-version }}' ]"
- default-python-version: ${{ inputs.default-python-version }}
+ default-python-version: "${{ inputs.default-python-version }}"
branch: ${{ inputs.default-branch }}
upgrade-to-newer-dependencies: ${{ inputs.upgrade-to-newer-dependencies
}}
constraints-branch: ${{ inputs.constraints-branch }}
@@ -116,13 +116,13 @@ jobs:
with:
platform: ${{ inputs.platform }}
image-type: "prod"
- python: ${{ inputs.default-python-version }}
+ python: "${{ inputs.default-python-version }}"
use-uv: ${{ inputs.use-uv }}
- name: "Test examples of PROD image building"
env:
GITHUB_REPOSITORY: ${{ github.repository }}
DEFAULT_BRANCH: ${{ inputs.default-branch }}
- DEFAULT_PYTHON_VERSION: ${{ inputs.default-python-version }}
+ DEFAULT_PYTHON_VERSION: "${{ inputs.default-python-version }}"
run: "
cd ./docker-tests && \
TEST_IMAGE=\"ghcr.io/$GITHUB_REPOSITORY/$DEFAULT_BRANCH\
diff --git a/.github/workflows/ci-amd.yml b/.github/workflows/ci-amd.yml
index 252d5cfe78b..4a3f5b69f90 100644
--- a/.github/workflows/ci-amd.yml
+++ b/.github/workflows/ci-amd.yml
@@ -209,7 +209,7 @@ jobs:
run-ui-tests: ${{needs.build-info.outputs.run-ui-tests}}
run-www-tests: ${{needs.build-info.outputs.run-www-tests}}
needs-api-codegen: ${{needs.build-info.outputs.needs-api-codegen}}
- default-python-version:
${{needs.build-info.outputs.default-python-version}}
+ default-python-version: "${{
needs.build-info.outputs.default-python-version }}"
basic-checks-only: ${{needs.build-info.outputs.basic-checks-only}}
skip-pre-commits: ${{needs.build-info.outputs.skip-pre-commits}}
canary-run: ${{needs.build-info.outputs.canary-run}}
@@ -254,7 +254,7 @@ jobs:
python-versions: ${{ needs.build-info.outputs.python-versions }}
branch: ${{ needs.build-info.outputs.default-branch }}
constraints-branch: ${{
needs.build-info.outputs.default-constraints-branch }}
- default-python-version: ${{
needs.build-info.outputs.default-python-version }}
+ default-python-version: "${{
needs.build-info.outputs.default-python-version }}"
upgrade-to-newer-dependencies: ${{
needs.build-info.outputs.upgrade-to-newer-dependencies }}
skip-pre-commits: ${{ needs.build-info.outputs.skip-pre-commits }}
docker-cache: ${{ needs.build-info.outputs.docker-cache }}
@@ -297,7 +297,7 @@ jobs:
python-versions-list-as-string: ${{
needs.build-info.outputs.python-versions-list-as-string }}
branch: ${{ needs.build-info.outputs.default-branch }}
canary-run: ${{ needs.build-info.outputs.canary-run }}
- default-python-version: ${{
needs.build-info.outputs.default-python-version }}
+ default-python-version: "${{
needs.build-info.outputs.default-python-version }}"
docs-list-as-string: ${{ needs.build-info.outputs.docs-list-as-string }}
latest-versions-only: ${{ needs.build-info.outputs.latest-versions-only
}}
basic-checks-only: ${{ needs.build-info.outputs.basic-checks-only }}
@@ -330,7 +330,7 @@ jobs:
runners: ${{ needs.build-info.outputs.amd-runners }}
platform: "linux/amd64"
canary-run: ${{ needs.build-info.outputs.canary-run }}
- default-python-version: ${{
needs.build-info.outputs.default-python-version }}
+ default-python-version: "${{
needs.build-info.outputs.default-python-version }}"
upgrade-to-newer-dependencies: ${{
needs.build-info.outputs.upgrade-to-newer-dependencies }}
selected-providers-list-as-string: ${{
needs.build-info.outputs.selected-providers-list-as-string }}
# yamllint disable rule:line-length
@@ -353,7 +353,7 @@ jobs:
runners: ${{ needs.build-info.outputs.amd-runners }}
platform: "linux/amd64"
helm-test-packages: ${{ needs.build-info.outputs.helm-test-packages }}
- default-python-version: ${{
needs.build-info.outputs.default-python-version }}
+ default-python-version: "${{
needs.build-info.outputs.default-python-version }}"
use-uv: ${{ needs.build-info.outputs.use-uv }}
if: >
needs.build-info.outputs.needs-helm-tests == 'true' &&
@@ -613,7 +613,7 @@ jobs:
providers-test-types-list-as-strings-in-json: >
${{
needs.build-info.outputs.providers-test-types-list-as-strings-in-json }}
run-coverage: ${{ needs.build-info.outputs.run-coverage }}
- default-python-version: ${{
needs.build-info.outputs.default-python-version }}
+ default-python-version: "${{
needs.build-info.outputs.default-python-version }}"
python-versions: ${{ needs.build-info.outputs.python-versions }}
default-postgres-version: ${{
needs.build-info.outputs.default-postgres-version }}
excluded-providers-as-string: ${{
needs.build-info.outputs.excluded-providers-as-string }}
@@ -637,7 +637,7 @@ jobs:
testable-core-integrations: ${{
needs.build-info.outputs.testable-core-integrations }}
testable-providers-integrations: ${{
needs.build-info.outputs.testable-providers-integrations }}
run-system-tests: ${{ needs.build-info.outputs.run-tests }}
- default-python-version: ${{
needs.build-info.outputs.default-python-version }}
+ default-python-version: "${{
needs.build-info.outputs.default-python-version }}"
default-postgres-version: ${{
needs.build-info.outputs.default-postgres-version }}
default-mysql-version: ${{
needs.build-info.outputs.default-mysql-version }}
run-coverage: ${{ needs.build-info.outputs.run-coverage }}
@@ -722,7 +722,7 @@ jobs:
upload-image-artifact: "true"
upload-package-artifact: "true"
python-versions: ${{ needs.build-info.outputs.python-versions }}
- default-python-version: ${{
needs.build-info.outputs.default-python-version }}
+ default-python-version: "${{
needs.build-info.outputs.default-python-version }}"
branch: ${{ needs.build-info.outputs.default-branch }}
use-uv: ${{ needs.build-info.outputs.use-uv }}
upgrade-to-newer-dependencies: ${{
needs.build-info.outputs.upgrade-to-newer-dependencies }}
@@ -743,7 +743,7 @@ jobs:
upgrade-to-newer-dependencies: ${{
needs.build-info.outputs.upgrade-to-newer-dependencies }}
docker-cache: ${{ needs.build-info.outputs.docker-cache }}
disable-airflow-repo-cache: ${{
needs.build-info.outputs.disable-airflow-repo-cache }}
- default-python-version: ${{
needs.build-info.outputs.default-python-version }}
+ default-python-version: "${{
needs.build-info.outputs.default-python-version }}"
canary-run: ${{ needs.build-info.outputs.canary-run }}
use-uv: ${{ needs.build-info.outputs.use-uv }}
if: needs.build-info.outputs.prod-image-build == 'true'
@@ -777,7 +777,7 @@ jobs:
with:
runners: ${{ needs.build-info.outputs.amd-runners }}
platform: "linux/amd64"
- default-python-version: ${{
needs.build-info.outputs.default-python-version }}
+ default-python-version: "${{
needs.build-info.outputs.default-python-version }}"
python-versions: ${{ needs.build-info.outputs.python-versions }}
use-uv: ${{ needs.build-info.outputs.use-uv }}
canary-run: ${{ needs.build-info.outputs.canary-run }}
@@ -838,7 +838,7 @@ jobs:
# with:
# runners: ${{ needs.build-info.outputs.amd-runners }}
# platform: "linux/amd64"
-# default-python-version: ${{
needs.build-info.outputs.default-python-version }}
+# default-python-version: "${{
needs.build-info.outputs.default-python-version }}"
# python-versions: ${{ needs.build-info.outputs.python-versions }}
# use-uv: ${{ needs.build-info.outputs.use-uv }}
# canary-run: ${{ needs.build-info.outputs.canary-run }}
@@ -891,7 +891,7 @@ jobs:
python-versions-list-as-string: ${{
needs.build-info.outputs.python-versions-list-as-string }}
branch: ${{ needs.build-info.outputs.default-branch }}
constraints-branch: ${{
needs.build-info.outputs.default-constraints-branch }}
- default-python-version: ${{
needs.build-info.outputs.default-python-version }}
+ default-python-version: "${{
needs.build-info.outputs.default-python-version }}"
upgrade-to-newer-dependencies: ${{
needs.build-info.outputs.upgrade-to-newer-dependencies }}
include-success-outputs: ${{
needs.build-info.outputs.include-success-outputs }}
docker-cache: ${{ needs.build-info.outputs.docker-cache }}
@@ -950,7 +950,7 @@ jobs:
- name: "Setup python"
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 #
v5.6.0
with:
- python-version: ${{ inputs.default-python-version }}
+ python-version: "${{ inputs.default-python-version }}"
- name: "Summarize all warnings"
run: |
./scripts/ci/testing/summarize_captured_warnings.py ./artifacts \
diff --git a/.github/workflows/ci-arm.yml b/.github/workflows/ci-arm.yml
index 2fb75cf2e97..8c309409ca3 100644
--- a/.github/workflows/ci-arm.yml
+++ b/.github/workflows/ci-arm.yml
@@ -171,7 +171,7 @@ jobs:
run-ui-tests: ${{needs.build-info.outputs.run-ui-tests}}
run-www-tests: ${{needs.build-info.outputs.run-www-tests}}
needs-api-codegen: ${{needs.build-info.outputs.needs-api-codegen}}
- default-python-version:
${{needs.build-info.outputs.default-python-version}}
+ default-python-version: "${{
needs.build-info.outputs.default-python-version }}"
basic-checks-only: ${{needs.build-info.outputs.basic-checks-only}}
skip-pre-commits: ${{needs.build-info.outputs.skip-pre-commits}}
canary-run: ${{needs.build-info.outputs.canary-run}}
@@ -216,7 +216,7 @@ jobs:
python-versions: ${{ needs.build-info.outputs.python-versions }}
branch: ${{ needs.build-info.outputs.default-branch }}
constraints-branch: ${{
needs.build-info.outputs.default-constraints-branch }}
- default-python-version: ${{
needs.build-info.outputs.default-python-version }}
+ default-python-version: "${{
needs.build-info.outputs.default-python-version }}"
upgrade-to-newer-dependencies: ${{
needs.build-info.outputs.upgrade-to-newer-dependencies }}
skip-pre-commits: ${{ needs.build-info.outputs.skip-pre-commits }}
docker-cache: ${{ needs.build-info.outputs.docker-cache }}
@@ -258,7 +258,7 @@ jobs:
runners: ${{ needs.build-info.outputs.arm-runners }}
platform: "linux/arm64"
canary-run: ${{ needs.build-info.outputs.canary-run }}
- default-python-version: ${{
needs.build-info.outputs.default-python-version }}
+ default-python-version: "${{
needs.build-info.outputs.default-python-version }}"
upgrade-to-newer-dependencies: ${{
needs.build-info.outputs.upgrade-to-newer-dependencies }}
selected-providers-list-as-string: ${{
needs.build-info.outputs.selected-providers-list-as-string }}
# yamllint disable rule:line-length
@@ -281,7 +281,7 @@ jobs:
runners: ${{ needs.build-info.outputs.arm-runners }}
platform: "linux/arm64"
helm-test-packages: ${{ needs.build-info.outputs.helm-test-packages }}
- default-python-version: ${{
needs.build-info.outputs.default-python-version }}
+ default-python-version: "${{
needs.build-info.outputs.default-python-version }}"
use-uv: ${{ needs.build-info.outputs.use-uv }}
if: >
needs.build-info.outputs.needs-helm-tests == 'true' &&
@@ -480,7 +480,7 @@ jobs:
upload-image-artifact: "true"
upload-package-artifact: "true"
python-versions: ${{ needs.build-info.outputs.python-versions }}
- default-python-version: ${{
needs.build-info.outputs.default-python-version }}
+ default-python-version: "${{
needs.build-info.outputs.default-python-version }}"
branch: ${{ needs.build-info.outputs.default-branch }}
use-uv: ${{ needs.build-info.outputs.use-uv }}
upgrade-to-newer-dependencies: ${{
needs.build-info.outputs.upgrade-to-newer-dependencies }}
@@ -576,7 +576,7 @@ jobs:
python-versions-list-as-string: ${{
needs.build-info.outputs.python-versions-list-as-string }}
branch: ${{ needs.build-info.outputs.default-branch }}
constraints-branch: ${{
needs.build-info.outputs.default-constraints-branch }}
- default-python-version: ${{
needs.build-info.outputs.default-python-version }}
+ default-python-version: "${{
needs.build-info.outputs.default-python-version }}"
upgrade-to-newer-dependencies: ${{
needs.build-info.outputs.upgrade-to-newer-dependencies }}
include-success-outputs: ${{
needs.build-info.outputs.include-success-outputs }}
docker-cache: ${{ needs.build-info.outputs.docker-cache }}
diff --git a/.github/workflows/ci-image-checks.yml
b/.github/workflows/ci-image-checks.yml
index a3baab28f29..caa6f4c8889 100644
--- a/.github/workflows/ci-image-checks.yml
+++ b/.github/workflows/ci-image-checks.yml
@@ -180,7 +180,7 @@ jobs:
uses: ./.github/actions/prepare_breeze_and_image
with:
platform: ${{ inputs.platform }}
- python: ${{ inputs.default-python-version }}
+ python: "${{ inputs.default-python-version }}"
use-uv: ${{ inputs.use-uv }}
id: breeze
- name: "Install pre-commit"
@@ -223,7 +223,7 @@ jobs:
uses: ./.github/actions/prepare_breeze_and_image
with:
platform: ${{ inputs.platform }}
- python: ${{ inputs.default-python-version }}
+ python: "${{ inputs.default-python-version }}"
use-uv: ${{ inputs.use-uv }}
id: breeze
- name: "Install pre-commit"
@@ -271,7 +271,7 @@ jobs:
uses: ./.github/actions/prepare_breeze_and_image
with:
platform: ${{ inputs.platform }}
- python: ${{ inputs.default-python-version }}
+ python: "${{ inputs.default-python-version }}"
use-uv: ${{ inputs.use-uv }}
- name: "Restore docs inventory cache"
uses:
apache/infrastructure-actions/stash/restore@1c35b5ccf8fba5d4c3fdf25a045ca91aa0cbc468
@@ -334,7 +334,7 @@ jobs:
uses: ./.github/actions/prepare_breeze_and_image
with:
platform: ${{ inputs.platform }}
- python: ${{ inputs.default-python-version }}
+ python: "${{ inputs.default-python-version }}"
use-uv: ${{ inputs.use-uv }}
- name: "Download docs prepared as artifacts"
uses:
actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
@@ -417,7 +417,7 @@ jobs:
uses: ./.github/actions/prepare_breeze_and_image
with:
platform: ${{ inputs.platform }}
- python: ${{ inputs.default-python-version }}
+ python: "${{ inputs.default-python-version }}"
use-uv: ${{ inputs.use-uv }}
- name: "Generate airflow python client"
run: >
diff --git a/.github/workflows/helm-tests.yml b/.github/workflows/helm-tests.yml
index e889e25160c..f2f712a6831 100644
--- a/.github/workflows/helm-tests.yml
+++ b/.github/workflows/helm-tests.yml
@@ -75,7 +75,7 @@ jobs:
uses: ./.github/actions/prepare_breeze_and_image
with:
platform: ${{ inputs.platform }}
- python: ${{ inputs.default-python-version }}
+ python: "${{ inputs.default-python-version }}"
use-uv: ${{ inputs.use-uv }}
- name: "Helm Unit Tests: ${{ matrix.helm-test-package }}"
env:
diff --git a/.github/workflows/integration-system-tests.yml
b/.github/workflows/integration-system-tests.yml
index 6619bedd7c6..0a728a351ed 100644
--- a/.github/workflows/integration-system-tests.yml
+++ b/.github/workflows/integration-system-tests.yml
@@ -104,7 +104,7 @@ jobs:
uses: ./.github/actions/prepare_breeze_and_image
with:
platform: ${{ inputs.platform }}
- python: ${{ inputs.default-python-version }}
+ python: "${{ inputs.default-python-version }}"
use-uv: ${{ inputs.use-uv }}
- name: "Integration: core ${{ matrix.integration }}"
env:
@@ -115,7 +115,7 @@ jobs:
uses: ./.github/actions/post_tests_success
with:
codecov-token: ${{ secrets.CODECOV_TOKEN }}
- python-version: ${{ inputs.default-python-version }}
+ python-version: "${{ inputs.default-python-version }}"
- name: "Post Tests failure"
uses: ./.github/actions/post_tests_failure
if: failure()
@@ -153,7 +153,7 @@ jobs:
uses: ./.github/actions/prepare_breeze_and_image
with:
platform: ${{ inputs.platform }}
- python: ${{ inputs.default-python-version }}
+ python: "${{ inputs.default-python-version }}"
use-uv: ${{ inputs.use-uv }}
- name: "Integration: providers ${{ matrix.integration }}"
env:
@@ -163,7 +163,7 @@ jobs:
uses: ./.github/actions/post_tests_success
with:
codecov-token: ${{ secrets.CODECOV_TOKEN }}
- python-version: ${{ inputs.default-python-version }}
+ python-version: "${{ inputs.default-python-version }}"
- name: "Post Tests failure"
uses: ./.github/actions/post_tests_failure
if: failure()
@@ -197,7 +197,7 @@ jobs:
uses: ./.github/actions/prepare_breeze_and_image
with:
platform: ${{ inputs.platform }}
- python: ${{ inputs.default-python-version }}
+ python: "${{ inputs.default-python-version }}"
use-uv: ${{ inputs.use-uv }}
- name: "System Tests"
run: >
@@ -206,7 +206,7 @@ jobs:
uses: ./.github/actions/post_tests_success
with:
codecov-token: ${{ secrets.CODECOV_TOKEN }}
- python-version: ${{ inputs.default-python-version }}
+ python-version: "${{ inputs.default-python-version }}"
- name: "Post Tests failure"
uses: ./.github/actions/post_tests_failure
if: failure()
diff --git a/.github/workflows/prod-image-extra-checks.yml
b/.github/workflows/prod-image-extra-checks.yml
index c72bef7003b..2d8a950982f 100644
--- a/.github/workflows/prod-image-extra-checks.yml
+++ b/.github/workflows/prod-image-extra-checks.yml
@@ -69,7 +69,7 @@ jobs:
upload-package-artifact: "false"
install-mysql-client-type: "mysql"
python-versions: ${{ inputs.python-versions }}
- default-python-version: ${{ inputs.default-python-version }}
+ default-python-version: "${{ inputs.default-python-version }}"
branch: ${{ inputs.branch }}
# Always build images during the extra checks and never push them
push-image: "false"
@@ -90,7 +90,7 @@ jobs:
upload-package-artifact: "false"
install-mysql-client-type: "mysql"
python-versions: ${{ inputs.python-versions }}
- default-python-version: ${{ inputs.default-python-version }}
+ default-python-version: "${{ inputs.default-python-version }}"
branch: ${{ inputs.branch }}
# Always build images during the extra checks and never push them
push-image: "false"
diff --git a/.github/workflows/publish-docs-to-s3.yml
b/.github/workflows/publish-docs-to-s3.yml
index 6139d33182e..bf7e747edaa 100644
--- a/.github/workflows/publish-docs-to-s3.yml
+++ b/.github/workflows/publish-docs-to-s3.yml
@@ -47,6 +47,11 @@ on: # yamllint disable-line rule:truthy
required: false
default: false
type: boolean
+ build-sboms:
+ description: "Build SBOMs"
+ required: false
+ default: 'false'
+ type: string
permissions:
contents: read
@@ -63,11 +68,13 @@ jobs:
EXCLUDE_DOCS: ${{ inputs.exclude-docs }}
DESTINATION: ${{ inputs.destination }}
SKIP_WRITE_TO_STABLE_FOLDER: ${{ inputs.skip-write-to-stable-folder }}
+ BUILD_SBOMS: ${{ inputs.build-sboms }}
outputs:
include-docs: ${{ inputs.include-docs == 'all' && '' ||
inputs.include-docs }}
destination-location: ${{ steps.parameters.outputs.destination-location
}}
destination: ${{ steps.parameters.outputs.destination }}
extra-build-options: ${{ steps.parameters.outputs.extra-build-options }}
+ airflow-version: ${{ steps.parameters.outputs.airflow-version }}
# yamllint disable rule:line-length
skip-write-to-stable-folder: ${{ inputs.skip-write-to-stable-folder &&
'--skip-write-to-stable-folder' || '' }}
if: contains(fromJSON('[
@@ -92,6 +99,7 @@ jobs:
echo "Exclude docs: '${EXCLUDE_DOCS}'"
echo "Destination: '${DESTINATION}'"
echo "Skip write to stable folder: '${SKIP_WRITE_TO_STABLE_FOLDER}'"
+ echo "Build SBOMs: '${BUILD_SBOMS}'"
if [[ "${DESTINATION}" == "auto" ]]; then
if [[ "${REF}" =~ ^.*[0-9]*\.[0-9]*\.[0-9]*$ ]]; then
echo "${REF} looks like final release, using live destination"
@@ -107,6 +115,12 @@ jobs:
else
echo
"destination-location=s3://staging-docs-airflow-apache-org/docs/" >>
${GITHUB_OUTPUT}
fi
+ if [[ " ${INCLUDE_DOCS} " =~ " apache-airflow " ]]; then
+ AIRFLOW_VERSION=$(echo "${REF}" | grep -oE
'[0-9]+\.[0-9]+\.[0-9]+')
+ echo "airflow-version=${AIRFLOW_VERSION}" >> ${GITHUB_OUTPUT}
+ else
+ echo "airflow-version=no-airflow" >> ${GITHUB_OUTPUT}
+ fi
build-docs:
needs: [build-info]
@@ -118,7 +132,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_USERNAME: ${{ github.actor }}
INCLUDE_SUCCESS_OUTPUTS: false
- PYTHON_MAJOR_MINOR_VERSION: 3.9
+ PYTHON_MAJOR_MINOR_VERSION: 3.10
VERBOSE: "true"
EXTRA_BUILD_OPTIONS: ${{ needs.build-info.outputs.extra-build-options }}
steps:
@@ -151,9 +165,19 @@ jobs:
- name: "Building docs with --docs-only flag"
env:
INCLUDE_DOCS: ${{ needs.build-info.outputs.include-docs }}
- INCLUDE_COMMITS: "true"
+ INCLUDE_COMMITS: ${{ startsWith(inputs.ref, 'providers') && 'true'
|| 'false' }}
run: >
breeze build-docs ${INCLUDE_DOCS} --docs-only
+ - name: "Build SBOMS"
+ env:
+ AIRFLOW_VERSION: ${{ needs.build-info.outputs.airflow-version }}
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ PYTHON_VERSION: "${{ needs.build-info.outputs.default-python-version
}}"
+ FORCE: "true"
+ run: >
+ breeze sbom update-sbom-information --airflow-version
${AIRFLOW_VERSION}
+ --all-combinations --run-in-parallel --airflow-root-path
"${GITHUB_WORKSPACE}"
+ if: inputs.build-sboms == 'true'
- name: Check disk space available
run: df -H
# Here we will create temp airflow-site dir to publish docs
@@ -187,7 +211,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_USERNAME: ${{ github.actor }}
INCLUDE_SUCCESS_OUTPUTS: false
- PYTHON_MAJOR_MINOR_VERSION: 3.9
+ PYTHON_MAJOR_MINOR_VERSION: 3.10
VERBOSE: "true"
steps:
- name: "Cleanup repo"
diff --git a/.github/workflows/test-providers.yml
b/.github/workflows/test-providers.yml
index 525e8e8599a..51a0876e571 100644
--- a/.github/workflows/test-providers.yml
+++ b/.github/workflows/test-providers.yml
@@ -96,7 +96,7 @@ jobs:
uses: ./.github/actions/prepare_breeze_and_image
with:
platform: ${{ inputs.platform }}
- python: ${{ inputs.default-python-version }}
+ python: "${{ inputs.default-python-version }}"
use-uv: ${{ inputs.use-uv }}
- name: "Cleanup dist files"
run: rm -fv ./dist/*