Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 24 additions & 24 deletions .github/workflows/early-image-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,30 +81,30 @@ jobs:
# delay cache refresh. It does not attempt to upgrade to newer dependencies.
# We only push CI cache as PROD cache usually does not gain as much from fresh cache because
# it uses prepared airflow and provider packages that invalidate the cache anyway most of the time
push-early-buildx-cache-to-github-registry:
name: Push Early Image Cache
uses: ./.github/workflows/push-image-cache.yml
permissions:
contents: read
# This write is only given here for `push` events from "apache/airflow" repo. It is not given for PRs
# from forks. This is to prevent malicious PRs from creating images in the "apache/airflow" repo.
# For regular build for PRS this "build-prod-images" workflow will be skipped anyway by the
# "in-workflow-build" condition
packages: write
secrets: inherit
with:
runs-on: ${{ inputs.runs-on }}
cache-type: "Early"
include-prod-images: "false"
push-latest-images: "false"
image-tag: ${{ inputs.image-tag }}
python-versions: ${{ inputs.python-versions }}
branch: ${{ inputs.branch }}
use-uv: "true"
include-success-outputs: ${{ inputs.include-success-outputs }}
constraints-branch: ${{ inputs.constraints-branch }}
docker-cache: ${{ inputs.docker-cache }}
if: inputs.canary-run == 'true' && inputs.branch == 'main'
# push-early-buildx-cache-to-github-registry:
# name: Push Early Image Cache
# uses: ./.github/workflows/push-image-cache.yml
# permissions:
# contents: read
# # This write is only given here for `push` events from "apache/airflow" repo. It is not given for PRs
# # from forks. This is to prevent malicious PRs from creating images in the "apache/airflow" repo.
# # For regular build for PRS this "build-prod-images" workflow will be skipped anyway by the
# # "in-workflow-build" condition
# packages: write
# secrets: inherit
# with:
# runs-on: ${{ inputs.runs-on }}
# cache-type: "Early"
# include-prod-images: "false"
# push-latest-images: "false"
# image-tag: ${{ inputs.image-tag }}
# python-versions: ${{ inputs.python-versions }}
# branch: ${{ inputs.branch }}
# use-uv: "true"
# include-success-outputs: ${{ inputs.include-success-outputs }}
# constraints-branch: ${{ inputs.constraints-branch }}
# docker-cache: ${{ inputs.docker-cache }}
# if: inputs.canary-run == 'true' && inputs.branch == 'main'

# Check that after earlier cache push, breeze command will build quickly
check-that-image-builds-quickly:
Expand Down
42 changes: 21 additions & 21 deletions .github/workflows/finalize-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,27 +124,27 @@ jobs:
# is executed as result of direct push to "main" or one of the "vX-Y-test" branches
# It rebuilds all images using just-pushed constraints using buildx and pushes them to registry
# It will automatically check if a new python image was released and will pull the latest one if needed
push-buildx-cache-to-github-registry:
name: Push Regular Image Cache
needs: [update-constraints]
uses: ./.github/workflows/push-image-cache.yml
permissions:
contents: read
packages: write
secrets: inherit
with:
runs-on: ${{ inputs.runs-on }}
cache-type: "Regular"
include-prod-images: "true"
push-latest-images: "true"
use-uv: "true"
image-tag: ${{ inputs.image-tag }}
python-versions: ${{ inputs.python-versions }}
branch: ${{ inputs.branch }}
constraints-branch: ${{ inputs.constraints-branch }}
include-success-outputs: ${{ inputs.include-success-outputs }}
docker-cache: ${{ inputs.docker-cache }}
if: inputs.canary-run == 'true'
# push-buildx-cache-to-github-registry:
# name: Push Regular Image Cache
# needs: [update-constraints]
# uses: ./.github/workflows/push-image-cache.yml
# permissions:
# contents: read
# packages: write
# secrets: inherit
# with:
# runs-on: ${{ inputs.runs-on }}
# cache-type: "Regular"
# include-prod-images: "true"
# push-latest-images: "true"
# use-uv: "true"
# image-tag: ${{ inputs.image-tag }}
# python-versions: ${{ inputs.python-versions }}
# branch: ${{ inputs.branch }}
# constraints-branch: ${{ inputs.constraints-branch }}
# include-success-outputs: ${{ inputs.include-success-outputs }}
# docker-cache: ${{ inputs.docker-cache }}
# if: inputs.canary-run == 'true'

summarize-warnings:
timeout-minutes: 15
Expand Down