Commit Graph

86 Commits (cffa9966dfad0bf60c2438b2bd3f5e844dc27bd7)

Author SHA1 Message Date
Martin Kopec cffa9966df Switch testing to Antelope testing runtime
Updating the testing template to Antelope testing runtime:

Change-Id: I0c7e1497243c74a7c4e5bedbb3c94c80794490e9
2023-01-23 17:25:54 +01:00
ljhuang 609f4af8c8 Replace deprecated readfp method with read_file
The readfp method has been deprecated since version 3.2 [1].


Change-Id: I2c4c327297b74631d961850e735d5ddc69459e47
2022-07-22 17:20:19 +08:00
Martin Kopec 3386bbed48 Add openstack-tox-py310 job as nv
Let's test against py3.10 to prepare and to make sure the project
is compatible with py3.10.

Change-Id: Ie09d83d570bbe95976303b547ba267231269744a
2022-05-11 14:25:29 +02:00
Ghanshyam Mann 6def79eebd Test python3.9 as voting job
In Yoga testing, we are making py3.9 job to run as voting, so
adding py3.9 job as voting.

Also, as os-performance-tools is branchless and needs to support older
supported stable branches, let's test it with all the
python version supported in those supported stable branches.
For that, we need to explicitly dd the py jobs instead of using
the template. This way, we will explicitly know that we are testing
all supported python versions when the new release template bumps the
min python version in the template.

Change-Id: I71b2dbfa46449e39b6fbe99862c55e4370ce68c3
2021-11-03 21:09:11 +00:00
tushargite96 006c0acc4e Switch testing to Yoga testing runtime
Upating the tetsing template to Yoga testing runtime:

Change-Id: If25abb8af62246d39b352a6b683ff6afc9f7a401
2021-09-28 09:33:30 +05:30
Zuul 71475bfe6b Merge "Fix py39 compatibility" 2021-06-02 15:33:45 +00:00
Zuul c6ca7facec Merge "Replace dashes with underscore & Migrate to stestr" 2021-06-02 15:27:57 +00:00
Martin Kopec 365ccb0471 Fix py39 compatibility
In python 3.9 base64.encodestring() and base64.decodestring(),
aliases deprecated since Python 3.1, are removed.
base64.encodebytes() and base64.decodebytes() should be used

Change-Id: I7ac7133ff4e9f118dac3dbc179dfc89c932705bb
2021-06-02 14:11:45 +00:00
Anand Bhat 55a24e730d Replace dashes with underscore & Migrate to stestr
* Setuptools v54.1.0 introduces a warning that the use of dash-separated
  options in 'setup.cfg' will not be supported in a future version [1].
  Get ahead of the issue by replacing the dashes with underscores.Without
  this, we see 'UserWarning' messages.
* Replace .testr.conf by .stestr.conf for migration and update
  .gitignore and test-requirements.txt file accordingly
* Use py3 as the default runtime for tox
* Add a new job, openstack-cover-jobs, to run the coverage in Zuul


Change-Id: I3169456592324425b9a9ddc4dbcf8abcf3b82135
2021-06-02 16:20:58 +05:30
Martin Kopec 7ec2ec2fb7 Fix doc job
The doc job is failing as requires a font 'tgtermes.sty'
to generate pdf doc. This patch adds that required pakcage
in bindep.txt to fix it.

Change-Id: I67fb2a54bde3e22f96f6664798ae77290b1d6116
2021-06-02 09:28:36 +00:00
Martin Kopec 3fb26d4b99 Switch testing to Xena testing runtime
Upating the tetsing template to Xena testing runtime:

Change-Id: I18fa6b0f12114df57376c47f6e185796505572dc
2021-04-29 14:48:55 +00:00
tushargite96 fd7258f79d Changed minversion in tox to 3.18.0
The patch bumps min version of tox to 3.18.0 python in order to
replace tox's whitelist_externals by allowlist_externals option:

Change-Id: I8b8952dfbfc48fd6628584808dd5ae76db163e0b
2021-02-25 23:28:55 +05:30
tushargite96 40057a3409 Add Python3 wallaby unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for wallaby.

See also the PTI in governance [1].


Change-Id: Idac156e396d16cf10ed14d012b863f06e472441d
2020-10-12 19:02:43 +05:30
Zuul b09b100a6a Merge "Use unittest.mock instead of mock" 2020-09-29 21:25:26 +00:00
Lukas Piwowarski f46106c2f5 Create tox environment to build pdf documentation
This patch enables building .pdf documentation using new 'pdf-docs'
tox environment. The newly created tox environment creates latex
source codes using sphinx-build and then builds the pdf
documentation using make.

Story: 2006070
Task: 35467

