From 1aa4f8b69c9d99593a5b4a13a0539041f94057d4 Mon Sep 17 00:00:00 2001 From: Jarek Potiuk Date: Fri, 19 Nov 2021 02:46:04 +0100 Subject: [PATCH] Fix speed of yarn installation The --network-concurrency=1 is very slow and even if this has been added in #17293 to battle connection refused, it slows regular builds far too much. There is a new optimisation in progress that should significantly reduce the yarn installations on kind-cluster deploy: #19210 and it should solve the problem much better. --- 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 50e1318c548a4..59a7017fd157f 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 --network-concurrency=1 + yarn install --frozen-lockfile --no-cache 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"