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
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.
Now in brew build for 17 trunk: https://brewweb.engineering.redhat.com/brew/buildinfo?buildID=1602791
*** Bug 1959707 has been marked as a duplicate of this bug. ***
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.
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.
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