Skip to content

fix compatibility with Modules v4.1.x#2470

Merged
wpoely86 merged 3 commits intoeasybuilders:developfrom
boegel:modules_v41x
Apr 16, 2018
Merged

fix compatibility with Modules v4.1.x#2470
wpoely86 merged 3 commits intoeasybuilders:developfrom
boegel:modules_v41x

Conversation

@boegel
Copy link
Copy Markdown
Member

@boegel boegel commented Apr 12, 2018

These changes are required to make EasyBuild fully compatible with Modules v4.1.x (--modules-tool=EnvironmentModules):

  • when loading non-existing modules, the output of modulecmd.tcl python load used to include a raise RuntimeError statement which made the load command fail; this is no longer the case in Modules v4.1.x, so we need to customise check_module_output to detect failing module commands based on the presence of _mlstatus = False in the output

  • we need to disable the output check for module show because of the above, i.e. _mlstatus = False is also included in the output of module show on a non-existent module

@xdelaruelle Please review?

boegel added 2 commits April 8, 2018 10:44
* don't do error detection on output of 'module show' (just return output)
* customise check_module_output for EnvironmentModules class: check for '_mlstatus = False' to detect failing module command
@boegel boegel added this to the 3.6.0 milestone Apr 12, 2018
@easybuilders easybuilders deleted a comment from boegelbot Apr 12, 2018
@boegel boegel requested a review from wpoely86 April 12, 2018 20:43
@wpoely86 wpoely86 merged commit 39a8a78 into easybuilders:develop Apr 16, 2018
@boegel boegel deleted the modules_v41x branch April 16, 2018 08:24
@xdelaruelle
Copy link
Copy Markdown
Contributor

Seems ok. _mlstatus = False is now produced on stdout whether an issue occur during module command or this command needs to return a False boolean result.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants