Commit Graph

265 Commits

Author SHA1 Message Date
Takashi Kajinami 7e7465140f Bump hacking
hacking 3.0.x is too old.

Change-Id: I970dcf9673ef75c719714f565bd4df2eb47c0989
2024-01-27 19:06:09 +09:00
Emma Foley 8434d14e9f Make tox.ini tox 4.0 compatible
* passenv fixed as space separated list is not allowed any more
* doc target uses requirements from requirements.txt as well as
  doc/requirements
* skipsdist is not supported

Change-Id: Ib60d63499fd021d9ec25357d20685573b18ade3e
2023-01-04 18:22:47 +00:00
Yadnesh Kulkarni 0b6abba5d3 Add debug to tox environment
The oslotest package distributes a shell file that may be used to assist
in debugging python code. The shell file uses testtools, and supports
debugging with pdb.

To enable debugging, run tox with the debug environment. Below are the
following ways to run it.

 * tox -e debug module
 * tox -e debug module.test_class
 * tox -e debug module.test_class.test_method

Signed-off-by: Yadnesh Kulkarni <ykulkarn@redhat.com>
Change-Id: I7015ab52ba3f5075b5e06992bb8d72f52104a24e
2022-07-04 10:18:09 +00:00
Zuul b4a436578d Merge "Drop lower-constraints.txt and its testing" 2022-06-27 11:59:04 +00:00
Takashi Kajinami 0746992259 Update python testing as per zed cycle testing runtime
In Zed cycle, we have dropped the python 3.6/3.7[1] testing
and its support. Add release notes and update the python
classifier for the same.

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

Co-Authored-By: Ghanshyam Mann <gmann@ghanshyammann.com>
Change-Id: Ieec37d300bca0c78f9420657066b1c60a64911e9
2022-06-08 14:44:51 +00:00
Ghanshyam Mann 184161dc01 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: I817e5112eb57df2e6192d3cfa681b7768832c77a
2022-05-01 13:13:12 -05:00
Matthias Runge 7a994d0719 Update requirements and lower_constraints
Also add the lower-constraints test to a more prominent place
in tox.

Change-Id: Ida5a27ef2af8536b91df23eb9af9ed4bdedcce4b
2021-10-12 10:20:19 +02:00
wu.shiming 4c6688ff81 Changed minversion in tox to 3.18.0
The patch bumps min version of tox to 3.18.0 in order to
replace tox's whitelist_externals by allowlist_externals option:
https://github.com/tox-dev/tox/blob/master/docs/changelog.rst#v3180-2020-07-23

Change-Id: I89ec8e5ac9578c0fa6ec8612d20753e9dbb45aaa
2021-05-31 09:35:33 +08:00
Matthias Runge 26f5ceca03 Use tox constraints instead of upper constraints
Drop cap on tenacity, since it is already capped
by upper constraints.

Make grenade jobs non-voting, until they have been fixed.

Depends-on: https://review.opendev.org/c/openstack/telemetry-tempest-plugin/+/787739

Change-Id: Ie21f8db89fc2045fd6cc6b1b7a5886b7e87e08e2
2021-04-26 06:56:28 +00:00
likui 55c7f31274 Update requirements URLs in tox config
Update the URL to the upper-constraints file to point to the redirect
rule on releases.openstack.org

Change-Id: If5ce1830aab844fa34ec375e474fa1651693cad9
2021-01-14 07:41:42 +00:00
likui 3cb72163aa Reuse the docs deps to benefit from constraints
Tox trying to install latest versions for building releasenotes,
which may not be supported by stable and lower branches,
so should be restricted by respective version's upper-constraints.txt

Change-Id: If0b3ecffaccff9512ec43b853a8a6eaa8088251e
2020-11-17 19:57:27 +08:00
Zuul 861b05ec44 Merge "Bump hacking min version to 3.0.1" 2020-11-02 09:19:48 +00:00
likui bbbab444f5 Bump hacking min version to 3.0.1
hacking 3.0.1 fix the pinning of flake8 to avoid bringing in a new
version with new checks.

bumping the min version for hacking so that any older hacking versions
which auto adopt the new checks are not used.

Change-Id: I8189569f3f9f770bf623fabbdee2ef5dc0554d84
2020-10-28 15:48:38 +08:00
Matthias Runge 75eaf77099 Drop py37 from tox
For Wallaby cycle, python runtimes are python 3.6 and python 3.8,
see https://governance.openstack.org/tc/reference/runtimes/wallaby.html

Change-Id: I70d33a60373ed29af4dee23ec3ee6a7969194cbf
2020-10-14 08:34:52 +02:00
Zuul 2f093abf16 Merge "add py38 in tox.ini" 2020-10-13 15:57:39 +00:00
Zuul bf22a61ab9 Merge "Dep's should be restricted by upper-constraints" 2020-10-10 02:31:12 +00:00
likui cb074d24cf add py38 in tox.ini
in 'victoria' cycle, we should test py38 by default.

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

