Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

automated mechanism summary lists module whose evaluation failed #246

Closed
xdelaruelle opened this issue Mar 30, 2019 · 0 comments
Closed
Assignees
Labels
Milestone

Comments

@xdelaruelle
Copy link
Collaborator

Even if one module evaluation part of an automated mechanism fails, it is reported in the list of modules loaded, unloaded or reloaded for the mechanism. This could be confusing as an error occurred for these modules.

This confusing report can be seen when force mode is enabled since if force mode is disabled, the whole process abort and no summary list for automated mechanisms is reported.

Taking the following modulefiles as example:

$ cat /path/to/modulefiles/ta
#%Module
$ cat /path/to/modulefiles/tb
#%Module
$ cat /path/to/modulefiles/tc
#%Module
prereq ta tb
if {[module-info mode load] && ![is-loaded ta]} {
    break
}
$ module load ta tb tc
$ module list
Currently Loaded Modulefiles:
 1) ta   2) tb   3) tc

Unloading ta triggers reload of tc which fails on its reload phase. However tc is reported in the Reloading dependent which makes people think that reload operation was ok.

$ module unload --auto --force ta
Unloading ta
  WARNING: Reload of dependent tc failed
  Reloading dependent: tc
$ module list
Currently Loaded Modulefiles:
 1) tb
@xdelaruelle xdelaruelle added this to the 4.2.4 milestone Mar 30, 2019
@xdelaruelle xdelaruelle self-assigned this Mar 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant