Skip to content

Commit 6aee86b

Browse files
author
Vasileios Karakasis
committed
Address PR comments + PEP8 fixes
1 parent a1af1e6 commit 6aee86b

File tree

13 files changed

+32
-28
lines changed

13 files changed

+32
-28
lines changed

docs/conf.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,12 +232,15 @@
232232
# One entry per manual page. List of tuples
233233
# (source start file, name, description, authors, manual section).
234234
man_pages = [
235-
('manpage', 'reframe', 'The CLI frontend for managing and executing ReFrame tests',
235+
('manpage', 'reframe',
236+
'The CLI frontend for managing and executing ReFrame tests',
236237
[author], 1),
237238
('config_reference', 'reframe.settings', 'ReFrame Configuration Manual',
238239
[author], 8)
239240
]
240-
manpages_url = 'http://man7.org/linux/man-pages/man{section}/{page}.{section}.html'
241+
manpages_url = (
242+
'http://man7.org/linux/man-pages/man{section}/{page}.{section}.html'
243+
)
241244

242245

243246
# -- Options for Texinfo output -------------------------------------------

docs/config_reference.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,7 @@ All logging handlers share the following set of common attributes:
690690
See the :attr:`reframe.core.pipeline.RegressionTest.reference` attribute of regression tests for more details.
691691
- ``%(check_perf_ref)s``: The reference performance value of a certain performance variable.
692692
- ``%(check_perf_unit)s``: The unit of measurement for the measured performance variable.
693-
- ``%(check_perf_upper_thres)s``: The lower threshold of the performance difference from the reference value expressed as a fractional value.
693+
- ``%(check_perf_upper_thres)s``: The upper threshold of the performance difference from the reference value expressed as a fractional value.
694694
See the :attr:`reframe.core.pipeline.RegressionTest.reference` attribute of regression tests for more details.
695695
- ``%(check_perf_value)s``: The performance value obtained for a certain performance variable.
696696
- ``%(check_perf_var)s``: The name of the `performance variable <tutorial_basic.html#writing-a-performance-test>`__ being logged.

docs/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
Welcome to ReFrame
33
==================
44

5-
ReFrame is a framework for writing tests for HPC systems that can check for functionality and performance regressions.
6-
The goal of this framework is to abstract away the complexity of the interactions with the system, separating the logic of a regression test from the low-level details, which pertain to the system configuration and setup.
5+
ReFrame is a high-level framework for writing regression tests for HPC systems.
6+
The goal of the framework is to abstract away the complexity of the interactions with the system, separating the logic of a regression test from the low-level details, which pertain to the system configuration and setup.
77
This allows users to write easily portable regression tests, focusing only on the functionality.
88

99
Regression tests in ReFrame are simple Python classes that specify the basic parameters of the test.

docs/manpage.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ Tests can be filtered by different attributes and there are specific command lin
109109

110110
Select tests that do not target GPUs.
111111
These are all tests with :attr:`num_gpus_per_node` equals to zero
112-
This option and :option:`--cpu-only` are mutually exclusive.
112+
This option and :option:`--gpu-only` are mutually exclusive.
113113

114114
The :option:`--gpu-only` and :option:`--cpu-only` check only the value of the :attr:`num_gpus_per_node` attribute of tests.
115115
The value of this attribute is not required to be non-zero for GPU tests.
@@ -177,7 +177,7 @@ Options controlling ReFrame output
177177

178178
- The ReFrame-generated build script, if not a run-only test.
179179
- The standard output and standard error of the build phase, if not a run-only test.
180-
- The ReFrame-generated job script, if not a compile-onlyl test.
180+
- The ReFrame-generated job script, if not a compile-only test.
181181
- The standard output and standard error of the run phase, if not a compile-only test.
182182
- Any additional files specified by the :attr:`keep_files` regression test attribute.
183183

@@ -328,7 +328,7 @@ Flexible node allocation
328328

329329
ReFrame can automatically set the number of tasks of a test, if its :attr:`num_tasks <reframe.core.pipeline.RegressionTest.num_tasks>` attribute is set to a value less than or equal to zero.
330330
This scheme is conveniently called *flexible node allocation* and is valid only for the Slurm backend.
331-
When allocating nodes automatically, ReFrame will take into account all node limiting factors, such as partition :js:attr:`access`` options, and any job submission control options described above.
331+
When allocating nodes automatically, ReFrame will take into account all node limiting factors, such as partition :js:attr:`access` options, and any job submission control options described above.
332332
Nodes from this pool are allocated according to different policies.
333333
If no node can be selected, the test will be marked as a failure with an appropriate message.
334334

@@ -338,7 +338,7 @@ If no node can be selected, the test will be marked as a failure with an appropr
338338
Available values are the following:
339339

340340
- ``all``: Flexible tests will be assigned as many tasks as needed in order to span over *all* the nodes of the node pool.
341-
- ``idle``: Flexible tests will be assigned as many tasks as needed in order to span over the *idle* the nodes of the node pool.
341+
- ``idle``: Flexible tests will be assigned as many tasks as needed in order to span over the *idle* nodes of the node pool.
342342
Querying of the node state and submission of the test job are two separate steps not executed atomically.
343343
It is therefore possible that the number of tasks assigned does not correspond to the actual idle nodes.
344344

docs/sanity_functions_reference.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ The page ":doc:`deferrables`" explains in detail how sanity functions work and h
5757
5858
Sanity function decorator.
5959

60-
The evaluation of the decorated will be deferred and it will be suitable for use in the sanity and performance patterns of a regression test.
60+
The evaluation of the decorated function will be deferred and it will become suitable for use in the sanity and performance patterns of a regression test.
6161

6262
.. code:: python
6363

docs/tutorial_advanced.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ For a complete list of supported container platforms, the user is referred to th
478478
As soon as the container platform to be used is defined, you need to specify the container image to use and the commands to run inside the container:
479479

480480
.. literalinclude:: ../tutorial/advanced/advanced_example10.py
481-
:lines: 18-21
481+
:lines: 17-20
482482

483483
These two attributes are mandatory for container-based check.
484484
The :attr:`image <reframe.core.containers.ContainerPlatform.image>` attribute specifies the name of an image from a registry, whereas the :attr:`commands <reframe.core.containers.ContainerPlatform.commands>` attribute provides the list of commands to be run inside the container.
@@ -488,7 +488,7 @@ In the above example, ReFrame will run the container as follows:
488488

489489
.. code:: shell
490490
491-
singularity exec -B"/path/to/test/stagedir:/rfm_workdir" docker://ubuntu:18.04 bash -c 'cd rfm_workdir; pwd; ls; cat /etc/os-release'
491+
singularity exec -B"/path/to/test/stagedir:/workdir" docker://ubuntu:18.04 bash -c 'cd rfm_workdir; pwd; ls; cat /etc/os-release'
492492
493493
By default ReFrame will mount the stage directory of the test under ``/rfm_workdir`` inside the container and it will always prepend a ``cd`` command to that directory.
494494
The user commands then are then run from that directory one after the other.

docs/tutorial_basic.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,11 +139,11 @@ ReFrame provides already a wide range of useful sanity functions ranging from wr
139139
For a complete listing of the available functions, you may have a look at the :doc:`sanity_functions_reference`.
140140

141141
In our example, the :func:`assert_found <reframe.utility.sanity.assert_found>` function accepts a regular expression pattern to be searched in a file and either returns :class:`True` on success or raises a :class:`SanityError <reframe.core.exceptions.SanityError>` in case of failure with a descriptive message.
142-
This function accepts any valid `Python Regular Expression <https://docs.python.org/3/library/re.html#regular-expression-syntax>`__ syntax.
142+
This function accepts any valid `Python Regular Expression <https://docs.python.org/3/library/re.html#regular-expression-syntax>`__.
143143
As a file argument, :func:`assert_found <reframe.utility.sanity.assert_found>` accepts any filename, which will be resolved against the stage directory of the test.
144144
You can also use the :attr:`stdout <reframe.core.pipeline.RegressionTest.stdout>` and :attr:`stderr <reframe.core.pipeline.RegressionTest.stderr>` attributes to reference the standard output and standard error, respectively.
145145

146-
.. tip:: You need not to care about handling exceptions, and error handling in general, inside your test.
146+
.. tip:: You don't need to care about handling exceptions, and error handling in general, inside your test.
147147
The framework will automatically abort the execution of the test, report the error and continue with the next test case.
148148

149149
The last two lines of the regression test are optional, but serve a good role in a production environment:

docs/tutorial_deps.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ The full set of OSU example tests is shown below:
6868

6969
.. literalinclude:: ../tutorial/advanced/osu/osu_benchmarks.py
7070

71-
Notice that the order dependencies are defined in a test file is irrelevant.
71+
Notice that the order in which dependencies are defined in a test file is irrelevant.
7272
In this case, we define :class:`OSUBuildTest` at the end.
7373
ReFrame will make sure to properly sort the tests and execute them.
7474

reframe/core/decorators.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,9 @@ def required_version(*versions):
131131
1. ``VERSION``: Specifies a single version.
132132
2. ``{OP}VERSION``, where ``{OP}`` can be any of ``>``, ``>=``, ``<``,
133133
``<=``, ``==`` and ``!=``. For example, the version specification
134-
string ``'>=2.15'`` will only allow the following test to be loaded
135-
only by ReFrame 2.15 and higher. The ``==VERSION`` specification is
136-
the equivalent of ``VERSION``.
134+
string ``'>=2.15'`` will allow the following test to be loaded only
135+
by ReFrame 2.15 and higher. The ``==VERSION`` specification is the
136+
equivalent of ``VERSION``.
137137
3. ``V1..V2``: Specifies a range of versions.
138138
139139
You can specify multiple versions with this decorator, such as
@@ -193,8 +193,8 @@ def run_before(stage):
193193
The method will run just before the specified pipeline stage and it should
194194
not accept any arguments except ``self``.
195195
196-
This decorator can be stacked, which case the function will be attached to
197-
multiple pipeline stages.
196+
This decorator can be stacked, in which case the function will be attached
197+
to multiple pipeline stages.
198198
199199
The ``stage`` argument can be any of ``'setup'``, ``'compile'``,
200200
``'run'``, ``'sanity'``, ``'performance'`` or ``'cleanup'``.

reframe/core/pipeline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1329,7 +1329,7 @@ def check_sanity(self):
13291329
13301330
.. versionchanged:: 3.0
13311331
You may not override this method directly unless you are in
1332-
speciaxl test. See `here
1332+
special test. See `here
13331333
<migration_2_to_3.html#force-override-a-pipeline-method>`__ for
13341334
more details.
13351335

0 commit comments

Comments
 (0)