From 866f7de27d322d4cd5656c3439304d93535bda26 Mon Sep 17 00:00:00 2001 From: Guillaume Raffy Date: Tue, 26 Nov 2024 15:33:04 +0100 Subject: [PATCH] added even more debug traces to debug a problem that only happens in ci (can't reproduce even when logged as jenkins-agent) The error message is: > ValueError: failed to find compilers/ifort/latest amongst available environment modules (set()) work related to [https://bugzilla.ipr.univ-rennes.fr/show_bug.cgi?id=3958] --- iprbench/envmodules.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/iprbench/envmodules.py b/iprbench/envmodules.py index 2cb0a0b..1e917d0 100644 --- a/iprbench/envmodules.py +++ b/iprbench/envmodules.py @@ -21,8 +21,12 @@ def get_available_modules() -> Set[EnvModule]: # module-info # modules # null + logging.debug('get_available_modules: completed_process.stdout="%s"', completed_process.stdout) + logging.debug('get_available_modules: completed_process.sterr="%s"', completed_process.stderr) stdout = completed_process.stdout.decode('utf-8') logging.debug('get_available_modules: stdout="%s"', stdout) + stderr = completed_process.stderr.decode('utf-8') + logging.debug('get_available_modules: stderr="%s"', stderr) for line in stdout.splitlines(): logging.debug('available module line: "%s"', line) if not re.search(r'\:$', line): # ignore the directories such as '/usr/share/modules/modulefiles:'