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 2021/08/02 13:44:04 UTC

[airflow] 09/22: Fix breeze kind-cluster deploy failing with ECONREFUSED (#17293)

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

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

commit 029a709220adf641e8574919f0307d1d26eb06ea
Author: Ephraim Anierobi <sp...@gmail.com>
AuthorDate: Thu Jul 29 02:13:50 2021 +0100

    Fix breeze kind-cluster deploy failing with ECONREFUSED (#17293)
    
    Currently, kind-cluster deploy fails occasionally due to yarn install when compiling
    assets. This PR fixes it by using the recommended option --network-concurrency=1 when
    running yarn install
    
    (cherry picked from commit 53e9349d68a6c3000139417e6df2271f3d589ebc)
---
 scripts/docker/compile_www_assets.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/docker/compile_www_assets.sh b/scripts/docker/compile_www_assets.sh
index 59a7017..50e1318 100755
--- a/scripts/docker/compile_www_assets.sh
+++ b/scripts/docker/compile_www_assets.sh
@@ -35,7 +35,7 @@ function compile_www_assets() {
         www_dir="$(python -m site --user-site)/airflow/www"
     fi
     pushd ${www_dir} || exit 1
-    yarn install --frozen-lockfile --no-cache
+    yarn install --frozen-lockfile --no-cache --network-concurrency=1
     yarn run prod
     find package.json yarn.lock static/css static/js -type f | sort | xargs md5sum > "${md5sum_file}"
     rm -rf "${www_dir}/node_modules"