Change-Id: Ie2b3df9f09445ca4f71bb1fbf69c92a4d7b3e719
2020-09-24 10:48:20 +02:00
Hervé Beraud e3ab04a4f3 Use unittest.mock instead of mock
The mock third party library was needed for mock support in py2
runtimes. Since we now only support py36 and later, we can use the
standard lib unittest.mock module instead.

Change-Id: I6bdf38b8b7e63ff8183f0aaccb566d2baa37df56
2020-06-11 10:08:00 +02:00
Andreas Jaeger 3c4adf44e1 Cleanup py27 support
This repo is now testing only with Python 3, so let's make
a few cleanups:
- Remove now unused files babel.cfg and openstack-common.conf.
- Remove use of six library.
- Update to hacking 3.1.0
- Update pbr requirement

Change-Id: Ib4b9460f24cfaa216f0302b3b90ef73d808eb3e4
2020-06-09 11:54:39 +02:00
Andreas Jaeger 57582a48bb Switch to newer openstackdocstheme version
Switch to openstackdocstheme 2.2.1 version. Using
this version will allow especially:
* Linking from HTML to PDF document
* Allow parallel building of documents
* Fix some rendering problems

Update Sphinx version as well.

Disable openstackdocs_auto_name to use 'project' variable as name.

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.

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

Change-Id: I6e9989f1882cf5729e644e240311c9b73bd578b6
2020-06-02 14:19:07 +02:00
Ghanshyam Mann a191f2e3f1 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


Change-Id: Id81e9f6b17e3c722137bb5dfffb5e12c9219b85b
2020-05-15 16:56:23 +00:00
Vishakha Agarwal e03e958133 Switch testing to Victoria testing runtime
Upating the testing template from ussuri to victoria
testing runtime

Change-Id: Id39b69578adbddcec1d661f8d79580ce28ef72a5
2020-05-05 13:54:36 +05:30
Ghanshyam Mann 1031cab577 [ussuri][goal] Update contributor documentation
This patch updates/adds the contributor documentation to follow
the guidelines of the Ussuri cycle community goal[1].

Story: #2007236
Task: #38554

Change-Id: I5106dca0f379a9ced19ea209de460980d407345f
2020-04-22 14:04:58 +00:00
Ghanshyam Mann d0856fb6e0 Support back python 3.5
While dropping py2 support, we dropped py3.5 support also
- I1ced6583d61418ca5cd2deb72b7e3f7a3ec986e2

There might be some user of it using on py3.5 distro like
stable/rocky jobs on xenial.

There is no deps issue to support the py3.5 so let's keep
it as long as we can.