Change-Id: I27f71b5ac069aff3b0a879171ff40cc375788368
2020-10-09 18:10:27 +08:00
wu.shiming a748b173a0 Dep's should be restricted by upper-constraints
Tox trying to install latest versions for building docs which may
not be supported by stable and lower branches, so should be
restricted by respective version's upper-constraints.txt

Change-Id: Ica00ee97b12cc3074fbc6394923ed82309fe7466
2020-10-09 10:48:00 +08:00
kuangcx aa48e2b3e8 Remove install unnecessary packages
The docs  requirements migrated to doc/requirements.txt
we need not install things from requirements.txt.

Change-Id: Ia08415406b586145bb7c0d6b2fac7c5527032ee9
2020-09-15 10:51:20 +08:00
Hervé Beraud abba67bf54 Refresh tox
Add ignore_basepython_conflict [1], this will fix tox warnings about
python versions.
Bump tox minversion to 3.1.0 to ensure that ignore_basepython_conflict
is supported.
Use the default install_commandi [2].

[1] https://tox.readthedocs.io/en/latest/config.html#conf-ignore_basepython_conflict
[2] https://tox.readthedocs.io/en/latest/config.html#conf-install_command

Change-Id: Ic76f25bcd2d70525d02c565449da753c4ba58bc3
2020-06-09 11:43:40 +02:00
Andreas Jaeger 1a6a003242 Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Fix problems found.

Update local hacking checks for new flake8.

Change-Id: I129bc38e6663836e12610dd50a20c74dbc79891c
2020-03-31 17:39:51 +02:00
Ghanshyam Mann c639578217 [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

ceilometer is ready with python 3 and ok to drop the
python 2.7 support.

Complete discussion & schedule can be found in
- http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html
- https://etherpad.openstack.org/p/drop-python2-support

Ussuri Communtiy-wide goal:
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Depends-On: https://review.opendev.org/#/c/693631/

Change-Id: Ie8523712ea2ebe828fe01a649b6add90e813608b
2019-11-26 11:54:50 +00:00
zhurong f4e1b15853 PDF documentation build
Change-Id: Icf5f7f31b686d8ce97ae8cf145eaf1071860a75f
2019-09-19 01:45:29 -07:00
zhurong 4274f13932 Add lower-constraints job
Change-Id: Ib2524bbdcba4a50b3119a59e0879636399c5c89f
2019-04-25 10:09:04 +08:00
ZhongShengping a626f315f1 Fix install_command in tox.ini
Co-Authored-By: zhurong <aaronzhu1121@gmail.com>
Change-Id: Ib727161e05e1a837c5a1a0a968b2488ec9815eca
2019-04-22 19:57:34 +08:00
Ghanshyam Mann e3d13092cd 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: Id96750c6cc8fa645d907a58348c7f3ea5a12c1a2
2019-04-15 01:47:34 +00:00
Manik Bindlish 8d84956da6 Update min tox version to 2.0
The commands used by constraints need at least tox 2.0.
Update to reflect reality, which should help with local running of
constraints targets.

Change-Id: Ic6e6b6922309829c7a311bc255a269bd8a458fb7
2018-11-29 03:55:03 +00:00
Nguyen Van Trung 5303d4277a Don't quote {posargs} in tox.ini
Quotes around {posargs} cause the entire string to be combined into one
arg that gets passed to stestr. This prevents passing multiple args
(e.g. '--concurrency=16 some-regex')

Change-Id: Ieeaf4f9abcb06fdb38fc91fb58d2a684acba7082
2018-10-09 09:54:41 +07:00
Nguyen Van Trung 5aae14a9c8 Follow the new PTI for document build
For compliance with the Project Testing Interface as described in:
https://governance.openstack.org/tc/reference/project-testing-interface.html

For more details information, please refer to:
http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html

Change-Id: Ibdd264f0ef0c27762d47a70da192a858e62074a9
2018-09-06 13:07:06 +07:00
Witold Bedyk 9586972ddd Migrate to stestr for running tests
stestr is recommended by OpenStack Project Testing Interface for running tests
[1]. This change migrates to stestr for running unit tests and coverage
job. Modified `cover` env allows running it as Zuul job and visualising
its results in Gerrit.

[1] https://governance.openstack.org/tc/reference/pti/python.html#python-test-running

Change-Id: I9e8b79d7a18cd36946daff10abb1a2f43b1aa3a1
2018-07-30 10:37:34 +02:00
Mehdi Abaakouk a74978619e Remove unused tox target
Change-Id: Ia2079aa316aa23f7577c94f009fc1af727dac3ab
2018-07-26 11:39:37 +00:00
Doug Hellmann 8f068ebbd3 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: I6f1df527590d7b9ffdf7dd97c0fedf27f11b9e21
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-06-06 16:05:57 -04:00
Julien Danjou 8a1c44f385 Remove run-tests.sh
This is barely useful now, simplify test running.

Change-Id: I21ab76248797cdc05ac64ec4018c4e472c5b7317
2018-01-29 14:03:15 +01:00
Nguyen Van Trung 2e98fb2e0c Add doc8 to pep8 check for ceilometer project
This patch adds a doc8 check of .rst files to the current pep8 check.
It includes fixes to the .rst files that didn't pass the check.

Change-Id: If159ab37e2f59d7fe9ee1d7c3ebf0f62f030c87f
Co-authored-By: Hoang Trung Hieu <hieuht@vn.fujitsu.com>
2017-12-25 15:36:11 +00:00
Doug Hellmann 923dc9041d treat warnings as errors in release notes build
Change-Id: Ia440af605a39b8cb765590f8f080fd2cdfbf2249
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-11-20 09:43:46 -05:00
Julien Danjou 9323f07f97 Remove deprecated storage drivers
Change-Id: I6b262dd440a72f25662b64d938ab9e5328709a97
2017-10-26 09:35:14 +02:00
Julien Danjou d881dd5228 Remove Ceilometer API
This removes the deprecated Ceilometer API.

Change-Id: I752b36b3dfe8f935b68c4d3d59ccb5b8b60c582f
2017-10-25 14:38:43 +02:00
npraveen35 a15a3ade76 Remove install-guide env which is not effective
The install-guide directory was moved to doc/source directory when
migrating docs

Change-Id: I51d2d502c8ea727bcc1d9fd59f1ec961c958aba5
2017-08-09 12:51:05 +05:30
Thomas Herve c1c56d6aae Adds a Zaqar publisher
This adds a new publisher supporting samples and events which can be
used in the pipelines.

Change-Id: I5f95228c38656522a14b20370e2cfd67cb911f80
2017-05-02 15:59:33 +02:00
liusheng d7777b9bbc Remove support for py34
The gating on python 3.4 is restricted to <= Mitaka. This is due to
the change from Ubuntu Trusty to Xenial, where only python3.5 is
available. There is no need to continue to keep these settings.

Change-Id: Ic7ebd51a9a6eb21e9b695a873772a7bc476709e5
2017-02-09 10:23:55 +08:00
gord chung 8aefdcd67c check panko during integration test
check to see we got compute.instance.create.end event.

Depends-On: I455419bd215c45ece19b27317bf10282b48b7a96
Change-Id: I322438f6af123a5c0aa32b181c6f8a4b6151d001
2017-01-23 20:28:36 +00:00
Julien Danjou 8d23f431ab Remove events storage and API
This now has been moved to Panko.

Change-Id: I179eb0d436752e3bb8abaed714664cf74f5615e6
2017-01-06 16:33:53 +01:00
Tony Breeds 739cd3463e [doc] Note lack of constraints is a choice
Change-Id: I1eb824e155a6b868d7dd2b4a1308492c9e86abc2
2016-12-21 09:42:44 +11:00
Jenkins 0336939cca Merge "Bump hacking to 0.12" 2016-12-07 15:53:21 +00:00
gord chung e0f28ee29d fix postgresql functional gate
we're testing unit tests against postgresql functional currently.

Change-Id: I91009c07d168f9ae5b175fc500c0bb361d4b559b
2016-11-28 19:43:34 +00:00
Julien Danjou 72ef1412e3 Bump hacking to 0.12
Change-Id: Ia3eae43f000c022e99981c6a1a5a45df8d0e693c
2016-11-07 22:24:04 +01:00
Mehdi Abaakouk 5881c525a3 tests: fix tests for functional tests without dsvm
Currently functional tests pass in gate just because some calls are
done on real devstack, and passed by chance. We don't need dsvm at all
with pifpaf.

This change fixes this tests and add bindep.txt file for new gate jobs
without dsvm will be setup to ensure this doesn't happen again.

The tox targets pyXX-psql are renamed pyXX-postgresql to match all other jobs names.

Change-Id: I0e6cfb71cc53a47a11a12b5797fe262f9211ce22
2016-10-11 14:59:15 +02:00
Mehdi Abaakouk a2ef6ad5e4 tox: refactor targets
This change allows to run any target on all python versions

Change-Id: I9e8fc4de346ca65627b51b29f6c0c34a0a47451f
2016-09-21 08:21:02 +02:00
Mehdi Abaakouk 56855f2c92 tox: Remove useless env
Change-Id: Ifc8dc30bbbb44f60a1693a7b03fd1c6a03f769e3
2016-09-14 10:04:46 +02:00
Mehdi Abaakouk 3e013ff8f4 Use deps extra for optional requirements
Related-Bug: #1621384
Change-Id: I227c121b69ac1f51ed922e0b11bec005928aacab
2016-09-14 10:04:46 +02:00