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 2020/05/17 17:33:22 UTC

[airflow] 02/02: Avoid failure on transient requirements in CI image

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

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

commit 83dc959d6bcd6569de6c7d916caebeab326b0700
Author: Jarek Potiuk <ja...@potiuk.com>
AuthorDate: Sun May 17 18:23:49 2020 +0200

    Avoid failure on transient requirements in CI image
    
    When you build from the scratch and some transient requirements
    fail, the initial step of installation might fail.
    
    We are now using latest valid constraints from the DEFAULT_BRANCH
    branch to avoid it.
    
    (cherry picked from commit 9d495b7fd238e54d15621e2be0c5e465e878ae07)
---
 Dockerfile.ci | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Dockerfile.ci b/Dockerfile.ci
index 7caa239..537425d 100644
--- a/Dockerfile.ci
+++ b/Dockerfile.ci
@@ -314,6 +314,7 @@ RUN \
     if [[ "${AIRFLOW_CONTAINER_CI_OPTIMISED_BUILD}" == "true" ]]; then \
         pip install \
         "https://github.com/${AIRFLOW_REPO}/archive/${AIRFLOW_BRANCH}.tar.gz#egg=apache-airflow[${AIRFLOW_EXTRAS}]" \
+            --constraint "https://raw.githubusercontent.com/${AIRFLOW_REPO}/${AIRFLOW_BRANCH}/requirements/requirements-python${PYTHON_MAJOR_MINOR_VERSION}.txt" \
         && pip uninstall --yes apache-airflow; \
     fi