Commit Graph

236 Commits

Author SHA1 Message Date
Matthias Runge ca45bbdca0 Retire panko, the code is no longer maintained.
The contents of this repository are still available in the Git source
code management system. To see the contents of this repository before it
reached its end of life, please check out the previous commit with
"git checkout HEAD^1".

For any further questions, please email
openstack-discuss@lists.openstack.org or join #openstack-telemetry on OFTC.

Change-Id: Ic8a7001e708d8da7cf8951eefd0a96762ea5fa46
2021-05-27 11:36:44 +02:00
Zuul 8bc176fdbd Merge "bump py37 to py38 in tox.ini" 2021-01-29 14:45:43 +00:00
maaoyu 531eb819fe bump py37 to py38 in tox.ini
in 'victoria' cycle, we should test py38 by default.

ref:
  https://governance.openstack.org/tc/reference/runtimes/victoria.html

Change-Id: I711e61fac9b1364731994ebfdb522e7261ba8a75
2020-10-12 14:12:40 +08:00
maaoyu 6f224e6da9 Remove install unnecessary packages
The docs requirements migrated to doc/requirements.txt
we need not install things from requirements.txt.

Change-Id: Ia3dd1f0e08ff3f6ec0e75e2256588d6842b09542
2020-09-23 14:57:44 +08:00
Andreas Jaeger 679e39587d Cleanup doc support
Cleanup docs building:
- Remove obsolete sections from setup.cfg
- Switch to using sphinx-build
- Cleanup doc/source/conf.py to remove now obsolete content.
- Use newer openstackdocstheme version, use apidoc for
  API docs
- Fix doc problems found

Change-Id: I1f92444a145030e7715a8d357870d712c5d3cfb1
2020-04-13 17:59:13 +02:00
Andreas Jaeger e66d3e7599 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 to work with new flake8 version.

