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

Bug in tutorial with references #3198

Open
createyourpersonalaccount opened this issue May 16, 2024 · 4 comments
Open

Bug in tutorial with references #3198

createyourpersonalaccount opened this issue May 16, 2024 · 4 comments

Comments

@createyourpersonalaccount
Copy link
Contributor

In https://reframe-hpc.readthedocs.io/en/stable/tutorial.html#adding-performance-references there's a definition for myhost:baseline. But as I've discovered after testing, it is more like mysystem:mypartition.

This becomes more confusing since later in the tutorial (see https://reframe-hpc.readthedocs.io/en/stable/tutorial.html#id11) a baseline.py configuration is shown where a hostname myhost is defined for the mytutorialsys system and an environment with name baseline. The correct reference for that would be mytutorialsys:default.

There are three related issues overall with the presentation:

  1. The issue I've described above; it is mysystem:mypartition for references and needs to be fixed in the tutorial.
  2. The order of presentation should be reversed; we should first discuss configuration files and then references.
  3. The valid_prog_environs is not clearly explained. It took me a while to figure out how to request two features, (with valid_prog_environs = ['+A +B'].) In retrospect, it is explained in https://reframe-hpc.readthedocs.io/en/stable/regression_test_api.html#reframe.core.pipeline.RegressionTest.valid_systems but it would be nice if the example showed more than just one feature.

If you agree with these issues I can fix them.

@vkarak
Copy link
Contributor

vkarak commented May 24, 2024

In https://reframe-hpc.readthedocs.io/en/stable/tutorial.html#adding-performance-references there's a definition for myhost:baseline. But as I've discovered after testing, it is more like mysystem:mypartition.

Yes, this need fixing. I would probably go with generic:default which is what we are using and explain its meaning pointing to the explanation of systems/environment in the following section.

The issue I've described above; it is mysystem:mypartition for references and needs to be fixed in the tutorial.

Agreed.

The order of presentation should be reversed; we should first discuss configuration files and then references.

I'm not sure I'm in favor of this. Because if you want to run local run-only tests you can even go without dealing with the configuration. Configuration it's a whole chapter of its own and if it comes first, I think the point about how writing tests will be missed. The idea is to introduce the necessary parts of the configuration as the reader progresses with the tutorial.

The valid_prog_environs is not clearly explained. It took me a while to figure out how to request two features, (with valid_prog_environs = ['+A +B'].) In retrospect, it is explained in https://reframe-hpc.readthedocs.io/en/stable/regression_test_api.html#reframe.core.pipeline.RegressionTest.valid_systems but it would be nice if the example showed more than just one feature.

Agreed, but I would rather make the reader aware of this possibility and point them to the reference for more examples.

@vkarak vkarak self-assigned this May 24, 2024
@createyourpersonalaccount
Copy link
Contributor Author

@vkarak I'll take a look on Monday to submit a patch.

@createyourpersonalaccount
Copy link
Contributor Author

I'll push it back a bit until the end of the week.

@vkarak
Copy link
Contributor

vkarak commented May 27, 2024

I'll push it back a bit until the end of the week.

No rush, thanks!

createyourpersonalaccount added a commit to createyourpersonalaccount/reframe that referenced this issue Jun 1, 2024
Deals with reframe-hpc#3198. Also corrects a mischaracterization of `builtin`; it
is not a partition, it is an environment.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In Progress
Development

No branches or pull requests

2 participants