Commit Graph

28 Commits

Author SHA1 Message Date
Pierre Riteau 5579fb4728 Fix tox.ini for tox4
Change-Id: I19456b4a84e1b55eca1a234ca26675dfcd4875ac
2023-02-16 16:36:47 +01:00
Ghanshyam Mann e8d0ff592d Drop lower-constraints.txt and its testing
As discussed in TC PTG[1] and TC resolution[2], we are
dropping the lower-constraints.txt file and its testing.
We will keep lower bounds in the requirements.txt file but
with a note that these are not tested lower bounds and we
try our best to keep them updated.

Note that we make the Python 3.6 non-voting because it is failing due to
Nova dropping support for it.

[1] https://etherpad.opendev.org/p/tc-zed-ptg#L326
[2] https://governance.openstack.org/tc/resolutions/20220414-drop-lower-constraints.html#proposal

Change-Id: If34a9d89d8b5779b6eb4f35b171e64c5f6c1902e
2022-08-08 16:54:53 +02:00
Zuul 63560cf765 Merge "Updating python testing classifier as per Yoga testing runtime" 2022-01-14 16:37:39 +00:00
Pierre Riteau f545e41c56 Add release notes for blazar-nova
Change-Id: I23cd4210d8d5ed2241f8a8b14fe50866099277c3
2022-01-12 09:53:30 +01:00
Ghanshyam Mann c9cb5de21d Updating python testing classifier as per Yoga testing runtime
Yoga testing runtime[1] has been updated to add py39
testing as voting. Unit tests update are handled by the
job template change in openstack-zuul-job

- https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/820286

this commit updates the classifier in setup.cfg file, also tox.ini.

[1] https://governance.openstack.org/tc/reference/runtimes/yoga.html

Change-Id: Idc1132b4499921c42df691bea96c610933c41e0a
2021-12-14 02:19:15 +00:00
Vu Cong Tuan 965f178756 Switch to stestr
According to an Openstack summit session [1], stestr is a maintained
project to which all Openstack projects should migrate. Let's switch to
stestr as other projects have already moved to it.

[1] https://etherpad.opendev.org/p/YVR-python-pti

Change-Id: Ie2169026d93ca85337db429c171ff1f82c2fa0d5
2021-08-16 14:10:45 +00:00
Hervé Beraud ae65a5ce2c Add doc/requirements
We need to specify doc requirements in doc/requirements.txt
to avoid problems with the pip resolver [1] for the release team [2][3].
Removed specific doc requirements from test-requirements.txt.

The problem here is that this repos haven't doc/requirements.txt file
and by default in this case zuul will use the test-requirements.txt file
to pull requirements [4].

This requirements file contains extra requirements like flake8 that
collided with those allowed in our job environment and so the new pip
resolver fails to install these requirements and the job exits in error.

This project meet the conditions leading to the bug however it doesn't
produce any doc or releasenotes, but uniformization can't hurt and help
us in the future.

[1] http://lists.openstack.org/pipermail/release-job-failures/2021-January/001500.html
[2] http://lists.openstack.org/pipermail/openstack-discuss/2021-January/019611.html
[3] http://lists.openstack.org/pipermail/openstack-discuss/2021-January/019612.html
[4] https://opendev.org/zuul/zuul-jobs/src/branch/master/roles/ensure-sphinx/tasks/main.yaml#L36

Change-Id: Idec7e542c286e3d9746e58286ffd4ef6561db47b
2021-01-05 22:04:27 +01:00
Pierre Riteau 6434f21c68 Fix lower-constraints job
* Require hacking 4.0.0+ to fix issues with pyflakes dependencies
* Add install_command for the lower-constraints env which uses
  lower-constraints.txt instead of the upper constraints file.
* Update lower constraints and requirements to match nova

Change-Id: Icba57c52c613611311e8ef1838cd94b062b4705b
2021-01-05 21:35:24 +01:00
Tetsuro Nakamura 9f030ebc27 Stop testing with py2
Python 2 is no longer supported. Python 3 is required.
This patch stops testing with Python 2 and issues the release note.

Change-Id: Ibed6cf480280dcdde19a8d47982b9e1fa6b96f85
2019-12-06 04:15:35 +00:00
pengyuesheng 89dc528824 Update the constraints url
For more detail, see http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html

Change-Id: I0c23a4f5cb3f388294c86cc5e8679946cbfbed37
2019-09-25 14:06:33 +08:00
Corey Bryant 32350eb304 Add Python 3 Train unit tests
This is a mechanically generated patch to ensure unit testing is in place
for all of the Tested Runtimes for Train.

See the Train python3-updates goal document for details:
https://governance.openstack.org/tc/goals/train/python3-updates.html

Change-Id: Ia0df3cd78cac0e8904eb4be82213727a004fa01b
Story: #2005924
Task: #34199
2019-06-21 17:16:41 -04:00
Le Hou 184b3598a4 Use opendev repository
Change-Id: I52778356e8172d97eafbbb276a49457117c7b16d
2019-04-23 16:13:01 +08:00
Ghanshyam Mann 0ef198facc Dropping the py35 testing
All the integration testing has been moved to
Bionic now[1] and py3.5 is not tested runtime for
Train or stable/stein[2].

As per below ML thread, we are good to drop the py35
testing now:
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/005097.html

