]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
build/ops: run "npm ci" with a one-hour timeout 28994/head
authorNathan Cutler <ncutler@suse.com>
Thu, 11 Jul 2019 14:07:23 +0000 (16:07 +0200)
committerNathan Cutler <ncutler@suse.com>
Thu, 11 Jul 2019 18:08:08 +0000 (20:08 +0200)
Fixes: https://tracker.ceph.com/issues/40645
Signed-off-by: Nathan Cutler <ncutler@suse.com>
make-dist
src/pybind/mgr/dashboard/run-frontend-e2e-tests.sh

index 64280dd7eb8e29faf02b342ccab48b704ce66406..abbda64cef4472e910968a1a46d2f99499e1b8ea 100755 (executable)
--- a/make-dist
+++ b/make-dist
@@ -90,7 +90,7 @@ build_dashboard_frontend() {
   $TEMP_DIR/bin/nodeenv -p --node=10.13.0
   cd src/pybind/mgr/dashboard/frontend
   . $TEMP_DIR/bin/activate
-  npm ci
+  timeout 1h npm ci
   npm run build -- --prod --progress=false
   deactivate
   cd $CURR_DIR
index 87a1e6b4697b4a9212d931f548ff60177a3b09ec..9fbb5c44c1cef947f497e460fa09818b043b1abf 100755 (executable)
@@ -63,7 +63,7 @@ cd $DASH_DIR/frontend
 jq .[].target=$BASE_URL proxy.conf.json.sample > proxy.conf.json
 
 . $BUILD_DIR/src/pybind/mgr/dashboard/node-env/bin/activate
-npm ci
+timeout 1h npm ci
 
 if [ $DEVICE == "chrome" ]; then
     npm run e2e || stop 1