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

Fix CI for new ReFrame 4.6.2 #183

Merged
merged 1 commit into from
Sep 17, 2024

Conversation

casparvl
Copy link
Collaborator

ReFrame 4.6.2 got deployed in EESSI, and is now picked up by the CI. The module is different in that the external folder within the ReFrame installation prefix is no longer on the PYTHONPATH. As a result, python -c "import reframe" doesn't work anymore - and note that this is by design. One should never import ReFrame directly, but only in a ReFrame test that is run by the reframe command. The reframe command then adds the external folder to the sys.path. The advantage of this setup is that only ReFrame picks up on those python deps in external folder, it doesn't polute the PYTHONPATH.

This PR removes the line that does python -c 'import eessi.testsuite.utils', since that is not supposed to work: it indirectly imports reframe, which is not supposed to work, as explained before.

…owever, this is only possible if running with the reframe command, since that command adds the 'external' directory in the reframe installation prefix to the sys.path. In other words: ReFrame is never supposed to be imported directly, that simply does not work (by design).
@bedroge bedroge merged commit b584c1e into EESSI:main Sep 17, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants