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 2024/02/12 23:22:55 UTC
(airflow) 19/23: Trigger full cache rebuild with new EPOCH values (#37346)
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 992752ff523acb92836723dc923d03abf39f9bc2
Author: Jarek Potiuk <ja...@potiuk.com>
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