Zuul job queries the requirements.txt and the relevant
spec file using the `rdopkg reqcheck` to find discrepancies
in the listed dependencies.
Just like the original `rdopkg-reqcheck` this job is non-voting.
Depends-On: I18a2249eec77b0b7adc3a14eed530760598f972e
Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: I6fad1cc93e9a89cba857691dffcec5d794e69333
New optional parameter for the CLI limiting
number of validation results returned by history subcommand.
Resolves: rhbz#1944872
Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: Ie79062e85351ed545c33001866773bf38fdf8517
Colors are now stored in their own module.
Output coloring was factored out into a separate
utility function.
State => color mapping is now implemented as a
dictionary instead of multiple conditionals.
Tests included.
Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: I41f15c28dfddd911294ecc8e3e0331a4956dc5d8
If results is empty in cli/run.py then we should raise
a RuntimeError otherwise, it will returns 0 without any
information.
Change-Id: Ic38690bd719658fe02a30691d112f3429523802a
Docs are now built in both html and pdf.
Html docs link to pdf docs.
Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: I203942b27ddbfb540b3262c55faba509799ecc19
This review adds a CLI for the Validation Framework which will become
the only entry point to run the Validation Framework.
It will deprecate the tripleo_validatior.py CLI and the
validation.py script.
This patch uses python cliff library to provide nice helpers, shell
and output formats.
Change-Id: I66800ad51cc50f4eb37efabe85fb553dce008101
This patch adds variables to make this TripleO CI job a consumer one.
Related-Bug: #1923091
Change-Id: I01c94b85beceed34c67fddfb44ba1cf721aa9d36
Signed-off-by: Gael Chamoulaud (Strider) <gchamoul@redhat.com>
Python 3.6 is the oldest version of python
supported by the package, and newer, supported,
minor versions do not break any substantial functionality
by design, while introducing new features.
Therefore we do not need to run unit tests for
each minor version. As all possible issues affecting
versions >3.6 would necessarily be related to features
introduced in versions >3.6.
Victoria test template was removed from .zuul.yaml.
The pep8 test environment was folded into linters in tox.ini.
Zuul is now explicitly running tests only in one, oldest supported,
python environment, Python 3.6.
PEP387: https://www.python.org/dev/peps/pep-0387/https://docs.python.org/3/whatsnew/3.7.html#porting-to-python-37https://docs.python.org/3/whatsnew/3.8.html#porting-to-python-3-8
Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: Iec86be1b44a494c815ffff042b8693d7fc830b74
The callback_whitelist is not usable via the Run action for now.
The patch allow users to pass a list of callbacks to whitelist
during the validation run.
Altered docstrings to include changed type spec.
Change-Id: I37eb369701ccbd1d3fd4a7601a5e626d5867381d
Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Signed-off-by: Mathieu Bultel <mat.bultel@gmail.com>
Apart from incomplete output the incorrect formatting
causes followup exception further obfuscating the original issue.
Minor issue related to:
BGZ:1895045
Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: Ibed0bc4b78be957819205bed76073e72820ab2a1
If /var/log/validations is not present on the system, then we should
default the path to something known and writable
Change-Id: I4cd854b5bdc6019697b5d210d368b1bdb4b1f4b3
The code of the groups property in the Validation class changed. Before
the code didn't check if the key groups was there. You can see the
change[1] to have more information.
[1] eb62054a33
Closes-bug: #1917785
Co-authored-by: Owen McGonagle <omcgonag@redhat.com>
Change-Id: Ib11fd1b829bd56c19f82081d53440b4dd8237f3f
Improve the code and remove the condition to check the groups. Use the
default value from the get method.
Co-authored-by: Owen McGonagle <omcgonag@redhat.com>
Change-Id: I693ba3699ab2c1b50f92b4f60f309d8c529a23c4
After merge of 723586 anyway.
Specific changes include:
new readme.rst in doc structure
tox adjustment
license info
bugtracking and source links
date update
badges
CONTRIBUTING.rst
ansible_autodoc.py
release notes infrastructure
Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: Ia3db253e05d0f8d754259ff841a783f29cd6a70f
Is the inventory is passed with a relative path ansible
wont be able to find the file, we need to return the
absolute path in that case.
Change-Id: I3a99ac5b73b5a8d32434db15f78e14a7366e2925
Thank you dpeacock for pointing out this oversight.
Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: I9ae7309495458ba35a723e13c94d9dc85c8c45e9
.dockerignore file was added to limit size of the docker context
The more complex docker images will be placed in newly created
dockerfiles dir. Each in its own subdir
and accompanied with README.rst file describing their use.
Right now there is only one, the same as the one in repo root.
But in the future there will be more.
Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: I5ed91d4258d9ad6725a86d5c3c6a40a02212b5d4