Commit Graph

56 Commits

Author SHA1 Message Date
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
zhoulinhui b9ac52b1cc Fix hacking min version to 3.0.1
flake8 new release 3.8.0 added new checks and gate pep8
job start failing. hacking 3.0.1 fix the pinning of flake8 to
avoid bringing in a new version with new checks.

Though it is fixed in latest hacking but 2.0 and 3.0 has cap for
flake8 as <4.0.0 which mean flake8 new version 3.9.0 can also
break the pep8 job if new check are added.

To avoid similar gate break in future, we need to bump the hacking min
version.

- http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014828.html

Change-Id: Id4637ba69793f4c93c90880db9c62d707597dab6
2020-09-30 02:44:30 +00:00
Caihui a4e758eb34 Remove packages version for python2.x
Change-Id: Ic4059fceb31fa3c98a7a3f293d555ae214c146d2
2020-06-24 00:02:37 -07: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
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
caihui e5a4d0cf75 Upgrade pylint to a new version that works with python3.7
1.The pylint & astroid verison should be specified for python3.7
pylint is upgrade 2.3.1
astroid is upgrade 2.2.0

2.Some rules are added to the ignore list in .pylintrc

Change-Id: Id5f91aa5dd22b1364fe35143b6c96e834284d252
2019-10-30 22:41:02 -04: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
Nguyen Hai 29a4e902aa Fix openstack-tox-docs failure
Change-Id: I01035d5cb04b5908571d1d5e177176e9d8f24091
2018-09-04 21:04:06 +09:00
Doug Hellmann 3e1e0bd7ed update pylint to 1.9.2
The older version of pylint being used does not work correctly under
python 3. In order to be able to update the pylint job to run under
python 3, we need to update the tool.

This patch updates to the latest version at this time. It also updates
and pins astroid, which was previously capped. Using a pin instead of
a cap should let us avoid issues with new releases while being
specific about which version to actually use.

The import-error linter rule is disabled because it appears in
Windows-related code that looks for modules we don't expect to be able
to find on the CI system under Linux.

The non-iterator-returned rule is disabled because it is erroring on a
class that doesn't make sense (freezer.utils.utils.ReSizeStream does
appear to honor the iterator protocol). Further investigation is
probably warranted on this one.

The public entry point for multiprocessing.SimpleQueue is the
top-level multiprocessing module, not multiprocessing.queues. The
linter correctly caught this error because the ctx argument was not
being passed to the class. The fix is to use the top-level entry point
to access the class.

basestring is no longer defined under python 3. The fix is to use
six.string_types, which correctly sets the alias to str or
basestring. By using the library, we can avoid having to tell the
linter to ignore the local customization.

The linter also caught a base raise, without an exception specified
and not in the context of an exception handler. I added an exception
using the pattern from the one on an earlier line.

Change-Id: I349de35c9ee52e2946e661f777308444b61ba4e0
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
Co-Authored-By: Nguyen Hai <nguyentrihai93@gmail.com>
2018-09-03 13:10:55 +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
OpenStack Proposal Bot 8a63a0016c Updated from global requirements
Change-Id: I06e10d0064f3a7c83a90ddb87e2d382e3e7e8c2d
2018-03-15 06:53:37 +00:00
OpenStack Proposal Bot 2913697997 Updated from global requirements
Change-Id: Ia87195b996d73e9ffed9c53de06e2bba4c2ed60f
2018-03-13 06:51:13 +00:00
OpenStack Proposal Bot 24499c1505 Updated from global requirements
Change-Id: I4e1b616e47279faeb16fbb26bf1bb6d854f2251e
2018-03-10 13:11:20 +00:00
OpenStack Proposal Bot 40df80255e Updated from global requirements
Change-Id: I10b3f825f37d2105c6da3b13a84db7273ff7dc1f
2018-01-24 00:52:25 +00:00
OpenStack Proposal Bot 7f719955a1 Updated from global requirements
Change-Id: I2adfaeaf2b272abcb94b67249064a4bdf9e0eda7
2018-01-17 20:31:47 +00:00
OpenStack Proposal Bot 2d2d77dbd7 Updated from global requirements
Change-Id: I43494d3c636ba741459f77b60733b5b360848ecc
2017-12-03 02:02:41 +00:00
zhangyangyang a73b13f32b Cleanup test-requirements
python-subunit is not used directly anywhere
and it is dependency of both testrepository
and os-testr
(probably was used by some tox wrapper script before)

