From 9ef8d2b823f8bb0f3172c8f4955cc44e8b4587f7 Mon Sep 17 00:00:00 2001 From: George Kalpakas Date: Thu, 31 Jan 2019 14:33:23 +0200 Subject: [PATCH] ci: keep job alive when yarn request takes more than 10 minutes (#28458) Occasionally, yarn's requests take more than 10 minutes to complete/fail, by which time CircleCI jobs due to no output. This commit works around the issue by periodically printing something to stdout. PR Close #28458 --- .circleci/config.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 23517ec50a..82ea17b63b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -54,7 +54,13 @@ var_7: &post_checkout var_8: &yarn_install run: name: Running Yarn install - command: yarn install --frozen-lockfile --non-interactive + command: | + # Yarn's requests sometimes take more than 10mins to complete. + # Print something to stdout, to prevent CircleCI from failing due to not output. + while true; do sleep 60; echo "[`date`] Keeping alive..."; done & + KEEP_ALIVE_PID=$! + yarn install --frozen-lockfile --non-interactive + kill $KEEP_ALIVE_PID var_9: &setup_circleci_bazel_config run: