From 95cb65ef354a1aa25ede4d76d4c30761aaa3a4eb Mon Sep 17 00:00:00 2001 From: Guillaume Raffy Date: Tue, 26 Nov 2024 15:04:02 +0100 Subject: [PATCH] improved error message 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 work related to [https://bugzilla.ipr.univ-rennes.fr/show_bug.cgi?id=3958] --- iprbench/targethosts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iprbench/targethosts.py b/iprbench/targethosts.py index ec193d3..605b049 100644 --- a/iprbench/targethosts.py +++ b/iprbench/targethosts.py @@ -172,7 +172,7 @@ class IprClusterNode(DebianHost): available_modules = get_available_modules() shortcut_env_module = EnvModule(f'{package_env_module}/latest') if shortcut_env_module not in available_modules: - raise ValueError(f'failed to find {shortcut_env_module} amongst available environment modules') + raise ValueError(f'failed to find {shortcut_env_module} amongst available environment modules ({available_modules})') # logging.debug('available_modules = %s', available_modules) shortcut_file_path = get_module_file_path(shortcut_env_module) # logging.debug('shortcut_file_path = %s', shortcut_file_path)