Commit Graph

20 Commits

Author SHA1 Message Date
Cai Hui 14560b4e77 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.

[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: I08cdfa48c8d7366e40b32e54d1f2252fcbcddab8
2022-05-08 21:05:10 +08:00
caihui a495023807 Add lower-constraints gate CI
Add lower-constraints gate CI

Change-Id: Ib2c9d67f96d37d5f85377dd41ef1e9378df35465
2021-06-12 11:42:11 +08:00
caihui e5f36293e5 Fix CI error
1. no_voting for lower-constraints CI
2.pep8 create: /home/zuul/src/opendev.org/openstack/freezer/.tox/pep8
pep8 installdeps: -c/home/zuul/src/opendev.org/openstack/requirements/upper-constraints.txt, -r/home/zuul/src/opendev.org/openstack/freezer/test-requirements.txt
ERROR: invocation failed (exit code 1), logfile: /home/zuul/src/opendev.org/openstack/freezer/.tox/pep8/log/pep8-1.log
================================== log start ===================================
Looking in indexes: https://mirror.bhs1.ovh.opendev.org/pypi/simple, https://mirror.bhs1.ovh.opendev.org/wheel/ubuntu-20.04-x86_64
Collecting astroid==2.1.0
  Downloading 8809bc008b36396c0cff6279841e8a/astroid-2.1.0-py3-none-any.whl (176 kB)
Collecting pylint==2.3.1
  Downloading b3f73f4ac00277237721ef1c151f0d/pylint-2.3.1-py3-none-any.whl (765 kB)
INFO: pip is looking at multiple versions of <Python from Requires-Python> to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of astroid to determine which version is compatible with other requirements. This could take a while.
ERROR: Cannot install -r /home/zuul/src/opendev.org/openstack/freezer/test-requirements.txt (line 23) and astroid==2.1.0 because these package versions have conflicting dependencies.

The conflict is caused by:
    The user requested astroid==2.1.0
    pylint 2.3.1 depends on astroid<3 and >=2.2.0

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies
WARNING: You are using pip version 20.3.3; however, version 21.0 is available.
You should consider upgrading via the '/home/zuul/src/opendev.org/openstack/freezer/.tox/pep8/bin/python -m pip install --upgrade pip' command.
================================ log end ===============================

Change-Id: I898d03d716ebc6c6285c4589cd30f7875b0c51d2
2021-01-28 21:36:03 -08:00
wu.chunyang 68aea5698c Fix l-c testing for ubuntu focal
As per victoria cycle testing runtime and community goal[1]
we need to migrate upstream CI/CD to Ubuntu Focal(20.04).

- Bump the lower constraints for required deps which added python3.8 support
in their later version.

Story: #2007865
Task: #40206

[1] https://governance.openstack.org/tc/goals/selected/victoria/migrate-ci-cd-jobs-to-ubuntu-focal.html

Change-Id: I1888e2c4e7bdcad425e8b49c8a03fa8b2f9fba7d
2020-09-18 22:18:09 +08:00
Caihui cad1afc828 Update oslo.config version
When import the old version, the unuseful infomation is printed.
Update to new version.

Change-Id: If151c7a3ed4e68af84933c4a6b4e162a1b78dc70
2020-07-17 23:01:36 -07:00
Andreas Jaeger f7cd7dbe35 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.

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: I502e67164a3639e2df51edbd239f2b2bab474924
2020-05-30 16:47:27 +02:00
jacky06 eaab8694d0 Update to hacking 3.0
Update to newest hacking version, it has only minimal changes and full
support for Python 3.

Python modules related to coding style checks (listed in blacklist.txt in
openstack/requirements repo) are dropped from lower-constraints.txt
as they are not actually used in tests (other than pep8).

Change-Id: Id4b5f045563640f4b9c73ecafd4ebf8d3ff2c269
2020-05-11 23:31:15 +08:00
Zuul 851a17173b Merge "tox: Keeping going with docs" 2020-04-11 03:03:14 +00:00
jacky06 6aa9de447e Use unittest.mock instead of third party mock
Now that we no longer support py27, we can use the standard library
unittest.mock module instead of the third party mock lib.

Change-Id: Ibb42643faf23bba4a91019b87e7d23e8b36ce1a7
2020-04-08 22:54:37 +08:00
jacky06 815b66364b tox: Keeping going with docs
Sphinx 1.8 introduced [1] the '--keep-going' argument which, as its name
suggests, keeps the build running when it encounters non-fatal errors.
This is exceptionally useful in avoiding a continuous edit-build loop
when undertaking large doc reworks where multiple errors may be
introduced.

[1] https://github.com/sphinx-doc/sphinx/commit/e3483e9b045

Change-Id: I18032bd40489c4b1c511713b0f1c5bb1aca7c1d2
2020-03-30 12:03:27 +08:00
caihui 02e435f0ed Remove six usage from freezer package
We don't support Python 2 anymore so we don't need this
compatibility library.

This patch remove six usage.

Change-Id: I661e9cdaf33e89bdb905d1f34a001f3853c4c366
2020-01-22 03:52:35 -08:00
pengyuesheng 65a985e8c3 Bump the openstackdocstheme extension to 1.20
Some options are now automatically configured by the version 1.20:
- project
- html_last_updated_fmt
- latex_engine
- latex_elements
- version
- release.

Change-Id: I5084068694f867b725e684ceb4e3933974aaa9fa
2019-08-02 14:51:37 +08:00
chenke 8562e9e8d5 Make the low-constraints job work and modify coverage version
Now this style can't make low-constraints job work, because the pip
will constrain a library to the first item it encounters. Then the
version defined in the uppper file will be installed here.

The solution is to put the upper file in the deps.

Example:
When running low-constraints job:
According to the low-constraints file:
Babel==2.5.3[1] should be installed
Actually the log[2] shows that Babel===2.7.0[3] was installed.

Reference Link:
[1]. https://github.com/openstack/freezer/blob/master/lower-constraints.txt#L6
[2]. http://logs.openstack.org/85/657185/2/check/openstack-tox-lower-constraints/f9d0a50/job-output.txt.gz
[3]. https://releases.openstack.org/constraints/upper/master
[4]. https://review.opendev.org/#/c/601188
[5]. http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html

The coverage version need >=4.5.0 to support py36:
[1]. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=879269
[2]. https://travis-ci.org/agx/git-buildpackage/jobs/534117241

Change-Id: Idf278f4a7aca4470f5996e5166e4724259ef944b
2019-06-19 13:29:46 +00:00
Cai Hui 8c5013f17d Update python-freezerclinet version to 2.0.0
The new version is merged some new features. such as:
 Remove "--os-identity-api-version" argument
 Add backup create client support for freezer
 Add argument: "--os-backup-api-version"
 Add freezerclient.client module in order to use api directly
 ....

Change-Id: Ifa0e62be18dca4830e73ecc6705f832d99846b56
2018-11-07 07:09:24 +00:00
Zuul 3dbe8d8bb7 Merge "Adds doc8 check to pep8" 2018-08-20 10:48:02 +00:00
Vu Cong Tuan db99a4ab79 Switch to stestr
According to Openstack summit session [1],
stestr is 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.openstack.org/p/YVR-python-pti

Change-Id: I0ec7bc7926e57b243e38b2c696815e648d0b3f61
2018-07-17 16:48:26 +07:00
Dao Cong Tien 401256a6e5 Adds doc8 check to pep8
This patch adds doc8 check for .rst files to pep8.
Files that fail doc8 check are also fixed.

Ignores D000, D001 of doc8 check. This requires lot of changes
and should be done in a separated patch.

Change-Id: I7d021e6fee3e12feff7c219e09c545da5274c354
2018-07-12 20:13:25 +07:00
Matthew Thode 7c16877195
switch to cryptography
Fernet could not be used as it is not a streaming cipher.
CFB mode does not require padding, so removed padding code.

Depends-On: https://review.openstack.org/c/575199/
Change-Id: I14f58d9d473c20ce7863baa0b2adadbfda268b7a
2018-06-19 10:54:05 -05:00
Doug Hellmann 10814141a4
fix lower constraints
Set all of the lower constraints to match the lower bounds from the
requirements files.

Change-Id: I2a6748dc2cba849c0ffe0de4c4935242ab6edc0e
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-06-19 10:51:49 -05:00
Doug Hellmann f420d4f35e 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: Ic5f68cd606f5dd17e4cca2facf3141960180be26
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-22 12:28:40 -04:00