Skip to content

Commit 6d0c3a6

Browse files
Merge pull request #714 from buildtesters/v0.9.5
bump version to v0.9.5
2 parents e16efba + 670d11c commit 6d0c3a6

File tree

8 files changed

+61
-37
lines changed

8 files changed

+61
-37
lines changed

CHANGELOG.rst

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
11
CHANGELOG
22
=========
33

4-
v0.9.5 (TBD)
5-
------------
4+
v0.9.5 (Mar 31, 2021)
5+
----------------------
66

77
This release added support for `PBS Scheduler <https://www.openpbs.org/>`_ see `#691 <https://github.com/buildtesters/buildtest/pull/691>`_ and `#693 <https://github.com/buildtesters/buildtest/pull/693>`_
88
We changed the **starttime** and **endtime** format for batch job submission when reported to ``report.json`` see `#700 <https://github.com/buildtesters/buildtest/pull/700>`_. We added color output
9-
for buildtest commands using `termcolor <https://pypi.org/project/termcolor/>`_ library. We can disable color using `BUILDTEST_COLOR` environment variable. See `#703 <https://github.com/buildtesters/buildtest/pull/703>`_. We
10-
reimplement command `buildtest inspect` command by introducing commands `buildtest inspect names`, `buildtest inspect list`, `buildtest inspect id` see `#704 <https://github.com/buildtesters/buildtest/pull/704>`_.
9+
for buildtest commands using `termcolor <https://pypi.org/project/termcolor/>`_ library. We can disable color using **BUILDTEST_COLOR** environment variable. See `#703 <https://github.com/buildtesters/buildtest/pull/703>`_. We
10+
re-implemented command `buildtest inspect` command by introducing commands ``buildtest inspect name``, ``buildtest inspect list``, ``buildtest inspect id`` see `#704 <https://github.com/buildtesters/buildtest/pull/704>`_.
1111

12-
- Add wrapper script to run regression test via `sh $BUILDTEST_ROOT/scripts/regtest.sh`. This script is wrapper to `pytest` and `coverage`. See `#702 <https://github.com/buildtesters/buildtest/pull/702>`_.
12+
- Add wrapper script to run regression test via ``sh $BUILDTEST_ROOT/scripts/regtest.py``. This script is wrapper to `pytest` and `coverage`. See `#710 <https://github.com/buildtesters/buildtest/pull/710>`_.
1313
- Add `description` field for system description in configuration file `#694 <https://github.com/buildtesters/buildtest/pull/694>`_
1414
- Add command `buildtest config system` see `#697 <https://github.com/buildtesters/buildtest/pull/697>`_
15+
- Increase test coverage and add few more facility tests for Cori and Ascent see `#712 <https://github.com/buildtesters/buildtest/pull/712>`_
16+
- The `buildtest config compilers` implements the ``--list`` option which is removed see `#708 <https://github.com/buildtesters/buildtest/pull/708>`_
17+
- Add **upcxx** compiler support in compiler schema and settings schema see `#709 <https://github.com/buildtesters/buildtest/pull/709>`_
18+
1519

1620
v0.9.4 (Mar 14, 2021)
1721
---------------------

buildtest/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
BUILDTEST_VERSION = "0.9.4"
1+
BUILDTEST_VERSION = "0.9.5"
22
__version__ = BUILDTEST_VERSION
33
BUILDTEST_COPYRIGHT = "Copyright (c) 2021, The Regents of the University of California, through Lawrence Berkeley National Laboratory (subject to receipt of any required approvals from the U.S. Dept. of Energy), Shahzeb Siddiqui, and Vanessa Sochat. All rights reserved."

buildtest/menu/compilers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ def list(self):
246246
return self.names
247247

248248
def print_compilers(self):
249-
"""This method implements ``buildtest config compilers --list`` which
249+
"""This method implements ``buildtest config compilers`` which
250250
prints all compilers from buildtest configuration
251251
"""
252252
for name in self.names:

docs/buildspecs/compiler.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ of all compilers. We used ``buildtest config compilers find`` to :ref:`detect co
106106

107107
.. code-block:: console
108108
109-
$ buildtest config compilers -l
109+
$ buildtest config compilers
110110
builtin_gcc
111111
gcc/9.3.0-n7p74fd
112112
gcc/10.2.0-37fmsw7

docs/configuring_buildtest/compilers.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ these options::
6060
cxx: /usr/bin/g++
6161
fc: /usr/bin/gfortran
6262

63-
$ buildtest config compilers --list
63+
$ buildtest config compilers
6464
builtin_gcc
6565

6666
.. _detect_compilers:
217 KB
Loading

docs/contributing/regression_testing.rst

Lines changed: 47 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -74,43 +74,63 @@ Running test via coverage
7474
--------------------------
7575

7676
There is a coverage configuration file `.coveragerc <https://github.com/buildtesters/buildtest/blob/devel/.coveragerc>`_ located
77-
in root of buildtest that is read by **coverage** utility. You can just run ``coverage run -m pytest``
78-
to get line-line coverage of the source code. This action is done via `regtest.sh <https://github.com/buildtesters/buildtest/blob/devel/scripts/regtest.sh>`_ script if you
79-
were to run it as is. Upon completion of tests you can run ``coverage report`` to show coverage results of your
77+
in root of buildtest that is read by **coverage** utility. The `regtest.py <https://github.com/buildtesters/buildtest/blob/devel/scripts/regtest.py>`_ script
78+
will collect coverage details upon completion of regression test which is equivalent to running `coverage run -m pytest` but we make some additional checks when
79+
running the script. Upon completion of tests you can run ``coverage report`` to show coverage results of your
8080
regression test run locally. Shown below is an example output:
8181

8282
.. code-block:: console
8383
8484
$ coverage report
85-
Name Stmts Miss Branch BrPart Cover
86-
-----------------------------------------------------------------------------
87-
buildtest/__init__.py 2 0 0 0 100%
88-
buildtest/buildsystem/__init__.py 0 0 0 0 100%
89-
buildtest/buildsystem/base.py 222 19 76 19 85%
90-
buildtest/buildsystem/schemas/__init__.py 0 0 0 0 100%
91-
buildtest/buildsystem/schemas/utils.py 53 8 26 8 77%
92-
buildtest/config.py 65 29 28 5 48%
93-
buildtest/defaults.py 18 0 0 0 100%
94-
buildtest/exceptions.py 5 1 2 1 71%
95-
buildtest/log.py 18 0 0 0 100%
96-
buildtest/main.py 11 11 0 0 0%
97-
buildtest/menu/__init__.py 62 47 4 0 23%
98-
buildtest/menu/build.py 62 52 28 0 11%
99-
buildtest/menu/config.py 35 1 18 0 98%
100-
buildtest/menu/get.py 31 23 10 0 20%
101-
buildtest/menu/show.py 17 3 6 3 74%
102-
buildtest/menu/status.py 11 8 2 0 23%
103-
buildtest/system.py 37 37 10 0 0%
104-
buildtest/utils/__init__.py 0 0 0 0 100%
105-
buildtest/utils/command.py 49 2 12 3 92%
106-
buildtest/utils/file.py 46 0 14 2 97%
107-
-----------------------------------------------------------------------------
108-
TOTAL 744 241 236 41 63%
85+
Name Stmts Miss Branch BrPart Cover
86+
-------------------------------------------------------------------------------
87+
buildtest/__init__.py 3 3 0 0 0.00%
88+
buildtest/defaults.py 17 17 0 0 0.00%
89+
buildtest/executors/slurm.py 110 93 28 0 12.32%
90+
buildtest/executors/cobalt.py 110 93 22 0 12.88%
91+
buildtest/executors/pbs.py 96 81 14 0 13.64%
92+
buildtest/executors/lsf.py 103 85 16 0 15.13%
93+
buildtest/utils/timer.py 15 9 4 0 31.58%
94+
buildtest/menu/__init__.py 29 16 10 0 33.33%
95+
buildtest/executors/setup.py 108 60 60 8 35.71%
96+
buildtest/menu/compilers.py 107 60 50 3 38.22%
97+
buildtest/config.py 158 72 76 10 47.86%
98+
buildtest/system.py 155 70 38 11 50.78%
99+
buildtest/docs.py 5 2 0 0 60.00%
100+
buildtest/log.py 19 7 0 0 63.16%
101+
buildtest/buildsystem/base.py 185 45 50 8 67.23%
102+
buildtest/menu/build.py 421 117 208 22 70.59%
103+
buildtest/buildsystem/batch.py 75 17 44 7 71.43%
104+
buildtest/buildsystem/compilerbuilder.py 193 36 52 10 77.14%
105+
buildtest/buildsystem/builders.py 107 24 60 8 77.25%
106+
buildtest/utils/tools.py 19 2 12 2 80.65%
107+
buildtest/exceptions.py 7 2 4 0 81.82%
108+
buildtest/menu/buildspec.py 356 46 188 22 83.82%
109+
buildtest/executors/local.py 49 3 10 4 88.14%
110+
buildtest/buildsystem/scriptbuilder.py 41 3 10 3 88.24%
111+
buildtest/utils/file.py 68 11 30 0 88.78%
112+
buildtest/menu/report.py 193 16 114 14 89.58%
113+
buildtest/executors/base.py 61 4 18 2 89.87%
114+
buildtest/utils/command.py 68 3 20 5 90.91%
115+
buildtest/menu/config.py 73 4 12 1 94.12%
116+
buildtest/buildsystem/parser.py 51 2 18 2 94.20%
117+
buildtest/menu/schema.py 26 0 16 2 95.24%
118+
buildtest/menu/inspect.py 63 2 46 3 95.41%
119+
buildtest/schemas/defaults.py 32 0 0 0 100.00%
120+
buildtest/schemas/utils.py 26 0 8 0 100.00%
121+
buildtest/utils/shell.py 30 0 8 0 100.00%
122+
-------------------------------------------------------------------------------
123+
TOTAL 3179 1005 1246 147 66.19%
124+
125+
4 empty files skipped.
109126

110127
If you want to view the coverage details locally in a browser you can run: ``coverage html`` which will
111128
write the results to directory **htmlcov**. You can open the file ``open htmlcov/index.html`` and it will show you
112129
a summary of coverage results that you would see from codecov.
113130

131+
.. image:: coverage_locally.png
132+
133+
114134
For more details on coverage please refer to `coverage documentation <https://coverage.readthedocs.io/>`_.
115135

116136
Tox

docs/what_is_buildtest.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ for querying and finding compilers:
200200
.. code-block:: console
201201
202202
# list compilers in flat listing
203-
$ buildtest config compilers -l
203+
$ buildtest config compilers
204204
205205
# list compilers in YAML format
206206
$ buildtest config compilers --yaml

0 commit comments

Comments
 (0)