Skip to content

Conversation

@mabraham
Copy link
Contributor

A laptop would generally not have modules, so saying that explicitly
will help highlight to new users that a module setting can be
useful. There is a modules setting below for daint, but at least one
user skimmed over the more complex case.

The line numbers for the literal includes need to be bumped if they
are greater than 15, and a range including 15 is shown, then the
highlighting can need a bump. Note that the latter index within the
range shown, so don't always need a bump.

Fixes #1887

A laptop would generally not have modules, so saying that explicitly
will help highlight to new users that a module setting can be
useful. There is a modules setting below for daint, but at least one
user skimmed over the more complex case.

The line numbers for the literal includes need to be bumped if they
are greater than 15, and a range including 15 is shown, then the
highlighting can need a bump. Note that the latter index within the
range shown, so don't always need a bump.

Fixes #1887
@jenkins-cscs
Copy link
Collaborator

Can I test this patch?

@mabraham
Copy link
Contributor Author

mabraham commented Mar 25, 2021

I'd proof-read this if I could. Is the build docs artifact online somewhere, or would I have to build it myself?

Copy link
Contributor

@jjotero jjotero left a comment

Choose a reason for hiding this comment

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

I've got a bit of a different approach to state this in a clearer way. I'm not convinced that adding the modules_system option is the best way for this here, since this is an optional parameter and it already defaults to nomod. I feel that tutorials should be kept as light as possible.

What about just expanding on this in the modules_system bullet instead? (see the comment below)

'name': 'catalina',
'descr': 'My Mac',
'hostnames': ['tresa'],
'modules_system': 'nomod',
Copy link
Contributor

Choose a reason for hiding this comment

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

'modules_system' is not required and it defaults to 'nomod', so I think this should not be included in here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, that is true, but a user of the tutorials typically doesn't know that. They probably don't even know that that setting up modules is a thing they might want to do (see #1887) but by being mildly redundant they might get the clue that if they want modules support then they need to set things up.

If util.find_modules gave an error when modules_system was nomod then there'd have been a way to find out that my problem lay in configuration, and not in invalid construction of my test parameters.

The next example configuration on daint does have modules_system, but also a lot of partition complexity. When I read the docs, I knew I didn't need the latter for running on my dedicated node, so never saw that the example for modules_system was also mentioned there.

There is text lower down that mentions modules_system but it's a bit buried in a section about partitions, so again I missed it.

@vkarak
Copy link
Contributor

vkarak commented Mar 25, 2021

I am also of the opinion to keep the tutorials as light as possible and this was the initial principle. I would go for a warning issued by nomod whenever a test tries a module operation. I just haven't had the time to open an issue for this. Let's see how this works and if it produces false noise, we might consider updating the documentation as proposed in this PR.

@vkarak vkarak added this to the ReFrame sprint 21.04.1 milestone Mar 25, 2021
Copy link
Contributor

@vkarak vkarak left a comment

Choose a reason for hiding this comment

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

I've done a PR with the necessary fixes to your branch: https://github.com/ENCCS/reframe/pull/1

@vkarak vkarak changed the title [doc] Add modules = nomod to example configuration file [doc] Make basic configuration example more intuitive w.r.t. to modules systems Apr 12, 2021
@vkarak
Copy link
Contributor

vkarak commented Apr 16, 2021

Replaced by #1932

@vkarak vkarak closed this Apr 16, 2021
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.

error running tutorial: decorated test ('MyTest') is an abstract test

4 participants