Commit Graph

26 Commits

Author SHA1 Message Date
Radosław Piliszek f8f13e7d09 Drop lower-constraints
Per a general OpenStack resolution [1], lower-constraints
are not worth the extra work and confusion they introduce.
This patch drops them along with all mentions.

[1] http://lists.openstack.org/pipermail/openstack-discuss/2020-December/019521.html

Change-Id: Ib13e4f07aa6ee76be329d9eec9180c1fe31b9593
2020-12-21 17:49:44 +01:00
Zuul dcc0ceb4bc Merge "[Part7]Remove all usage of six library" 2020-09-11 18:43:17 +00:00
jacky06 0aca188c1b [Part7]Remove all usage of six library
Convert all code to not require six library and instead
use python 3.x logic.

We don't need this in a Python 3-only world.

Depends-On: Ibfee28132e102c40d0eb5b8dc73228ec8fb9ce98
Depends-On: Ibe08ffa9072f1f0c1090f2b9e2ab9af59474d6b1
Depends-On: Ic4d00d081699015ccc2d529b872a17565c881c4e
Depends-On: I2995305abf7cb704f0fe4db9634c87ea2ed378b4
Depends-On: Id9192849a78d57ecfefe1dc20f931406884e055e
Depends-On: I0147dc00943e13531ffb5e2701a91c2d2838958b

Change-Id: I764e61b86cdcaa9e74b1281344599f2d3a13d68f
Co-Authored-By: zhoulinhui <df.some@foxmail.com>
2020-09-11 17:28:57 +00:00
Radosław Piliszek 9e7d35b889 Use some better linting
Lints docs and yaml files in addition to Python.

Change-Id: I5255362cd6d2194600e149b118da4fbe102ffdb1
2020-09-11 17:24:25 +00:00
Radosław Piliszek c1d8b35661 Fix tox for api-ref
api-ref requires only doc requirements, not test.
Furthermore, some deps may not be installable due to lack of
binary deps in api-ref jobs, e.g. postgres [1].

[1] https://review.opendev.org/744343

Change-Id: Ie730a85ec2d05c3cdbab49da619f27982c14b9ce
Needed-By: https://review.opendev.org/744343
2020-09-11 17:24:05 +00:00
Ghanshyam Mann 233a61d1e0 [CI] Fix gate - multiple fixes (Focal/Py38 and policy)
Suppress of policy deprecation warnings. oslo.policy logs the
deprecated policy warnings while loading the
policy rules. Flag to suppress the warning was set after load_rule()
was called. We do not need to log warnings for unit test where
every test initializes the policy and logs a warning.

Also use yaml format of policy file in unit test to avoid
more warnings for json file.

Bump a few l-c for Py38 testing, squashing parts of
https://review.opendev.org/744343

Fix unit tests compatibility with Py38, squashing parts of
https://review.opendev.org/748874

Change-Id: Ia54d29975347392cbb93c07969d7e3b48eca5d23
Co-Authored-By: Radosław Piliszek <radoslaw.piliszek@gmail.com>
2020-09-11 19:16:32 +02:00
suzhengwei 112610abce remove future from lower-constraints
Because py27 was dropped, so __future__ is no longer needed.

Change-Id: If5b0e5ce1562d631a24b1046864258d21e86e4ec
2020-08-30 14:45:38 +00:00
Zuul 60a72305bd Merge "Remove monotonic usage" 2020-08-26 16:59:16 +00:00
wu.chunyang 1a4d6b5ae7 Remove the unused coding style modules
Python modules related to coding style checks (listed in blacklist.txt in
openstack/requirements repo) are dropped from lower-constraints.txt
they are not needed during installation.

Change-Id: I11be4f0da3cb843b7b62bcd65f6ec7ad6eb994d9
2020-08-23 23:00:41 +08:00
Sean McGinnis c401beb370
Remove monotonic usage
The monotonic package was needed for monotonic time operations when
running under Python runtimes older than 3.3. Since we now only support
versions higher than this, this third party package requirement can now
be removed.

Change-Id: I5e5e446c51195f3a53604dcdc43fd8e8881b24d5
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-07-13 14:44:25 -05:00
Hervé Beraud dfd16989d6 drop mock from lower-constraints
The mock third party library was needed for mock support in py2
runtimes. Since we now only support py36 and later, we don't need it
in lower-constraints.

These changes will help us to drop `mock` from openstack/requirements

Change-Id: I936f980f91ddc86e6e6d256b907085acd3c5be8d
2020-06-09 01:21:40 +02:00
Zuul 8d039a0f1e Merge "Cap jsonschema 3.2.0 as the minimal version" 2020-06-02 04:28:38 +00:00
Andreas Jaeger 7020fc48eb Switch to newer openstackdocstheme and reno versions
Switch to openstackdocstheme 2.2.1 and reno 3.1.0 versions. Using
these versions will allow especially:
* Linking from HTML to PDF document
* Allow parallel building of documents
* Fix some rendering problems

Update Sphinx version as well.

Disable openstackdocs_auto_name to use 'project' variable as name.

Change pygments_style to 'native' since old theme version always used
'native' and the theme now respects the setting and using 'sphinx' can
lead to some strange rendering.

Remove docs requirements from lower-constraints, they are not needed
during install or test but only for docs building.

openstackdocstheme renames some variables, so follow the renames
before the next release removes them. A couple of variables are also
not needed anymore, remove them.

