Skip to content

Commit

Permalink
Merge pull request #837 from buildtesters/v0.10.1
Browse files Browse the repository at this point in the history
bump version to v0.10.1
  • Loading branch information
shahzebsiddiqui authored Jul 30, 2021
2 parents 2ff71df + ed9fb55 commit 6f89bf5
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 3 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
CHANGELOG
=========

v0.10.1 (July 30th, 2021)
---------------------------

- Add command ``buildtest buildspec summary`` to show summary of buildspec cache `#831 <https://github.com/buildtesters/buildtest/pull/831>`_
- Add command ``buildtest buildspec invalid`` to show invalid buildspecs from cache `#830 <https://github.com/buildtesters/buildtest/pull/830>`_
- Add option ``buildtest build --filter`` for filtering buildspecs and remove option ``--filter-tags`` `#828 <https://github.com/buildtesters/buildtest/pull/828>`_
- Add ``metrics`` property in buildspecs to define arbitrary metrics name that can store values based on variables, environment variables or regular expression on stdout/stderr. See `#819 <https://github.com/buildtesters/buildtest/pull/819>`_ `#824 <https://github.com/buildtesters/buildtest/pull/824>`_ `#832 <https://github.com/buildtesters/buildtest/pull/832>`_.
- Add option ``--no-header`` to toggle output header with terse format in **buildtest history list**, **buildtest report**, **buildtest buildspec find** see `#815 <https://github.com/buildtesters/buildtest/pull/815/>`_ `#816 <https://github.com/buildtesters/buildtest/pull/816>`_ `#818 <https://github.com/buildtesters/buildtest/pull/818>`_
- Add terse output ``--terse`` for command **buildtest history list** `#811 <https://github.com/buildtesters/buildtest/pull/811>`_, **buildtest report** command `#814 <https://github.com/buildtesters/buildtest/pull/814>`_ and **buildtest buildspec find** command `#809 <https://github.com/buildtesters/buildtest/pull/809/>`_
- Change output of ``buildtest help`` `#808 <https://github.com/buildtesters/buildtest/pull/808>`_
- Add support for ``buildtest buildspec find --filter buildspec`` to filter cache by buildspec file see `#807 <https://github.com/buildtesters/buildtest/pull/807>`_
- Add new command ``buildtest inspect query`` for querying test records see `#806 <https://github.com/buildtesters/buildtest/pull/806>`_

v0.10.0 (July 13th, 2021)
--------------------------

Expand Down
8 changes: 7 additions & 1 deletion bash_completion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,13 @@ _buildtest ()
local opts="-h --help -t --terse"
COMPREPLY=( $( compgen -W "${opts}" -- $cur ) );;
name)
COMPREPLY=( $( compgen -W "$(_test_name)" -- $cur ) );;
COMPREPLY=( $( compgen -W "$(_test_name)" -- $cur ) )

if [[ $cur == -* ]] ; then
local opts="-h --help -a --all"
COMPREPLY=( $( compgen -W "${opts}" -- $cur ) )
fi
;;
query)
COMPREPLY=( $( compgen -W "$(_test_name)" -- $cur ) )
if [[ $cur == -* ]] ; then
Expand Down
2 changes: 1 addition & 1 deletion buildtest/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
BUILDTEST_VERSION = "0.10.0"
BUILDTEST_VERSION = "0.10.1"
__version__ = BUILDTEST_VERSION
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."
5 changes: 4 additions & 1 deletion docs/gettingstarted/query_test_report.rst
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ Inspecting Test by Name via ``buildtest inspect name``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The ``buildtest inspect name`` expects a list of positional argument that correspond to name
of test you want to query and buildtest will fetch all records for each named test. Let's see an example to
of test you want to query and buildtest will fetch the **last** record for each named test. Let's see an example to
illustrate the point. We can see that each test is stored as a JSON format and buildtest keeps track of
metadata for each test such as `user`, `hostname`, `command`, path to output and error file, content of test,
state of test, returncode, etc... In this example, we will retrieve record for test name **circle_area** which
Expand All @@ -248,6 +248,9 @@ In this next example, we will retrieve test records for ``bash_shell`` and ``py

.. command-output:: buildtest inspect name bash_shell python_hello

If you want to query all test records for a given name you can use the ``--all`` option which is applied to all positional
arguments.

.. _inspect_by_id:

Inspecting Test by ID via ``buildtest inspect id``
Expand Down

0 comments on commit 6f89bf5

Please sign in to comment.