You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by ep...@apache.org on 2022/06/01 07:43:40 UTC

[airflow] 10/12: Re-add --force-build flag (#24061)

This is an automated email from the ASF dual-hosted git repository.

ephraimanierobi pushed a commit to branch v2-3-test
in repository https://gitbox.apache.org/repos/asf/airflow.git

commit 1555e67d37edbba38230eff02ac9c6eab6d9a604
Author: Jarek Potiuk <ja...@polidea.com>
AuthorDate: Wed Jun 1 01:55:31 2022 +0200

    Re-add --force-build flag (#24061)
    
    After #24052 we also need to add --force-build flag as for
    Python 3.7 rebuilding CI cache would have been silently ignored as
    no image building would be needed
    
    (cherry picked from commit 5005ff2735b0bb80dc913f2070d3a507156a9394)
---
 .github/workflows/ci.yml                                    | 1 +
 dev/breeze/src/airflow_breeze/commands/ci_image_commands.py | 1 +
 dev/refresh_images.sh                                       | 1 +
 images/breeze/output-commands-hash.txt                      | 1 -
 4 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 781cdbb08e..05781d33d7 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -1712,6 +1712,7 @@ ${{ hashFiles('.pre-commit-config.yaml') }}"
         run: >
           breeze build-image
           --prepare-buildx-cache
+          --force-build
           --platform ${{ matrix.platform }}
         env:
           PYTHON_MAJOR_MINOR_VERSION: ${{ matrix.python-version }}
diff --git a/dev/breeze/src/airflow_breeze/commands/ci_image_commands.py b/dev/breeze/src/airflow_breeze/commands/ci_image_commands.py
index 42054b1244..889a9d7bef 100644
--- a/dev/breeze/src/airflow_breeze/commands/ci_image_commands.py
+++ b/dev/breeze/src/airflow_breeze/commands/ci_image_commands.py
@@ -217,6 +217,7 @@ CI_IMAGE_TOOLS_PARAMETERS = {
 @option_additional_runtime_apt_command
 @option_dev_apt_command
 @option_dev_apt_deps
+@option_force_build
 @option_runtime_apt_command
 @option_runtime_apt_deps
 @option_force_build
diff --git a/dev/refresh_images.sh b/dev/refresh_images.sh
index 333b3b87eb..ed5591585a 100755
--- a/dev/refresh_images.sh
+++ b/dev/refresh_images.sh
@@ -28,6 +28,7 @@ breeze self-upgrade --force
 breeze build-image \
      --build-multiple-images \
      --prepare-buildx-cache \
+     --force-build \
      --platform linux/amd64,linux/arm64 \
      --verbose
 
diff --git a/images/breeze/output-commands-hash.txt b/images/breeze/output-commands-hash.txt
deleted file mode 100644
index cf38decd7f..0000000000
--- a/images/breeze/output-commands-hash.txt
+++ /dev/null
@@ -1 +0,0 @@
-ce7896bb79ac7862ff8a4d6c7e326671