Commit Graph

102 Commits

Author SHA1 Message Date
Takashi Kajinami b488f42332 Bump hacking
hacking 3.1.x is too old.

Change-Id: Ic5131276ac1d1a1a959d0a5b16398ae12fae0c18
2024-01-27 23:57:00 +09:00
Stephen Finucane b1c45a720e Use pre-commit for 'pep8' tox target
This avoids some duplication.

Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: Id3fb0770ce128b34777418da3d33cc63a61c06ea
2023-09-27 15:39:32 +00:00
Goutham Pacha Ravi c0ee884861 Update requirements
pip 20.3 brings in a strict dependency resolver which
is enabled by default. This causes our lower-constraints
tests to fail, because the requirement files were out
of date from reality - they had conflicting requirements
which previous versions of pip were ignoring. Let's catch
up package versions to newer ones that are supported in
the python runtimes that the Wallaby release will be
deployed to.

[1] http://pyfound.blogspot.com/2020/11/pip-20-3-new-resolver.html
[2] https://pip.pypa.io/en/stable/user_guide/#changes-to-the-pip-dependency-resolver-in-20-3-2020

Change-Id: I5a31b561654aa368bb85a56f4dd38276cfdbb91a
Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
2020-12-10 19:48:15 -08:00
wu.shiming e30c8deb03 requirements: Drop os-testr
We've switched to stestr.

Change-Id: Ic27c1766db7e2b58e3e309db8fd5fa14a0151409
2020-09-22 21:42:44 +00:00
Ghanshyam Mann ffd3f1e760 [goal] Migrate tox based testing to ubuntu focal
As per victoria cycle testing runtime and community goal[1]
we need to migrate upstream CI/CD to Ubuntu Focal(20.04).

Fixing:
- bug#1886298
Bump the lower constraints for required deps which added python3.8 support
in their later version.

Story: #2007865
Task: #40194
Depends-On: https://review.opendev.org/#/c/738328/

Closes-Bug: #1886298

Change-Id: Ib0f84e8c3815be48bca0ae8d4fe15a56b5256c20
2020-09-09 13:19:39 -05:00
Ghanshyam Mann 4a0ae20532 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: Ifd7cc56194443bc4d021877abfeb75c8924dd7c7
2020-05-12 19:28:10 -05:00
Goutham Pacha Ravi 0a499674d5 Drop install_command usage in tox
Use the default value provided by tox:

https://tox.readthedocs.io/en/latest/config.html#conf-install_command

See discussion on the openstack-discuss ML [1]
for the complete context.

To get this fix in, we'll need to raise
a few requirements:

- eventlet because of the ssl issues with python3.6 in
  older packages
  (https://github.com/eventlet/eventlet/issues/371)
- oslo.messaging to fix the error "ACCESS_REFUSED - Login
  was refused using authentication mechanism AMQPLAIN.".
- psycopg2-binary since 2.6.2 is blacklisted
- oslo.service was bumped to 2.1.0, to pick up its support
  for eventlet>=0.22
- oslo.utils was bumped to match the lower constraint from
  oslo.service at 2.1.0

[1] http://lists.openstack.org/pipermail/openstack-discuss/2020-April/014237.html

Change-Id: I6344f44fb955d631a4f0a13fa53ecc19826c7ea6
Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
2020-04-23 08:28:50 +00:00
Goutham Pacha Ravi 598223985a Use unittest.mock instead of third party lib
mock was adopted into standard python
in version 3.3 [1]. Since manila no longer
supports python2.7, we can use the inbuilt
mock package rather than the third party
lib.

Fix some issues with imports that weren't
following our import conventions of grouping
imports [3]

Add a hacking test to ensure we don't regress
on this.

[1] https://docs.python.org/3/library/unittest.mock.html
[2] http://lists.openstack.org/pipermail/openstack-discuss/2020-March/013281.html
[3] https://docs.openstack.org/hacking/latest/user/hacking.html#imports

Co-Authored-By: Sean McGinnis <sean.mcginnis@gmail.com>
Change-Id: If857a49fbf526983e712282a25d7e8bef5093533
Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
2020-04-17 16:24:27 -07:00
Andreas Jaeger 3ac1870e85 Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Update local hacking checks for new flake8.

Many tests are failing, so disable all that fail and fix most of them in a
followup.

Change-Id: I34a767406ed9110fc6e0cf5015b88cf1e7f43801
2020-04-01 09:20:58 +02:00
Mohammed Naser 3e82f118b7 Use psycopg2-binary for test-requirements
In order to run PostgreSQL tests, we need to have the PostgreSQL
dependency available on the system.  We currently use the dependency
which forces building the Python package from source.  That makes
running the tests locally non-trivial and requiring the installation
of packages locally.

This patch moves that dependency to the binary one so that we can
simply deploy a binary artifact during CI, which simplifies the
abilitiy to run those tests.

Change-Id: I33369712370b86feca843f118f35063d0993adcb
2020-02-04 10:57:45 +01:00
OpenStack Proposal Bot 627efa714e Updated from global requirements
Change-Id: I64f3bc5686b5ab4f81b6462da60febd66fbf3499
2018-03-23 01:06:24 +00:00
junboli a60daf4f60 Follow the new PTI for document build
For compliance with the Project Testing Interface as
described in [1]:
[1] https://governance.openstack.org/tc/reference/project-testing-interface.html
For more detials information, please refer to [2]:
[2] http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html

Change-Id: I1fe5352e8e4a7703bd9908e7221f04110163d6fb
2018-01-17 09:53:00 +00:00
OpenStack Proposal Bot f72d8f8351 Updated from global requirements
Change-Id: Ic9a52f8a984482dd189e08b902b6d6cbf344a1bf
2018-01-16 12:32:41 +00:00
lijunbo e8bca58887 Use stestr for coverage
Change [1] restored .testr.conf since it was needed for the manila
coverage job.

Modify script used by the coverage job to invoke stestr rather than
setup.py with testr so that this job no longer requires .testr.conf
so remove the dotfile and update .gitignore.
TrivialFix

[1] I451e383ed654d00a5a017cb28521c47566911f33

Change-Id: Ibf549220303395744380f79993fbfcf04b2ed5b7
Co-Authored-By: Tom Barron <tpb@dyncloud.net>
2018-01-14 13:26:53 +08:00
OpenStack Proposal Bot ca1b09967d Updated from global requirements
Change-Id: Id7bc6041e874a6c7c065053f4b8db9fc4ee0f3bc
2017-11-16 11:09:16 +00:00
caoyuan 8ec49f0172 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: I711386bae475904ca79555cccb2b82e5021208bc
2017-09-25 19:31:20 +08:00
OpenStack Proposal Bot 8ba06fcf98 Updated from global requirements
Change-Id: I86e4357b31980ae3f0f318bdd8ba1b1cdf661298
2017-09-20 16:16:11 +00:00
OpenStack Proposal Bot 3e49465e80 Updated from global requirements
Change-Id: I485e2c4a17e0c9aac72b2f0638da1a8380ca390d
2017-09-13 12:52:45 +00:00
Tom Barron 8da4333c7f doc migration: openstackdocstheme completion
Finish the transition to the openstackdocs theme in accord
with the OpenStack manuals project migration spec [1].

Also remove the already broken autodoc build since
it generates warnings (which we treat as errors) with
the new theme setup.

[1] https://specs.openstack.org/openstack/docs-specs/specs/pike/os-manuals-migration.html

Partial-Bug: #1706181
Needed-By: Ieea33262101a1d2459492c1c8aaac5fe042279f6
Depends-On: Ia750cb049c0f53a234ea70ce1f2bbbb7a2aa9454

Change-Id: Ifc80fc56648cef74c85464321d1850e8c68449a0
2017-08-24 09:15:18 -04:00
OpenStack Proposal Bot f68cd21d55 Updated from global requirements
Change-Id: I8cdf0bf9ced02626eb576a51369d490a9b55f0c8
2017-08-18 11:32:18 +00:00
OpenStack Proposal Bot 7555048bbf Updated from global requirements
Change-Id: I6347c5b0df41d9d69854d67cd5cbf90c39ae4f8e
2017-07-27 20:23:36 +00:00
chenxing 082159cc54 Update the documentation link for doc migration
Change-Id: I0b4e59c9e2ad0375cdb6aae5369a7b43978c3d69
2017-07-14 07:27:16 +00:00
OpenStack Proposal Bot eac3ff9342 Updated from global requirements
Change-Id: Idf5ac5a076fdd0a41f0c0a6cc230fa639e5bc02e
2017-06-27 17:44:57 +00:00
OpenStack Proposal Bot 29dae7ed0f Updated from global requirements
Change-Id: I663eb14b3ed882e9007fd9d17b9e782f91636bcf
2017-06-06 23:18:33 +00:00
OpenStack Proposal Bot 09957926b1 Updated from global requirements
Change-Id: Iaf42a88a0a538fc9d6486c2ab28f3380a09c22b9
2017-05-18 21:32:08 +00:00
OpenStack Proposal Bot 1a489e8a7b Updated from global requirements
Change-Id: Iddbf445445791275823c5da128858c550b7d7204
2017-05-15 00:46:17 +00:00
OpenStack Proposal Bot 8c514bba76 Updated from global requirements
Change-Id: I75cd2fa18a09e141e5341727f69cb9ee7f806b0a
2017-03-03 22:51:04 +00:00
vponomaryov e79cf7bf33 Fix 3 CI breakages
1) Increase default RAM value in manila flavor to be able
   to use manila service image with new 64bit architecture.
2) Fix test requirement on "hacking" lib to avoid pep8 breakage.
3) Fix unstable maprfs driver unit test that depends on local hostnames
   and IPs.

Change-Id: Ib36113e33e3616984be5864fbaf73c1fc5d7a315
Closes-Bug: #1669412
Closes-Bug: #1659162
2017-03-02 18:22:40 +02:00
Danny Al-Gaaf a8ec3317be doc: verify all rst files
Make use of doc8 to verify all rst files which are not
autogenerated for errors and fail if there are any issues
found. The doc8 checks are now part of the tox 'docs'
environment and ran automatically. Checks can also be called
direcly via 'tox -e docs'.

Fix all issues found by doc8.

Closes-Bug: #1664841

Change-Id: I9215524d35646de7485504e4c5ff86fd91a1d09f
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2017-02-15 07:07:42 +01:00
OpenStack Proposal Bot f87af5d6d3 Updated from global requirements
Change-Id: I0509fa4c31457246a98de445a6de0b382d82a678
2017-02-11 02:57:10 +00:00
OpenStack Proposal Bot 78844fd038 Updated from global requirements
Change-Id: I67c5dfed6a869d77ab4c9857a66953128b0529e9
2016-12-23 03:12:51 +00:00
OpenStack Proposal Bot e2a4151df0 Updated from global requirements
Change-Id: I535fa12ff2b29dacc1ca75bd81065c34cb9f1210
2016-11-15 19:51:18 +00:00
Daniel Mellado 8d8371de60 Add testscenario to test-requirements
As Manila bundling oslo.db is not installing testscenario, all python
gates are failing when trying to import it. This commit fixes it so the
gates won't be blocked.

This is a workaround of oslo.db not having testscenarios on its
requirements file.

Closes-Bug: #1640774

Change-Id: I660322666565408f6015da7aa82723a842d62a2d
2016-11-10 14:43:16 +00:00
OpenStack Proposal Bot 08285a764d Updated from global requirements
Change-Id: Idd8b0051f1b4f0543a5b7f8f54d24b5e0e25e199
2016-11-02 21:54:33 +00:00
OpenStack Proposal Bot 68cb027873 Updated from global requirements
Change-Id: Ida1ac4b9102c2032d6c44e50897f869674ede2d6
2016-10-27 12:15:27 +00:00
OpenStack Proposal Bot 5c3132ef4c Updated from global requirements
Change-Id: Ibdf857736a229328fcbcd3daed54f3f5ae7faef6
2016-10-06 03:27:18 +00:00
OpenStack Proposal Bot 28577f72e2 Updated from global requirements
Change-Id: Ie972e5a5f18b669072de329d47d536825bf4d278
2016-09-29 13:28:41 +00:00
OpenStack Proposal Bot 15a7538e87 Updated from global requirements
Change-Id: I9ded29337245774fad055854cee7fa11e61640cf
2016-09-27 10:01:04 +00:00
OpenStack Proposal Bot b9c15c7f7e Updated from global requirements
Change-Id: Id3abd59bbf64f3fdd3602c6c789082c449dc1a53
2016-09-01 09:16:11 +00:00
OpenStack Proposal Bot e562d2145e Updated from global requirements
Change-Id: I09c7fca6f9e9e48fa85e161faf7fce2300669438
2016-08-27 00:35:25 +00:00
OpenStack Proposal Bot 1e8e33f521 Updated from global requirements
Change-Id: Ieb20be0f6d05dd43ada90deaee647bd793f823bf
2016-08-10 11:34:27 +00:00
Jenkins 6c6d721cf1 Merge "Migrate API reference into tree" 2016-07-26 14:46:46 +00:00
Daniel Gonzalez 3e86e3deac Migrate API reference into tree
The API Documentation team has requires [1] that
projects maintain their api-reference in-tree and
build it to the developer.openstack.org website.

This version of the API reference uses os-api-ref
and compiles API documentation close to that of
the OpenStack compute service (nova).

Co-Authored-By: Goutham Pacha Ravi <gouthamr@netapp.com>

[0] http://lists.openstack.org/pipermail/openstack-dev/2016-May/093765.html

Implements: bp move-manila-api-reference-in-tree
Change-Id: I67bb3354162d6e0e00fa2788edde864cc14920ee
2016-07-25 15:55:00 +00:00
OpenStack Proposal Bot 4d4104c11f Updated from global requirements
Change-Id: Id98cb1598ca996523ed0b27017a4b46b2c872a6c
2016-07-22 04:00:07 +00:00
OpenStack Proposal Bot 76251ee893 Updated from global requirements
Change-Id: Ice99b533ee4b0e8ef7ed526112f0d694078087f0
2016-06-24 03:12:38 +00:00
OpenStack Proposal Bot e9dfa37a0a Updated from global requirements
Change-Id: I91a2060a6634d6eebd331c29ed3f64a71a169121
2016-06-04 02:38:04 +00:00
OpenStack Proposal Bot db2a5a7466 Updated from global requirements
Change-Id: I7ecb8f5af915803e9fa53b0dcc6dd76ce8ebd035
2016-05-30 20:41:21 +00:00
Goutham Pacha Ravi 8de817d16e Developer Reference: Adopt the openstackdocstheme
To allow for our developer reference to be consistent with
the rest of the openstack documentation, we need to import
and render this theme on our developer reference.

This gives users a consistent experience as they may
be acquainted with the rest of the OpenStack documentation
(Admin Guide, User Guide, API Guide etc.)
before perusing the Manila developer reference.

It also provides our devref the "log-a-bug" feature so
readers may bring any mis-information to our attention.

This patch is part of a series of commits to improve
in-tree documentation.

Change-Id: I0e4686a273c5bf45c1d57764cd4c312870b06d6e
Partially-implements: bp improve-manila-developer-docs
2016-05-05 17:15:41 +00:00
OpenStack Proposal Bot b711e9e6d2 Updated from global requirements
Change-Id: Iafa1cbf4493b9f0d2f05377fe58b7d761c22b227
2016-04-30 18:04:19 +00:00
OpenStack Proposal Bot 08775106ce Updated from global requirements
Change-Id: Ie53bedc08522994e4dcd0baba4a3b1a7cf9faff2
2016-04-08 11:44:01 +00:00