Skip to content

add support for --verify-easyconfig-filenames#2185

Merged
boegel merged 3 commits intoeasybuilders:developfrom
boegel:verify_easyconfig_filenames
Mar 30, 2017
Merged

add support for --verify-easyconfig-filenames#2185
boegel merged 3 commits intoeasybuilders:developfrom
boegel:verify_easyconfig_filenames

Conversation

@boegel
Copy link
Copy Markdown
Member

@boegel boegel commented Mar 29, 2017

by popular request...

cc @shahzebsiddiqui, @damianam, @pneerincx

@boegel boegel added this to the 3.2.0 milestone Mar 29, 2017
"""
if isinstance(parsed_ec, EasyConfig):
ecs = [parsed_ec]
ecs = [{'ec': parsed_ec}]
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

is this a bug fix?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

yes, and the enhanced test covers it now

str, 'store', False, {'metavar': "PATH"}),
'use-existing-modules': ("Use existing modules when resolving dependencies with minimal toolchains",
None, 'store_true', False),
'verify-easyconfig-filenames': ("Verify whether filename of specified easyconfigs matches with contents",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

put it to True by default?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

No, that would change the behaviour, sites should enable this if they want to stricter behaviour.
I don't consider the flexibility of filenames for specified easyconfigs a bug, but a feature. I'd get annoyed fi EasyBuild gets picky about filenames when it doesn't really matter; it only really matters for the dependency resolver, which already complains if an easyconfig file that it picks up by filename doesn't contain what is expected.

We can reconsider this in EasyBuild v4.0, but I'm in favour of leaving the default behaviour as is.

@boegel
Copy link
Copy Markdown
Member Author

boegel commented Mar 30, 2017

Going in, thanks for the review @wpoely86 and the thumbs up @pneerincx

@boegel boegel merged commit 2f12b9f into easybuilders:develop Mar 30, 2017
@boegel boegel deleted the verify_easyconfig_filenames branch March 30, 2017 11:56
@ocaisa ocaisa mentioned this pull request May 6, 2019
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.

2 participants