Change-Id: Ie8af65c8aef92c4193071133bc3a4df98725da68
2020-02-13 09:30:50 -06:00
Ghanshyam Mann 59aec6a7b7 [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

os-performance-tools is ready with python 3 and ok to drop the
python 2.7 support.

Complete discussion & schedule can be found in

Ussuri Communtiy-wide goal:

Change-Id: I1ced6583d61418ca5cd2deb72b7e3f7a3ec986e2
2020-02-04 11:26:12 +01:00
Andreas Jaeger 3d06be24dc Fix docs building
In preparation for python 3 support switch to newer sphinx version.
This requires openstackdocstheme.

Remove install_command, this is the default.
Update hacking version to be compatible with python 3, fix warnings
from new pep8.

Change-Id: Iab69ec59eb111571f784242c5ea5756c2a63e424
2020-02-03 22:13:58 +01:00
kartik494 9af6fc2692 Remove the incorrect bug tracker link
Current Bug tracker link mentioned in README file does not exit which
create confusion. I checked and not found any bug tracker for this project.
Removing the incorrect link and mention to raise bug on ML or IRC.

Change-Id: Ifd9375cf09154b4439f2c75ff42103535d271270
2019-08-19 15:20:34 +05:30
ZhongShengping d3680e477d Update python 3 unit test job
This is a mechanically generated patch to update a unit test job running
under Python 3

See ML discussion here [1] for context.


Change-Id: Ib8498d9a06c511cc1bce3d4ab5db520b992d8cd7
Story: #2004073
Task: #27445
2019-06-29 12:59:39 +00:00
Zuul b9c00cb97a Merge "Replace URLs with URLs" 2019-04-24 02:53:30 +00:00
caoyuan 77ebf3e811 Replace URLs with URLs
Change-Id: Ia556fab6dd4e9d623e401430361c72441cba1994
2019-04-23 19:39:31 +08:00
Ghanshyam Mann aa7059aff1 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:


Change-Id: I1d60426db61a7a67bb2dda68a7fcfdd49bedb6dd
2019-04-22 03:49:54 +00:00
OpenDev Sysadmins 54ae9d8a32 OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at with any
questions you may have.
2019-04-19 19:47:57 +00:00
Zuul d190150d6f Merge "Update home-page" 2019-02-25 05:36:24 +00:00
huang.zhiping f178a1edc2 Update home-page
Change-Id: I953df9780fdc6a025d1086c42286e5235e0dc56e
2019-01-11 17:09:15 +00:00
Manik Bindlish cbafae38c7 dict_object.keys() is not required for *in* operator
cleanup of .keys() from dict_object.keys() *in* operator

Change-Id: I48244786f5dc4cfc8e518322edb6d31dbf2336f6
2018-12-20 10:56:19 +00:00
Zuul af948e1510 Merge "fix tox python3 overrides" 2018-12-16 11:16:29 +00:00
Zuul e6287177e8 Merge "Fix link in HACKING.rst" 2018-12-16 10:35:42 +00:00
Zuul 02322314f1 Merge "Update min tox version to 2.0" 2018-12-16 10:31:08 +00:00
Manik Bindlish 8432a770c5 Change openstack-dev to openstack-discuss
Mailinglists have been updated.
So, replacing openstack-dev with openstack-discuss.

Change-Id: Ifa6cb66d703b67e85f11f13b680768cadbfee078
2018-12-04 10:07:59 +00:00
qingszhao dd3945a3ff 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: Ifeef1cfb4b764c7a2d0351eb1c3f3660262350c8
Closes-Bug:  #1801657
2018-11-20 06:08:53 +00:00
zhouxinyong 609ba6fdfa Fix link in HACKING.rst
Change-Id: I509f658b867a3794cd2cc4dde737926421152c9c
2018-11-16 00:53:58 +08:00
Vieri dbc9a17817 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

Change-Id: I17b0985bef58eb7321dd34a686dfab9668b74275
2018-11-02 06:58:25 +00:00
Doug Hellmann 6926f93f05 add python 3.6 unit test job
This is a mechanically generated patch to add a unit test job running
under Python 3.6 as part of the python3-first goal.

See the python3-first goal document for details:

Change-Id: I9f59da2a0ae0d22ad92a51b7b0d0762808bebb60
Story: #2002586
Task: #24327
2018-09-08 22:54:17 -04:00
Doug Hellmann af30e341cb switch documentation job to new PTI
This is a mechanically generated patch to switch the documentation
jobs to use the new PTI versions of the jobs as part of the
python3-first goal.

See the python3-first goal document for details:

Change-Id: Idd3c2867f353c8dee66c96f3bb4e734c82902331
Story: #2002586
Task: #24327
2018-09-08 22:54:02 -04:00
Doug Hellmann 6efb8d872a import zuul job settings from project-config
This is a mechanically generated patch to complete step 1 of moving
the zuul job settings out of project-config and into each project

Because there will be a separate patch on each branch, the branch
specifiers for branch-specific jobs have been removed.

Because this patch is generated by a script, there may be some
cosmetic changes to the layout of the YAML file(s) as the contents are

See the python3-first goal document for details:

Change-Id: I4b1e5f5218c52d75bceb79607c01ffda5bb98090
Story: #2002586
Task: #24327
2018-09-08 22:52:19 -04:00
Andrea Frittoli d96d5145fa Add py3.5 support in setup.cfg
As defined in
Pike community goal for py35, adding py35 to setup.cfg.

Change-Id: I46cb1c047a7d5d433c36ff1dbb290a25c9dca9fd
2017-04-06 10:31:58 +01:00
DeepaJon 260408ce16 Removes unnecessary utf-8 encoding
This patches removes unnecessary utf-8 encoding in the

Change-Id: Ifa32ae370cd29c270413989903d0eda3b2b8238a
2017-01-11 18:04:01 +05:30
Jenkins 019457276d Merge "Fix .gitreview" 2016-01-11 16:16:32 +00:00
Andreas Jaeger 23e932886e Fix pep8 failure
Fix "./os_performance_tools/collectors/ E501 line too long
(87 > 79 characters)"

This is done with reworking the comment to inline the URL.

Change-Id: Ic3b965cdc8d43fdf8621036a0819d2f7df13fb9c
2016-01-11 13:07:49 +01:00
Andreas Jaeger ca44983993 Fix .gitreview
Fix repository name so that usual OpenStack gerrit work flow works.

Change-Id: I585aeaa2d6a962581e47b580252d196b9af99501
2016-01-11 12:59:24 +01:00
Clint Byrum 9fa4ce73a2 Add documentation to each collector. 2015-11-24 00:07:32 -08:00
Clint Byrum 62627da9c9 Add byte counters for Innodb writes/reads
These counters were added in MySQL 5.6. I think.
2015-11-20 14:10:52 -08:00