From 0c2da5ddaf7fb3372881c88afc83d2bf1738f50b Mon Sep 17 00:00:00 2001 From: Shahzeb Siddiqui Date: Fri, 30 Jul 2021 14:01:29 -0400 Subject: [PATCH 1/4] add bash completion for -a/--all option for 'buildtest inspect name' --- bash_completion.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/bash_completion.sh b/bash_completion.sh index 257424b02..e2c6461b6 100644 --- a/bash_completion.sh +++ b/bash_completion.sh @@ -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 From 96099b242a821991a1c5b0875b5f75d9fd5d6c1e Mon Sep 17 00:00:00 2001 From: Shahzeb Siddiqui Date: Fri, 30 Jul 2021 17:06:24 -0400 Subject: [PATCH 2/4] add CHANGELOG for v0.10.1 --- CHANGELOG.rst | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 23ffe2b3c..d37764eb3 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,6 +1,19 @@ CHANGELOG ========= +v0.10.11 +--------- + +- Add command ``buildtest buildspec summary`` to show summary of buildspec cache `#831 `_ +- Add command ``buildtest buildspec invalid`` to show invalid buildspecs from cache `#830 `_ +- Add option ``buildtest build --filter`` for filtering buildspecs and remove option ``--filter-tags`` `#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 `_ `#824 `_ `#832 `_. +- Add option ``--no-header`` to toggle output header with terse format in **buildtest history list**, **buildtest report**, **buildtest buildspec find** see `#815 `_ `#816 `_ `#818 `_ +- Add terse output ``--terse`` for command **buildtest history list** `#811 `_, **buildtest report** command `#814 `_ and **buildtest buildspec find** command `#809 `_ +- Change output of ``buildtest help`` `#808 `_ +- Add support for ``buildtest buildspec find --filter buildspec`` to filter cache by buildspec file see `#807 `_ +- Add new command ``buildtest inspect query`` for querying test records see `#806 `_ + v0.10.0 (July 13th, 2021) -------------------------- From 851d8686e4d86afcaf1c2cfa7843e3f63da091a5 Mon Sep 17 00:00:00 2001 From: Shahzeb Siddiqui Date: Fri, 30 Jul 2021 17:54:11 -0400 Subject: [PATCH 3/4] bump version to v0.10.1 --- CHANGELOG.rst | 4 ++-- buildtest/__init__.py | 2 +- docs/gettingstarted/query_test_report.rst | 5 ++++- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index d37764eb3..a275ba61c 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,8 +1,8 @@ CHANGELOG ========= -v0.10.11 ---------- +v0.10.11 (July 30th, 2021) +--------------------------- - Add command ``buildtest buildspec summary`` to show summary of buildspec cache `#831 `_ - Add command ``buildtest buildspec invalid`` to show invalid buildspecs from cache `#830 `_ diff --git a/buildtest/__init__.py b/buildtest/__init__.py index 2dea98cdd..6169e4853 100644 --- a/buildtest/__init__.py +++ b/buildtest/__init__.py @@ -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." diff --git a/docs/gettingstarted/query_test_report.rst b/docs/gettingstarted/query_test_report.rst index 3f379323a..e312616bb 100644 --- a/docs/gettingstarted/query_test_report.rst +++ b/docs/gettingstarted/query_test_report.rst @@ -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 @@ -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`` From ed9fb5506aaaa6e794b3f34d08b7db3fff46e6e8 Mon Sep 17 00:00:00 2001 From: Shahzeb Siddiqui Date: Fri, 30 Jul 2021 17:56:08 -0400 Subject: [PATCH 4/4] typo in CHANGELOG version --- CHANGELOG.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index a275ba61c..e252b0ac3 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,7 +1,7 @@ CHANGELOG ========= -v0.10.11 (July 30th, 2021) +v0.10.1 (July 30th, 2021) --------------------------- - Add command ``buildtest buildspec summary`` to show summary of buildspec cache `#831 `_