-
Notifications
You must be signed in to change notification settings - Fork 0
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
Increase robustness: version check, prevent precompilation with MPI, automatically precompile in the workchain #17
base: main
Are you sure you want to change the base?
Conversation
…automatically precompile in the workchain
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Puh some of this Aiida stuff is really quite ugly.
src/aiida_dftk/parsers.py
Outdated
@@ -40,6 +40,17 @@ def parse(self, **kwargs): | |||
else: | |||
return self.exit_codes.ERROR_POSTSCF_OUT_OF_WALLTIME | |||
|
|||
# Check error file | |||
try: | |||
errors_log = self.retrieved.base.repository.get_object_content("errors.log") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer constants over hard-coding this.
tests/conftest.py
Outdated
AiidaDFTK = "26386dbc-b74b-4d9a-b75a-41d28ada84fc" | ||
|
||
[compat] | ||
AiidaDFTK = "{aiida_dftk.calculations._AIIDA_DFTK_MIN_VERSION}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another good point for changing how version bounds are implemented: here the mechanics is Pkg, thus different
Actually one question: What will happen if a user badly messed up their AiidaDFTK installation ? Will this also trigger a precompile ? Maybe even get caught in an infinite loop ? |
The expected behavior is that it will attempt a precompilation, the precompilation will fail, and the workchain will terminate. There should hopefully not be an infinite loop because:
Footnotes
|
Depends on epfl-matmat/AiidaDFTK.jl#23.
--compiled-modules=strict
. Fixes Precompilation and MPI don't play well together #16.errors.log
output file (see Add errors file and version check support epfl-matmat/AiidaDFTK.jl#23) to detect:Imports succeeded
could not be reached.Finished successfully
was reached.