From 3f562b2febbdc658bd2e139d68dbd22b8835f296 Mon Sep 17 00:00:00 2001 From: Nicolas Richart <nicolas.richart@epfl.ch> Date: Sat, 10 Aug 2024 00:59:30 +0200 Subject: [PATCH] Adding python unbuffered --- .gitlab-ci.yml | 1 + ci/apptainer_by_hand.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2041cd7..659e863 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -77,6 +77,7 @@ variables: ${apptainer_options} --cleanenv -H $(mktemp -d -p ${FAKEHOME}/):/home/$(id -un) + --env PYTHONUNBUFFERED=1 --bind ${CI_DATA_LT}/buildcache:${MOUNT_POINT}/buildcache --bind ${CI_DATA_LT}/spack-mirror:${MOUNT_POINT}/spack-mirror --bind ${CI_DATA_ST}/squashfs-cache/:/squashfs-cache diff --git a/ci/apptainer_by_hand.sh b/ci/apptainer_by_hand.sh index 3c78972..21a7d68 100755 --- a/ci/apptainer_by_hand.sh +++ b/ci/apptainer_by_hand.sh @@ -34,6 +34,7 @@ srun ${srun_options} --pty apptainer run \ --bind ${CI_DATA_LT}/spack-mirror:${MOUNT_POINT}/spack-mirror \ --bind ${CI_DATA_LT}/squashfs-cache/:/squashfs-cache \ --bind ${CI_DATA_ST}/overlayfs:/overlayfs \ + --env PYTHONUNBUFFERED=1 \ --env stack=${stack} \ --env environment=${environment} \ --env GPG_PRIVATE_KEY=${GPG_PRIVATE_KEY} \ -- GitLab