Change-Id: Id5d224358b44fd7ab4bd3d08f1db6b6faf54042f
2020-04-03 14:39:18 +02:00
Ghanshyam Mann b787e1dc4d [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

Panko 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: I61488fc092ac11eb9f606d54c8e1a6e57851c4a0
2019-12-13 00:17:59 +00:00
zhurong 92a0a825e5 PDF documentation build
Change-Id: I7db6a34ba582c048c40c450453f239ada6260ac2
2019-09-19 22:39:38 -07:00
ZhongShengping 852d853e21 Fix install_command in tox.ini
Change-Id: Icd2e1a266bb0e26a059bad8aa60fb94dd9f261f7
2019-04-22 14:28:36 +08:00
Ghanshyam Mann 7fe341001c 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: Ib06c3699266c53ca5d1ca5b5da8e6d25e3190bad
2019-04-15 01:49:01 +00:00
Vieri 7bbdded91e 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: I0ada617f2b1413d3c1d4de90a284a2d6c84ff162
Closes-Bug:  #1801486
2019-04-12 02:18:09 +00:00
Nguyen Van Trung 2a5e73c734 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: I6de58b9ba9609056a09e8ea9f1f9637b3e4a939a
2018-10-09 10:22:29 +07:00
Mehdi Abaakouk 92782ad6a7 Add python 3.7 gating
This also moves all tests in standard venv

Depends-On: I248c7ff3e306fa1086920c24baa73312e5e31b91
Change-Id: I23a6046ae6741ed71c52d3129d6238d4a6dd1f1e
2018-07-26 14:47:34 +02:00
Vu Cong Tuan c1f4ad6184 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: I3760aae7bb78fdffc34a492f150bc7df8a4a9bf2
2018-07-17 16:21:15 +07:00
Doug Hellmann e51a31f05d 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: I4e0defc19b6455333dfe9d7501ba190dc0964f5c
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-06-06 16:06:03 -04:00
Nguyen Van Trung 7434266e8d Add doc8 to pep8 check for panko 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: Iad93921d7b5f9ee668fa1b8c518c5e7f55a4fa49
Co-authored-By: Hoang Trung Hieu <hieuht@vn.fujitsu.com>
2017-12-14 07:33:25 +07:00
Lance Bragstad 52417d4ab8 Move default policies into code
This is part of a community effort to provide better user experience
for those having to maintain RBAC policy. More information on this
effort can be found below:

  https://governance.openstack.org/tc/goals/queens/policy-in-code.html

bp policy-and-docs-in-code
Co-authored-By: Hieu LE <hieulq@vn.fujitsu.com>
Change-Id: I9bad70abcf5543c3e5e5da25c56c408ee3ff0346
2017-11-08 04:35:54 +00:00
Hanxi Liu d70233e3b7 Trivial: 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: I3e6e8152ef941ef884507caf50d1a80c0a8e83bd
2017-02-10 00:11:36 +08:00
Jenkins eb423598f6 Merge "Enable coverage report in console output" 2017-01-04 10:23:45 +00:00
Jeremy Liu 819a4df63c Enable coverage report in console output
Change-Id: Ife1a4adcf656c0015c7eec1b9df50536db668e17
2016-12-30 16:30:23 +08:00
Tony Breeds a6d7757475 [doc] Note lack of constraints is a choice
Change-Id: Iffdebf83a4701a9afe72108b1950464399c54bc8
2016-12-21 09:47:11 +11:00
Julien Danjou 7170ce4d8a Bump hacking to 0.12
Change-Id: I36236b81c055a303587e4b587bf41c5c6d585cce
2016-11-07 22:39:43 +01:00
Hanxi Liu 9d4a603068 Put py34 first in the env order of tox
To solve the problem of "db type could not be determined" on py34 we
have to run first the py34 env to, then, run py27. This patch puts py34
first on the tox.ini list of envs to avoid this problem to happen.

Change-Id: Ie5e69a7e67aa0ed094f09e44a2659501d99cf667
Closes-bug: #1604734
2016-08-03 16:13:05 +08:00
Julien Danjou 958c9b7ffd Add support for Python 3.5
Change-Id: I7599f3e5d156834138a84be0fac768a2e3767a0d
2016-07-20 12:32:33 +02:00
Julien Danjou 2f3629f48f Remove functional tox targets
Change-Id: If1f27bc03284254e251e7c397c0fa80ff56671b5
2016-07-20 12:32:17 +02:00
Julien Danjou 1c36ba5c15 tox: rename elastic search targets
Change-Id: I81834d4932d69d38da37bc60d24b128a850ac4bf
2016-06-28 17:55:17 +02:00
Julien Danjou d40c2a2867 tox: build all needed functional targets + fix compat with Gabbi >= 1.22 + fix raw type
Fix JSON SQL type to be Text, like it's actually in the old Ceilometer
migration script.

Change-Id: I647254d7b0e8f3c3983354a18e049ea633565187
2016-06-24 16:09:18 +02:00
Julien Danjou 6b6e4afa8e Fix release notes build process and pep8 target
Change-Id: I7ce58baaba31f2be46d89bd3bde67d67bbc01344
2016-06-16 13:39:50 +02:00
Julien Danjou 3009be7ee7 Rename to Panko
Change-Id: I50b5f6c7b74a4431ccb7af271c11fe9c027f83ab
Signed-off-by: Julien Danjou <julien@danjou.info>
2016-06-14 17:00:22 +02:00
Julien Danjou ba4f572fd3 Remove code that is not related to events storage and API
Change-Id: I63128835613eb5959244c2fd34bc266ddcf4251c
2016-06-14 17:00:22 +02:00
Julien Danjou 15a424c2e9 tests: replace overtest by pifpaf
Change-Id: Ib26c9c674d438bcbabea9c09cfdab97516e0e227
2016-05-09 16:01:58 +02:00
Jenkins 14ecb3b2a7 Merge "Remove unused pylintrc" 2016-05-06 08:17:28 +00:00
Julien Danjou 72cc3185b0 tox: only install hacking in pep8 target
Change-Id: Ie8605df90652d04483e8184cd3bc1dabd24ceb63
2016-05-03 00:17:24 +02:00
Julien Danjou 25cd1d2385 Remove unused pylintrc
We never used that in the gate and it's unmaintained. Clean that.

Change-Id: I421c5b3084d7ff4d2bd6ab43a7a8a477d4a2c560
2016-05-03 00:05:46 +02:00
ZhiQiang Fan fd6c9aed41 remove todo for OS_TEST_PATH
now we have set OS_TEST_PATH for all

Change-Id: Ie25809092555fb1377ff3bd91dd3bc10f37470a6
2016-04-23 12:30:44 +08:00
Jenkins c8dd0947f1 Merge "Use overtest to setup functional backends" 2016-03-07 15:02:44 +00:00
kairoaraujo 0506379572 Initial seed of hacking
It is an initial seed of hacking rules based on neutron and
nova projects.
For ceilometer it prevents bug 1508442 and closes/prevents
bug 1529836.

All the requirements about the hacking rules were corrected
on this propose review.
To be clear about the requirements, the only alarmed was
about import[1], in specific H306
[H306] "Alphabetically order your imports by the full module
path. Organize your imports"

[1] http://docs.openstack.org/developer/hacking/

Change-Id: Ia530873078c97925bfb91fde87b38131426a74c2
Closes-Bug: 1529836
2016-02-22 12:46:44 -03:00
Julien Danjou 36c5b87058 Use overtest to setup functional backends
This patches leverage overtest to setup the database environment needed.

Change-Id: I8198041b4a87bf187d8f6499f0c7c1a43d4dcac2
Depends-On: I29e480611e743ddc645fd067ca2c63b51b11b518
2016-02-10 13:12:34 +01:00
ZhiQiang Fan 5411722c46 remove local hacking check
oslo libraries once have issue on its namespace, but they all have
migrated to the right one during liberty cycle. It is time to drop
temporary local checks for this issue. Since this is the only
local check we have, this patch entirely removes all related files.

Change-Id: I8fe7a59f51ee8af25e3dade70da645cd646fa0b4
2015-12-18 02:02:53 +08:00
Julien Danjou 867ad8d6ab Remove eventlet usage
This removes entirely our usage of eventlet and its ugly monkey-patching
in favor of a threaded approach.

Implements: remove-eventlet
Change-Id: Ib5f623e2d1ff9e9254601ad091bf5b53ab32000d
2015-11-24 13:44:58 +01:00
gordon chung 2d471862e7 add reno for release notes management
Change-Id: Id36eb9d88c6a8fba635779fc9a971f015908b5de
2015-11-11 10:35:22 -05:00
Julien Danjou 3e203b2585 tox: use pretty_tox in most places
Change-Id: I005a31938107177058481ead225ffc30197588b5
2015-11-02 15:23:27 +01:00
liusheng 3587ce9fdf Using oslo-config-generator to instead of generate-config-file.sh
We don't need a separate script to wrap the oslo-config-generator. Like
other projects, we can just specify a config-generator config file to
define the namespaces.

Change-Id: I9ee06658d49163f041df18a62b33fa2804f545b8
2015-10-20 17:38:57 +08:00
gordon chung 0b53eaed72 fix elasticsearch script reference
debug doesn't point to correct script name

Change-Id: I5b9486c8e3e1b033fcf7eb3119553f34a16c91bf
2015-09-29 12:35:44 -04:00
Jenkins 1f342ef3e2 Merge "tox: generate config file on test run" 2015-09-21 13:45:24 +00:00
Julien Danjou c6f49a6a8b tox: generate config file on test run
We already do that for Aodh and Gnocchi, and that makes sure we don't
break the config generator when committing new things.

Change-Id: I049f86dc85d7d4c365cdd622cefd4025ae0cebc3
2015-09-17 15:06:10 +02:00
Mehdi Abaakouk 9adeca67f3 tox: Allow to pass some OS_* variables
New tox version need to list environment variables that are
safe for tests.

This change allows usefull oslotest environment variables:
OS_TEST_TIMEOUT, OS_STDOUT_CAPTURE, OS_STDERR_CAPTURE, OS_LOG_CAPTURE

Change-Id: I422461743560e8eb48f99307198f8565efbca0b3
2015-09-17 14:43:04 +02:00
Chris Dent 048021417e Make the gabbi tox target work with modern tox
passenv is required so that database configuration environment
variables are properly available to the tests.

Change-Id: I44050f7bbfdd27b4e4e729d23f3f8e29899d14ca
Closes-Bug: #1494339
2015-09-10 14:12:52 +00:00
Chris Dent 4b822121fa Add a py34-functional tox target
Run the functional tests against python3.4 with 'tox
-epy34-functional'.

hbase is not supported in py34 so there are fewer tests run when
compared with the py27 functional tests.

Change-Id: I68ee3e09a446d449e947c87985c10944fbea93ba
2015-09-07 12:01:41 +00:00
Jenkins 4fcb80c8ee Merge "Change tox default targets for quick use" 2015-09-04 19:19:03 +00:00