[1] http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004647.html
[2]
https://governance.openstack.org/tc/reference/runtimes/stein.html
https://governance.openstack.org/tc/reference/runtimes/train.html

Change-Id: I1b98c34b0ab39123c4489bb638c96f726c2bdb88
2019-04-15 16:32:21 +00:00
Pierre Riteau 91adad90b3 Remove outdated import_exceptions for hacking
Change-Id: Ia3e04db81af6b16aad499d0175b3e86066fb6138
2018-09-28 11:01:07 +01:00
Doug Hellmann 67f04e32cc add lower-constraints job
Create a tox environment for running the unit tests against the lower
bounds of the dependencies.

Create a lower-constraints.txt to be used to enforce the lower bounds
in those tests.

Add openstack-tox-lower-constraints job to the zuul configuration.

See http://lists.openstack.org/pipermail/openstack-dev/2018-March/128352.html
for more details.

Change-Id: I0341d09379799d37d483dfed46de9903bac77fae
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-07-12 21:29:31 +01:00
Doug Hellmann d4aaeffde7 fix tox python3 overrides
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: I69c088c5230e084245076f1176a4c93964f8489f
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-06-06 15:27:00 -04:00
Pierre Riteau dd08b76fc9 Remove nova tarball from test-requirements
Using test-requirements to get a specific version of nova for tests is
preventing DevStack from installing blazar-nova, because nova is already
added to upper-constraints.txt as "-e file:///opt/stack/nova#egg=nova".
DevStack shows the following error message:

    Could not satisfy constraints for 'nova': installation from path or url cannot be constrained to a version

Import tools/tox_install.sh from Neutron repos and adapt it to install
Nova in tox environments used for unit tests. Minimal modifications were
made to this script in order to easily track changes from Neutron repos.

tox.ini is modified to use this script instead of pip. For pep8 checks,
we exclude the .tmp directory where nova is cloned in gate jobs,
otherwise the nova source is checked as well and triggers failures.

See [1] and [2] for more details about the issue fixed by this commit.

[1] https://bugs.launchpad.net/devstack/+bug/1540328/comments/13
[2] https://review.openstack.org/#/c/405630/1

Closes-Bug: #1641577
Change-Id: I542461e609866b21f597b0c4a2954807c5b8f8b7
2017-01-23 10:23:01 +00:00
Hiroaki Kobayashi 71f02b0382 Delete openstack.common.test module
This patch deletes openstack.common.test module and related modules
which are not used anymore.

Change-Id: Icd900d3a6f795ce2df88edc1b73d924a83379eec
2017-01-23 18:56:46 +09:00
Jenkins 5e1bed6ebf Merge "Update default environment list" 2017-01-16 09:42:57 +00:00
Tony Breeds ffc660fead H803 no longer exists so no longer ignore it
The H8xx rules have been removed from hacking since v0.10.0.  Given that
blazar-nova is now using a modern hacking we can remove H803 from the
ignore list.

Change-Id: Ibe07fc7ae71ed8311794d8e0a435002a9f14e5eb
2017-01-16 02:13:04 +00:00
Pierre Riteau b670763b2a Update default environment list
The Blazar code base is not yet compatible with Python 3. Having tox
environments for them is a first step towards fixing it.

This commit also removes the Python 2.6 environment which is now
unsupported by OpenStack.

Change-Id: I7036294c6ce6b31661396eea94d94b662ab2c63b
2017-01-12 15:53:25 +00:00
James E. Blair 96498a5343 Remove docutils pin
This was added to work around bug 1091333.  A new sphinx has been
released and so this is no longer necessary.

Add PYTHONHASHSEED to tox.ini so that testsuite passes.

Change-Id: I6ea61a3cc441dd1ca2ced7e2fd837a55b917f76d
2014-08-26 06:51:31 +02:00
Jenkins 5c3d416eae Merge "Unit tests for the ClimateFilter class" 2014-04-02 11:08:09 +00:00
Diego Pamio 0924b1a0f3 Remove #noqa from filter
Replaced the #noqa tag in the scheduler filter for
climate-nova by a hacking section in tox.ini.

Change-Id: I96e0968f396e0ec3801a6497184907c837d1efe7
Closes-Bug: #1300379
2014-03-24 11:35:24 -07:00
Diego Pamio 207394b757 Unit tests for the ClimateFilter class
Added unit tests to test the ClimateFilter class, got 100% coverage for
that single class.

BDD style comments to improve readability.

Change-Id: I290d94dd8b2b0090aae82762dec1a65135fc2afa
Closes-Bug: #1270183
2014-03-24 10:09:14 -07:00
Diego Pamio 720413876e Fixed Coverage Test Automation in climate-nova
Added coverage plugin requirement for test and the required
env variable to make tox -e cover work.

Change-Id: Ifac7597ce342257ec8630a2ee27361e3ee085db1
Closes-Bug: #1290498
2014-03-18 23:45:21 -07:00
Dina Belova dfc8bdc0f4 Fix packages naming
Also rename root module name not to intersect with Climate
project repository itself.

Change-Id: I5adc897dfe15088190d2da72779d3f51a37c121b
2014-01-14 18:44:40 +04:00
Swann Croiset bf05bc1876 Bootstrap climate-nova with nova filter 2013-11-26 16:25:34 +01:00