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

avoid initializing Toolchain instance when taking into account toolchain dependencies for templates #3560

Merged
merged 2 commits into from
Feb 3, 2021

Conversation

boegel
Copy link
Member

@boegel boegel commented Feb 2, 2021

This was missing in #3541.

The test fails without the changes in #3541...

@boegel boegel added this to the next release (4.3.3?) milestone Feb 2, 2021
@boegel boegel requested a review from lexming February 2, 2021 14:04
…ain dependencies for templates + revert change from easybuilders#3541 to test from which started failing because of triggering early Toolchain initialization
@boegel boegel changed the title add test for defining %(cudaver)s template via toolchain avoid initializing Toolchain instance when taking into account toolchain dependencies for templates Feb 2, 2021
@lexming
Copy link
Contributor

lexming commented Feb 3, 2021

As expected, the test fails if cudaver is not defined:

======================================================================
ERROR: test_templating_cuda_toolchain (__main__.EasyConfigTest)
Test templates via toolchain component, like setting %(cudaver)s with fosscuda toolchain.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/theia/home/brussel/101/vsc10122/src/easybuild-framework/test/framework/easyconfig.py", line 1094, in test_templating_cuda_toolchain
    self.assertEqual(ec.template_values['cudaver'], '10.1.243')
KeyError: 'cudaver'

----------------------------------------------------------------------
Ran 82 tests in 625.336s

FAILED (errors=1)

Copy link
Contributor

@lexming lexming left a comment

Choose a reason for hiding this comment

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

LGTM

@lexming lexming merged commit 5c695af into easybuilders:develop Feb 3, 2021
@boegel boegel deleted the test_cudaver_toolchain branch February 4, 2021 11:22
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.

2 participants