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

add 'parse' hook to add support for tweaking 'raw' easyconfig (REVIEW) #2562

Merged
merged 9 commits into from
Sep 5, 2018

Conversation

boegel
Copy link
Member

@boegel boegel commented Sep 4, 2018

except ImportError as err:
raise EasyBuildError("Failed to import hooks implementation from %s: %s", hooks_path, err)
else:
raise EasyBuildError("Provided path for hooks implementation should be location of a Python file (*.py)")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line too long (121 > 120 characters)

except ImportError as err:
raise EasyBuildError("Failed to import hooks implementation from %s: %s", hooks_path, err)
else:
raise EasyBuildError("Provided path for hooks implementation should be location of a Python file (*.py)")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line too long (121 > 120 characters)

@boegel boegel changed the title add 'parse' hook to add support for tweaking 'raw' easyconfig (WIP) add 'parse' hook to add support for tweaking 'raw' easyconfig (REVIEW) Sep 5, 2018
@boegel boegel modified the milestones: next release, 3.7.0 Sep 5, 2018
@easybuilders easybuilders deleted a comment from boegelbot Sep 5, 2018
akesandgren
akesandgren previously approved these changes Sep 5, 2018
@easybuilders easybuilders deleted a comment from boegelbot Sep 5, 2018
@boegel
Copy link
Member Author

boegel commented Sep 5, 2018

@akesandgren Good to go?

@akesandgren
Copy link
Contributor

Yeah i think so, can't find any problems with it.

Copy link
Contributor

@akesandgren akesandgren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm, have tested with our hook for OpenMPI.

@akesandgren
Copy link
Contributor

@vanzod Any thoughts on this?

@boegel
Copy link
Member Author

boegel commented Sep 5, 2018

@ocaisa To answer the issue you raised during today's conf call: any changes made to the EasyConfig object in parse_hook are (currently) not included in the dumped easyconfig file in the installation directory or the easyconfigs archive (i.e. --repositorypath).

So, unless you make sure you have the hooks active every time, picking up a dumped easyconfig file later may result in surprises...

We can look into fixing that, but maybe some people wouldn't expect things to trickle down, I'm not quite sure (I can see problems with both approaches), and I'm not sure how easy it would be either to make things trickle down (the classic "there be dragons here" probably applies...).

@akesandgren
Copy link
Contributor

akesandgren commented Sep 5, 2018

I for one would expect it NOT to end up in the dumped one, but it might be good to have a comment added that hooks where changing stuff and whether the dumped result is with or without the changes done by hooks.

But if someone wants the changes to end up in the dump, this should probably be configurable.

@vanzod vanzod merged commit 14e7b91 into easybuilders:develop Sep 5, 2018
@boegel boegel deleted the parse_hook branch September 6, 2018 07:08
@ocaisa
Copy link
Member

ocaisa commented Sep 6, 2018

@boegel I wouldn't have a problem with the archived easyconfig not including the changes but I think I would expect to see them in the reprod directory

@akesandgren
Copy link
Contributor

Yes, that would be good, didn't think of that one.

@boegel
Copy link
Member Author

boegel commented Sep 6, 2018

follow-up on what @ocaisa mentioned in #2565

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.

5 participants