See also
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html

Change-Id: Ib8c912844becebbfef3bf6579ebea9350676a322
2020-06-01 15:08:16 +02:00
Hervé Beraud 606f136130 Cap jsonschema 3.2.0 as the minimal version
Previous versions of jsonschema (<3.2.0) doesn't support python 3.8 [1].
Python 3.8 is part of the victoria supported runtimes [2] so we now force
to use jsonschema version 3.2.0 to avoid issues, remove ambiguity and ensure
that everything works with python 3 in general.

[1] https://github.com/Julian/jsonschema/pull/627
[2] https://governance.openstack.org/tc/reference/runtimes/victoria.html#python-runtimes-for-victoria

Change-Id: I512ca56b8d65d66a554f704ae7d22a93941347a9
2020-05-27 10:31:59 +02:00
Andreas Jaeger 9350d8fb83 Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Fix problems found by updated hacking version.

Update local hacking checks to work with current flake8.

Remove hacking and friends from lower-constraints, they are not needed
there.

Change-Id: I89695a03791c2de36ab015b3831c85887b27f3b8
2020-04-19 07:41:06 +02:00
tpatil d2635fd77b Fix the functional test devstack job
From last couple of months, the functional devstack job is broken.
Fixed the devstack job so that functional tests can run on multi-node
setup.

Note: Need to install SQLAlchemy-Utils explicitly as taskflow library
installs it using extra_requires which somehow is not working on the
devstack CI job setup.

Change-Id: I224b4a5615525862f73ced8ab9f5f396cb00ef0f
2020-04-17 04:46:54 +00:00
Zuul e05d3243dd Merge "Drop use of SQLAlchemy-Utils" 2020-03-23 06:11:30 +00:00
James Page cd52fb1bcf Drop use of SQLAlchemy-Utils
SQLAlchemy Utils is not used by Masakari, drop in preference to
straight vanilla SQLAlchemy.

Change-Id: Ib6216099bee97c0c54e847df8608829e9c2f4776
2020-03-16 12:03:24 +00:00
Sean McGinnis 75388fdd27
Fix constraints URL enforcement for lower-constraints
Due to the upper-constraints argument being hard coded in the
install_command, even jobs like lower-constraints will end up getting
the latest upper-constraints installed.

The correct way to handle the constraints is to separate it out into
deps. This allows the l-c job to properly set what constraints to use.

Also fixes constraints URL to the preferred static path.

Change-Id: I92b6ee8ea5afdb16367a5b6d939e65e2fa48190d
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2019-12-16 11:24:10 -06:00
shilpa.devharakar 7321ee32fd Add progress details for recovery workflows
This patch uses taskflow's persistence feature to store recovery
workflows details into database.

Added a new microversion to return progress_details of the
notification in `GET /notifications/<notification_uuid>` API.

APIImpact:
GET /notifications/<notification_uuid> API includes details
of recovery workflow

Change-Id: I93c1b7d88823e02d9a02855cabb8b22c9e40a7d5
Implements: bp progress-details-recovery-workflows
2019-03-08 10:52:51 +05:30
Zuul 4808a2a3d3 Merge "Remove testrepository" 2018-12-18 06:52:22 +00:00
akhiljain23 7700cdd3bf Add framework for masakari-status upgrade check
This commit adds the functionality of masakari-status CLI for performing
upgrade checks as part of the Stein cycle upgrade-checkers goal.
It only includes a sample check which must be replaced by real checks in
future.

Change-Id: I17c79af15eca5f6da7e32dbedbdc392c97114d42
Story: 2003657
Task: 26140
2018-11-08 13:19:06 +00:00
Vu Cong Tuan b0785c6630 Remove testrepository
This commit is a follow-up of "switch to using stestr"
which was merged already [1].
After switch to using stestr, testrepository is unnecessary
and should be removed.

[1] https://review.openstack.org/578515

Change-Id: I79855f50754d0e33d779c0762220019cb8649ba3
2018-07-11 18:21:09 +07:00
Chuck Short 56e733f784 Switch to using stestr
According to Openstack summit session [1] stestr is maintained
project to which all Openstack projects should migrate.
Let's switch it then.

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

Change-Id: Ifb64df81f7684d5bf732afcbe594a38691a7286f
Signed-off-by: Chuck Short <chucks@redhat.com>
2018-07-03 12:02:08 -04:00
dineshbhor b81b16c189 Make accept-language tests work with webob 1.8.x
Masakari below test cases are failing due to webob 1.8.x:
..unit.api.openstack.test_wsgi.RequestTest.test_secondary
..unit.api.openstack.test_wsgi.RequestTest.test_asterisk
..unit.api.openstack.test_wsgi.RequestTest.test_from_request

Please see the logs:
http://logs.openstack.org/53/518653/1/check/openstack-tox-py27/76866e9/testr_results.html.gz

This patch is a copy of change:
I2034d30cc8d9354be80d39e05b8488cb99c32ecf which fixes similar
test cases in nova.

This patch also changes the `lower-constraints.txt` to make
the WebOb version same as other services.

Change-Id: Ic5234735267530f3b347126e1f0afa3e25f9e1fe
2018-05-20 21:56:28 -07:00
Doug Hellmann 1bcde21460 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: Iff00524bc3eb0fe1070aee7584885465cacd2393
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-04-20 16:23:35 -04:00