Skip to content
Snippets Groups Projects
Commit 21782ac7 authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

[scripts][ci] Debug nightly builds (number of open files)

parent 3528d8e7
No related branches found
No related tags found
No related merge requests found
Pipeline #28679 failed
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment