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

Only calculate the mapping of version suffixes if they are actually used #3326

Merged

Conversation

mboisson
Copy link
Contributor

@mboisson mboisson commented May 6, 2020

Otherwise, at our site, when using multiple paths in EASYBUILD_ROBOT_PATHS, this fails with
ERROR: No unique versionsuffix mapping for -Python-2.7.10 in {'name': 'GCC', 'version': '7.3.0'} toolchain hierarchy to {'name': 'GCC', 'version': '9.3.0'} toolchain hierarchy

While this may or may not be a bug in the easyconfigs we have in our robot_paths (we may have duplicated -Python version suffixes for example), we don't usually use versionsuffixes, and for the easyconfig I was trying to build, there are absolutely no need to have versionsuffix mapped, since none is used.

@mboisson
Copy link
Contributor Author

mboisson commented May 6, 2020

Asking for @ocaisa's review of this PR.

@boegel boegel requested a review from ocaisa May 6, 2020 20:30
@boegel boegel added the bug fix label May 6, 2020
@boegel boegel added this to the next release (4.2.1?) milestone May 6, 2020
Copy link
Member

@ocaisa ocaisa left a comment

Choose a reason for hiding this comment

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

Lgtm apart from those comments

easybuild/framework/easyconfig/tweak.py Outdated Show resolved Hide resolved
@ocaisa
Copy link
Member

ocaisa commented May 7, 2020

See ComputeCanada#23 to improve the error reporting that triggered this PR

@mboisson
Copy link
Contributor Author

mboisson commented May 7, 2020

See ComputeCanada#23 to improve the error reporting that triggered this PR

merged.

@ocaisa
Copy link
Member

ocaisa commented May 7, 2020

Going in as soon as the tests pass, thanks @mboisson !

@boegel boegel merged commit c7f1fe6 into easybuilders:develop May 7, 2020
ocaisa pushed a commit to ocaisa/easybuild-framework that referenced this pull request May 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants