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

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

commit 276be12a5ec3e128b6686bb30ee09206646916ea
Author: Jarek Potiuk <[email protected]>
AuthorDate: Mon Feb 12 00:15:53 2024 +0100

    Trigger full cache rebuild with new EPOCH values (#37346)
    
    Now when we have a complete mechanism for installing all devel
    dependencies we should trigger a clean cache refresh, so that those
    main branch dependencies can be reflected in the cached "branch tip"
    layer.
    
    (cherry picked from commit 0ddb7a5e7ebca3b9175757d122c7bbdf91d7b9dd)
---
 Dockerfile    | 5 +++++
 Dockerfile.ci | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/Dockerfile b/Dockerfile
index b8ad6ce276..a6b0d16d53 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1369,6 +1369,11 @@ ARG INSTALL_PACKAGES_FROM_CONTEXT="false"
 # from eager-upgraded constraints by the CI builds
 ARG USE_CONSTRAINTS_FOR_CONTEXT_PACKAGES="false"
 
+# By changing the epoch we can force reinstalling Airflow and pip all 
dependencies
+# It can also be overwritten manually by setting the AIRFLOW_CI_BUILD_EPOCH 
environment variable.
+ARG AIRFLOW_CI_BUILD_EPOCH="10"
+ENV AIRFLOW_CI_BUILD_EPOCH=${AIRFLOW_CI_BUILD_EPOCH}
+
 # In case of Production build image segment we want to pre-install main 
version of airflow
 # dependencies from GitHub so that we do not have to always reinstall it from 
the scratch.
 # The Airflow and providers are uninstalled, only dependencies remain
diff --git a/Dockerfile.ci b/Dockerfile.ci
index 2608b14ff4..6227af0640 100644
--- a/Dockerfile.ci
+++ b/Dockerfile.ci
@@ -1072,7 +1072,7 @@ ARG AIRFLOW_CONSTRAINTS_LOCATION=""
 ARG DEFAULT_CONSTRAINTS_BRANCH="constraints-main"
 # By changing the epoch we can force reinstalling Airflow and pip all 
dependencies
 # It can also be overwritten manually by setting the AIRFLOW_CI_BUILD_EPOCH 
environment variable.
-ARG AIRFLOW_CI_BUILD_EPOCH="7"
+ARG AIRFLOW_CI_BUILD_EPOCH="10"
 ARG AIRFLOW_PRE_CACHED_PIP_PACKAGES="true"
 ARG AIRFLOW_PIP_VERSION=24.0
 # Setup PIP

Reply via email to