Change-Id: I02663d8345befe44ba6aeba03ca502c185f08fbc
2017-09-21 14:46:02 +08:00
OpenStack Proposal Bot e312a3ac04 Updated from global requirements
Change-Id: I0c056424110882d25be0bbb9ac40d483830f4298
2017-09-13 23:56:15 +00:00
OpenStack Proposal Bot 0a44ad9f39 Updated from global requirements
Change-Id: Ic43220a988505e0a7a31a4016f5665e00185ca1d
2017-08-24 11:37:19 +00:00
OpenStack Proposal Bot b5e1af0286 Updated from global requirements
Change-Id: I9d8675a4c75b791cfe24115af41abfdadb5f4b2d
2017-07-28 04:13:49 +00:00
lingyongxu b6d2ed0996 Switch from oslosphinx to openstackdocstheme
To use openstackdocstheme 1.11.0 properly, this patch fixes
some settings according to follow.

Change-Id: I82bd3f829fdbb8893c3adfa967e98be1820d9947
2017-07-20 14:50:58 +00:00
OpenStack Proposal Bot 90941e0235 Updated from global requirements
Change-Id: I55ab1f50ef49b8253cae8eb202475ea011bd3d4f
2017-07-13 19:29:27 +00:00
OpenStack Proposal Bot 2ca7cd5682 Updated from global requirements
Change-Id: I4208056ab454e07eb12ee9dd1c5d46b8beb854a1
2017-06-27 12:09:27 +00:00
OpenStack Proposal Bot b68e584622 Updated from global requirements
Change-Id: Icc9b6e2bbcc49e558ba911acf7f5e53532a7f727
2017-06-08 05:59:11 +00:00
OpenStack Proposal Bot cf7a5a63af Updated from global requirements
Change-Id: Ia75553be67e1074562e94beded9b619a2b0a5b03
2017-06-07 17:22:12 +00:00
Saad Zaher f609f3b9ac Fix pylint checks
Change-Id: I784ee29952fc4cc1f605b60023a0c7ad30aef2e2
Partial-Bug: #1696455
2017-06-07 16:15:01 +01:00
OpenStack Proposal Bot 8e63c5e841 Updated from global requirements
Change-Id: Id2ff825d505712c13ab1d3af22aa76d205bc8d7a
2017-05-17 03:47:16 +00:00
OpenStack Proposal Bot 334ac22519 Updated from global requirements
Change-Id: I9d5aa407a1dc4c2384cd8fae63de2f5b3cf3b789
2017-05-15 16:45:23 +00:00
OpenStack Proposal Bot 8e1de4d9a8 Updated from global requirements
Change-Id: I3faa15f8dbdb948c38508b4f493f2076dac03f12
2017-05-04 13:20:46 +00:00
Saad Zaher a8ca5cb86b Move install-guide to freezer repo
* Added install-guide to freezer repo
   * Remove install-guide from freezer-api

Change-Id: I122f2801e6853a2b3c3bc65408b3cec8fe1b555d
2017-04-26 17:41:47 +00:00
Vitaliy d5eba8791a Follow up to I3dedb1137994cbe3974c6878aa8d4ebcb672f95d
Drop unused requirements.

Change-Id: I81f995515945efd4efa3d199d7e0198135036ec7
2017-04-05 08:56:11 +00:00
Vitaliy d78ac0faac Change requirements files
Remove oslo.i18n as unused.
Move astroid and python-openstackclient to test-requirements.

