From 21782ac7bf845364b0b3cb3aa40e4809d563bc7e Mon Sep 17 00:00:00 2001 From: Andre Anjos <andre.dos.anjos@gmail.com> Date: Fri, 29 Mar 2019 07:51:44 +0100 Subject: [PATCH] [scripts][ci] Debug nightly builds (number of open files) --- bob/devtools/scripts/ci.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bob/devtools/scripts/ci.py b/bob/devtools/scripts/ci.py index e00f127d..9c9ee3d4 100644 --- a/bob/devtools/scripts/ci.py +++ b/bob/devtools/scripts/ci.py @@ -481,6 +481,7 @@ def nightlies(ctx, order, dry_run): token = os.environ['CI_JOB_TOKEN'] import git + import psutil from .build import build from urllib.request import urlopen @@ -509,6 +510,9 @@ def nightlies(ctx, order, dry_run): private = urlopen('https://gitlab.idiap.ch/%s' % package).getcode() != 200 stable = 'STABLE' in os.environ + logger.warn('Number of open files before build: %d', + len(psutil.Process().open_files()) + ctx.invoke(build, recipe_dir=[os.path.join(clone_to, 'conda')], python=os.environ['PYTHON_VERSION'], #python version @@ -524,6 +528,9 @@ def nightlies(ctx, order, dry_run): ci=True, ) + logger.warn('Number of open files after build: %d', + len(psutil.Process().open_files()) + is_master = os.environ['CI_COMMIT_REF_NAME'] == 'master' # re-deploys a new conda package if it was rebuilt and it is the master -- GitLab