Bug 1944872 - [RFE] tripleO validations - provide a method to show only most recent history
Summary: [RFE] tripleO validations - provide a method to show only most recent history
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-validations-libs
Version: 17.0 (Wallaby)
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: Alpha
: 17.0
Assignee: Jiri Podivin
QA Contact: nlevinki
URL:
Whiteboard:
: 1959707 (view as bug list)
Depends On: 1962522
Blocks: 1959707
TreeView+ depends on / blocked
 
Reported: 2021-03-30 20:19 UTC by Chris Fields
Modified: 2023-02-22 23:02 UTC (History)
8 users (show)

Fixed In Version: python-validations-libs-1.1.1-0.20210513023024.5815fb3.el8ost
Doc Type: Enhancement
Doc Text:
This enhancement adds the '--limit' argument to the 'openstack tripleo validator show history' command. You can use this argument to show only a specified number of the most recent validations.
Clone Of:
: 1959707 (view as bug list)
Environment:
Last Closed: 2022-09-21 12:14:53 UTC
Target Upstream Version: wallaby
Embargoed:
scohen: needinfo+
scohen: needinfo+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 788902 0 None MERGED Retrieve n latest validation results 2021-05-07 17:02:29 UTC
Red Hat Issue Tracker OSP-1633 0 None None None 2021-11-18 15:09:11 UTC
Red Hat Issue Tracker VALFRWK-504 0 None None None 2021-08-20 12:13:07 UTC
Red Hat Product Errata RHEA-2022:6543 0 None None None 2022-09-21 12:15:41 UTC

Description Chris Fields 2021-03-30 20:19:48 UTC
Description of problem:

If I've run validations many times, I want to be able to show only the history of the most recent runs for each validator.  This is particularly useful when running group validations.  

openstack tripleo validator show history --recent

Returns the most recent run for each validator in history.  

Version-Release number of selected component (if applicable):
16.1.4

Comment 5 Jiri Podivin 2021-05-10 09:06:41 UTC
Included in the 16.2 build, package: python-validations-libs-1.1.1-2.20210508004823.bfd8e33.el8ost
https://brewweb.engineering.redhat.com/brew/buildinfo?buildID=1598598

Waiting for 17.0 build before changing status.

Comment 6 Jiri Podivin 2021-05-13 06:20:15 UTC
Now in brew build for 17 trunk: https://brewweb.engineering.redhat.com/brew/buildinfo?buildID=1602791

Comment 7 Gaël Chamoulaud 2021-06-01 09:37:40 UTC
*** Bug 1959707 has been marked as a duplicate of this bug. ***

Comment 9 Jiri Podivin 2021-06-15 08:45:16 UTC
How to test:

1. Run 20< arbitrary validations. Group and specifics of validation doesn't matter.
   This is only a question of number.
2. Display the validator CLI help, to verify description of the `--limit` option.
3. Run `validator history list` without the `--limit` argument. 
   The output must consist of the 15 latest validation runs. Announcement must be displayed about the limit.
4. Run `validator history list` with the --limit argument and various values.
   Recommending 5, 7 and 20.
   Announcement about limit used must be displayed and output limited. 
5. Run `validator history list` with the --limit argument and several invalid values.
   For example -1 and HCF. Error message must be displayed.

Comment 10 Jiri Podivin 2021-06-15 12:28:51 UTC
How to test:

1. Run 20< arbitrary validations. Group and specifics of validation doesn't matter.
   This is only a question of number. `openstack tripleo validator run --validation <> --group <>`.
2. Display the validator CLI help, to verify description of the `--limit` option.
3. Run `openstack tripleo validator history list` without the `--limit` argument. 
   The output must consist of the 15 latest validation runs. Announcement must be displayed about the limit.
4. Run `openstack tripleo validator history list` with the --limit argument and various values.
   Recommending 5, 7 and 20.
   Announcement about limit used must be displayed and output limited. 
5. Run `openstack tripleo validator history list` with the --limit argument and several invalid values.
   For example -1 and HCF. Error message must be displayed.

Comment 21 errata-xmlrpc 2022-09-21 12:14:53 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Release of components for Red Hat OpenStack Platform 17.0 (Wallaby)), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2022:6543


Note You need to log in before you can comment on or make changes to this bug.