tox now always recreates an env although the env is shared using envdir
options.
~~~
$ tox -e genpolicy
genpolicy: recreate env because env type changed from
{'name': 'genconfig', 'type': 'VirtualEnvRunner'} to
{'name': 'genpolicy', 'type': 'VirtualEnvRunner'}
~~~
According to the maintainer of tox, this functionality is not intended
to be supported.
https://github.com/tox-dev/tox/issues/425#issuecomment-1011944293
Change-Id: I8b4f588bfc38aa078bca243ee2ef38f84a92f62d
Remove pifpaf and dependencies to gnocchi for tox test runs.
Remove redundant gabbi tests.
Move wsme & query unit tests from fuctional to unit test folder where
they belong.
Remove integration tests which has been covered in the new tempest
cases in the depends on patch.
Remove run-tests.sh in favour of just calling stestr.
Depends-On: https://review.opendev.org/c/openstack/telemetry-tempest-plugin/+/901838
Change-Id: I5b33cba27dfcb2bbdf12c9bc6b28ecff9aa18d93
tox 4 is Python 3-only. We don't need to configure a basepython now.
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: I539cdad868fe930a4cf660ed23290b05294292e0
Utilizing the "test-requirements.txt" for the test requirements
and building tox 'testenv' with pifpaf and gnocchi rather than
assuming they are actual lib dependencies of Aodh tests.
Change-Id: Ia8bb7c1f17a8090c4932541ac3eed3a8a73f3252
* use min version 4.2.5, for fixes [1][2][3]
* passenv fixed as space-separated list is not allowed anymore
* doc target uses requirements.txt as well as docs/requirements.txt
* skipsdist is not supported
* Add usedevelop = False so that aodh-api gets installed
Update setup.cfg: [files] -> [options]
[1] https://github.com/tox-dev/tox/issues/2754
[2] https://github.com/tox-dev/tox/pull/2824
[3] https://github.com/tox-dev/tox/pull/2828
Change-Id: I2422dc17e6c73ef346de80e57cdf61ef5d271d69
These were always called in series. No point to maintain the separation.
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: Ic100f380eea90115f0a44a82d1d28d5d216bed68
This is effectively os-testr but maintained.
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: I97183318f715b03f31145fa3d0f00bb7bc8a0c82
This repo is now testing only with Python 3, so let's make
a few cleanups:
- Remove python 2.7 stanza from setup.py
- Add requires on python >= 3.6 to setup.cfg so that pypi and pip
know about the requirement
- Remove obsolete sections from setup.cfg
- Update classifiers
- Update requirements, no need for python_version anymore
- Use newer openstackdocstheme and reno version
- Update hacking version to 3.0
- move python3 setting into toxenv, remove install_command and
move constraints into deps
Change-Id: Ibb42f8199eb4ca93e438e5e7ef5d4c4e0b35a738
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.
Fix problems found.
Change-Id: Ia621c3fea2b8ded8df7727c07931ad071a61e736
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.
We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.
We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.
Change-Id: I8049df0d8241271122c0587b639c135836846827
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This patch enable extensions:
# [H204] Use assert(Not)Equal to check for equality.
# [H205] Use assert(Greater|Less)(Equal) for comparison.
Change-Id: I376f2b4e2991f7e29e743bcd1550b9945591a50b
The updated releasenote and requirements jobs expect requirements for
docs in one of the requirements files. Move requirements from setup.cfg
to doc/requirements.txt file.
Update also releasenotes build to use same command as in jobs - build
with warnings as errors.
See also
https://governance.openstack.org/tc/reference/project-testing-interface.html#documentation
Fix failure of building with warnings as errors:
Replace the instructions for querying for release notes for newton
with the results of a reno report because some of the broken release notes
are on branches that have been closed and we have no way to edit them.
Depends-On: I994aa3cf173ec8a9412239544e3269aca17adc25
Change-Id: If8df8a6e8cad2d9247f07c9ed7a71f29b19f7d51
new ostestr is different and is breaking gate. i don't think we
really need ostestr since we don't use it in any of the projects
under Telemetry. so to remain consistent and simple, just follow
similar pattern.
Change-Id: I742de2107cf56ef8b223fa1431529e706cc52377
This allows to run functional live tests without devstack.
And runs tests within the normal tox target without devstack
This increases test coverage because all backend are now tested.
Change-Id: If475b6d1f43a44540f276209a3651e7e790c2233
Some of the available checks are disabled by default, like:
[H106] Don’t put vim configuration in source files
[H203] Use assertIs(Not)None to check for None
Change-Id: Ic641fcc099ce51ee4c03b0ce17a6f57d326dfd3f
Otherwise there are 40 warnings about missing deps when executing
"tox -e docs"
Closes-Bug: #1665823
Change-Id: Iaec22c41c25d5f2817e8fc7935fab0dfd95d5ce2
The gating on python 3.4 is restricted to <= Mitaka. This is due to
the change from Ubuntu Trusty to Xenial, where only python3.5 is
available. There is no need to continue to keep these settings.
Change-Id: I9dbe27b9f471f280f7b876f4262007a20c831ef9
The directory openstack/common was used to keep codes from
oslo-incubator, we have retired oslo-incubator, so don't use
this directory any more.
Change-Id: I3ab5e9a9c3aad923cd4772cb060a1c6d98f0ee4f
This will allow package or devstack to install
aodh-config-generator.conf under /etc/aodh, which enables end users
run ``oslo-config-generator \
--config-file=/etc/aodh/aodh-config-generator.conf \
--output-file=/etc/aodh/aodh.conf`` to generate a sample
configuration file.
Change-Id: Ib7986d689386d2f44f72754661e328967d94e88d