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 support for --skip-extensions #3702

Merged
merged 2 commits into from
May 27, 2021

Conversation

boegel
Copy link
Member

@boegel boegel commented May 26, 2021

#3655 fixed the behavior of --module-only to also cover extensions during the sanity check, which trumps the use case of generating a module file for an R installation when not all extensions have been installed.

To restore this capability, the new --skip-extensions options can be used in combination with --module-only.
It can also be used to install R (or Python, Perl, etc.) without extensions first, and then enhance the installation via eb --skip afterwards.

fixes #3672

@boegel boegel added this to the 4.4.0 milestone May 26, 2021
@@ -5857,6 +5857,41 @@ def test_sanity_check_only(self):
regex = re.compile(error_pattern)
self.assertTrue(regex.search(error_msg), "Pattern '%s' should be found in: %s" % (regex.pattern, error_msg))

# failing sanity check for extension can be bypassed via --skip-extensions
self.eb_main(args + ['--skip-extensions'], do_build=True, return_error=True)
Copy link
Member

Choose a reason for hiding this comment

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

There's no test here is there, so what's the point?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, what's the use of this?

Copy link
Member Author

Choose a reason for hiding this comment

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

If the sanity check fails, then an error is raised, so this would cause the test to fail.

I can add another quick check for the module file after this though, to make that a bit more clear.

@boegelbot

This comment has been minimized.

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

@akesandgren
Copy link
Contributor

Going in, thanks @boegel!

@akesandgren akesandgren merged commit 3fe33e0 into easybuilders:develop May 27, 2021
@boegel boegel deleted the skip_extensions branch May 27, 2021 06:56
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.

Allow to skip extensions in sanity check
4 participants