Change-Id: I3dedb1137994cbe3974c6878aa8d4ebcb672f95d
2017-04-03 22:51:31 +00:00
Gleb Stepanov b0c64f78cd Backup/Restore nova tenant
Implement nova tenant backup and restore to swift, local and ssh storage.
Add unit tests. Add new CLI option '--project-id' to perform tenant
backup/restore. Add new option - '--backup-media' as well.

Partially implements bp: tenant-backup

Change-Id: Ia8e4412dfaf0c24364db692de78c27cd0e3b3c4c
2017-03-22 16:40:59 +04:00
Jenkins 173b3bf460 Merge "Depends on tempest (tempest-lib is deprecated)" 2017-03-10 14:16:35 +00:00
OpenStack Proposal Bot 6772bdbd3b Updated from global requirements
Change-Id: I9e3198bc843886f267dbb39b8d1dc4c7be4894df
2017-03-03 22:48:35 +00:00
ricolin 3f1e0632aa Update test requirement
Since pbr already landed and the old version of hacking seems not
work very well with pbr>=2, we should update it to match global
requirement.
Partial-Bug: #1668848

Change-Id: Iecd2430618ecc81f669ee79c478a38a2fab85506
2017-03-02 17:15:45 +08:00
Luigi Toscano 31fac7bd15 Depends on tempest (tempest-lib is deprecated)
The code itself worked with tempest.lib from the start, so no
code changes are needed.

Change-Id: I6ce8044f68e2b8d044efc1ae0904978d44ff0c74
2017-02-24 10:17:52 +01:00
OpenStack Proposal Bot 924562aa5d Updated from global requirements
Change-Id: I080354c351deeea0401e8e849de6868e5ccb6ca4
2017-02-15 20:44:39 +00:00
OpenStack Proposal Bot 2cd6ee0c50 Updated from global requirements
Change-Id: I21080f96d3f451c7f6f33cfd0ddd5039ab656512
2016-11-02 15:31:11 +00:00
OpenStack Proposal Bot 12148b8176 Updated from global requirements
Change-Id: I6715b80b0a0267ea0802067b22509e37c0e54a30
2016-10-22 01:18:36 +00:00
Saad Zaher 8c08499940 Added release notes for freezer-agent
Change-Id: I0618e3b3922bd97e9846c24100913891cc4b349b
Implements: blueprint maintain-releasenote
2016-10-21 09:59:15 +00:00
OpenStack Proposal Bot 65e38edb27 Updated from global requirements
Change-Id: I22aa368eaecb209ea20e8258e83e400e5e821dfb
2016-10-06 16:54:32 +00:00
Swapnil Kulkarni (coolsvap) 5c35892427 Remove discover from test-requirements
It's only needed for python < 2.7 which is not supported

Change-Id: I65e07055a215a00d675b439535f3554ac9007a98
2016-07-21 10:00:08 +00:00
OpenStack Proposal Bot 2da929dd1f Updated from global requirements
Change-Id: I095534fe187d9f6581b1fba87209daf2170cc795
2016-07-04 17:21:52 +00:00
OpenStack Proposal Bot 8fd790837c Updated from global requirements
Change-Id: I8148b9962ce1cc5538a5862cb7e1536bb1029e12
2016-04-18 16:29:21 +00:00
OpenStack Proposal Bot fd5d6ba3e9 Updated from global requirements
Change-Id: I6d4f957c0a7dd4f7f37ac247dc565199dbd72838
2016-03-28 19:26:34 +00:00
Deklan Dieterly 219fb2b4d7 Start to introduce tempest tests.
See if gate job executes first test.

Change-Id: Ife68257a4c281299cedc4ed79db50ca5290375c5
2016-03-21 13:52:41 -06:00
Daniel Mellado 5956339cca Start using oslosphinx theme for docs
Closes-Bug: #1542061
Change-Id: I99edd066e6860298a3e7bdc26b245eae6ec68d96
2016-02-09 16:18:18 +01:00