Commit Graph

206 Commits

Author SHA1 Message Date
Ghanshyam Mann ddf7e04d32 Moving IRC network reference to OFTC
Change-Id: Ie1c8d0cba95c94d7dd4f066a3b786dc0bf8425d7
2021-07-08 18:44:00 -05:00
Witek Bedyk 811acd76c9 Remove project content on master branch
This is step 2b of repository deprecation process as described in [1].
Project deprecation has been anounced here [2].

[1] https://docs.openstack.org/project-team-guide/repository.html#step-2b-remove-project-content
[2] http://lists.openstack.org/pipermail/openstack-discuss/2020-August/016814.html

Depends-On: https://review.opendev.org/751983
Change-Id: I83bb2821d64a4dddd569ff9939aa78d271834f08
2020-09-15 10:12:44 +02:00
gugug 326483ee4c Replace assertItemsEqual with assertCountEqual
assertItemsEqual was removed from Python's unittest.TestCase in
Python 3.3 [1][2]. We have been able to use them since then, because
testtools required unittest2, which still included it. With testtools
removing Python 2.7 support [3][4], we will lose support for
assertItemsEqual, so we should switch to use assertCountEqual.

[1] - https://bugs.python.org/issue17866
[2] - https://hg.python.org/cpython/rev/d9921cb6e3cd
[3] - testing-cabal/testtools#286
[4] - testing-cabal/testtools#277

Change-Id: I67ec6c5ea47b927e2ef44864afa9313e0956a90b
2020-07-12 11:26:07 +08:00
Zuul 5fe9ed2fb1 Merge "Use unittest.mock instead of third party mock" 2020-05-28 13:17:54 +00:00
Zuul 619abc4a2a Merge "Add Python3 victoria unit tests" 2020-05-28 13:05:17 +00:00
Sean McGinnis 738d911e06
Add *.pyc files to .gitignore
Change-Id: Ic0a6fcc4425b386b1fbfa2a819203b6b80bbdcd5
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-05-13 06:03:23 -05:00
Sean McGinnis 9f49754799
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: I5868501da8cfc975c62e63a106f0fcae2384112a
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-05-13 06:01:39 -05:00
OpenStack Release Bot 26f4458f57 Add Python3 victoria unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for victoria.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: If986889113fc31d01058383c387f71e6d93a592a
2020-04-23 21:29:06 +00:00
Andreas Jaeger cffdf512c3 Cleanup py27 support
Make a few cleanups:
- Remove python 2.7 stanza from setup.py
- Add requires on python >= 3.6 to setup.cfg so that pypi and pip
  know about the requirement
- Remove obsolete sections from setup.cfg:
  * Wheel is not needed for python 3 only repo
  * Some other sections are obsolete
- Update classifiers
- Update requirements, no need for python_version anymore

Change-Id: I2c251d4be8f87a0772dbb06083639325e69ed98d
2020-04-05 11:36:39 +02:00
Ghanshyam Mann 79957946b5 [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

monasca-transform 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: Iae694c6f91273a898556fb342121024fadb3586e
2019-11-16 16:53:37 +00:00
pengyuesheng 6d76487028 Switch to Ussuri jobs
Change-Id: Ied786561abf0343eb61080da14de97111be38c39
2019-10-23 16:11:13 +08:00
Zuul 078fca1bc3 Merge "Update the constraints url" 2019-09-27 08:23:07 +00:00
Zuul fd505cd518 Merge "Blacklist sphinx 2.1.0 (autodoc bug)" 2019-09-27 07:27:50 +00:00
pengyuesheng 41d9f150a4 Update the constraints url
For more detail, see http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html

Change-Id: I68fc7a75bb72c87149e6185e241feee962c566bc
2019-09-20 17:29:20 +08:00
pengyuesheng 6394330ba7 Blacklist sphinx 2.1.0 (autodoc bug)
See https://github.com/sphinx-doc/sphinx/issues/6440 for upstream details

Change-Id: I808ed14d183df2c7ef501950604b9e437c1fa45c
2019-07-30 17:03:21 +08:00
Corey Bryant 0184fd27cd Add Python 3 Train unit tests
This is a mechanically generated patch to ensure unit testing is in place
for all of the Tested Runtimes for Train.

See the Train python3-updates goal document for details:
https://governance.openstack.org/tc/goals/train/python3-updates.html

Change-Id: I9786d49d9fa21e13fbfc81265e12af046dfb59dd
Story: #2005924
Task: #34223
2019-07-29 08:05:14 +00:00
Sumit Jamgade 9ae88c7af4 do not set INFLUXDB_VERSION
influxdb was updated to 1.7.6[1].

Also we are using python version of monasca-api and 0.9.5 is needed for
java version.
So removing this default to let monasca-api handle the variables value

1 - I14f441f5fee46fa273bc4ea1d57662c2e4ac60c2

Change-Id: Ie61fac97b10ce6bf3a9eaf078d8ab10030e6d8a2
2019-07-11 10:24:40 +02:00
melissaml 040211ba89 Update hacking version to latest
This commit updates hacking version to 1.1.x and fixes related
pep8 issues.
Also added pycodestyle in test-requirements

Story: 2004930
Task: 29318

Co-Authored-By: Akhil Jain <akhil.jain@india.nec.com>

Change-Id: Id3ad30d23b902ee6f7277f7ec20d7d523df232f6
2019-06-12 13:22:41 +05:30
akhiljain23 71ad20ab2f Update sphinx version in test-requirement.txt
Update sphinx dependency to avoid gate failure.
Global requirement link [1]

[1] 23ff2adcec/global-requirements.txt (L455)

Change-Id: Ib6b4567948d27d597555ebb921e7d2e1a019c27e
2019-05-30 13:05:16 +05:30
Zuul 73cf293aec Merge "Dropping the py35 testing" 2019-05-07 23:47:00 +00:00
Zuul 6cc78b80ec Merge "Replace git.openstack.org URLs with opendev.org URLs" 2019-05-07 23:46:59 +00:00
Zuul 2f2972e8a4 Merge "Fix Swift Rate Calculation" 2019-04-24 17:05:04 +00:00
zhulingjie ef6f94d3a6 Replace git.openstack.org URLs with opendev.org URLs
Change-Id: I1d8a8c0eecf7be5b92cc7855987a74291c3b726d
2019-04-24 16:50:05 +00:00
OpenDev Sysadmins 901ae46986 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:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

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 https://opendev.org/ with any
questions you may have.
2019-04-19 19:28:05 +00:00
Ghanshyam Mann d77da2bfda 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: Ied7dca1bd9e3d66fc8504884ced8c30571fd28cc
2019-04-15 16:30:49 +00:00
Ashwin Agate 963f774818 Fix Swift Rate Calculation
* To find the oldest and newest quantities
  for calculating rate, Spark Data Frame
  is converted to a Spark RDD, which makes it
  easy to do a group by and sort. The syntax to pull
  the value from a map column type in an
  RDD is rdd.map_column['key'] which
  is different from dataframe.map_column.key
  which was causing  'dict' object has no attribute
  exception

* Renamed first_attempt_at_spark_test.py to
  test_first_attempt_at_spark, because all the tests
  in that file were not being run.

* Changed the pre transform and transform specs
  which were being used by test_first_attempt_at_spark
  to newer 'dimensions#field_name that was introduced
  in rocky release.

Story: 2005449
Task: 30501

Change-Id: I6adeee54fe261c535372b8f5f3580e7d3261259b
2019-04-14 07:41:14 -07:00
Ian Wienand c3e87aea34 Replace openstack.org git:// URLs with https://
This is a mechanically generated change to replace openstack.org
git:// URLs with https:// equivalents.

This is in aid of a planned future move of the git hosting
infrastructure to a self-hosted instance of gitea (https://gitea.io),
which does not support the git wire protocol at this stage.

This update should result in no functional change.

For more information see the thread at

 http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003825.html

Change-Id: Iefd089227b889e88b6053bd752f0e9f0434b6b72
2019-03-24 20:34:16 +00:00
ZhongShengping 1f22c98eb0 add python 3.7 unit test job
This is a mechanically generated patch to add a unit test job running
under Python 3.7.

See ML discussion here [1] for context.

[1] http://lists.openstack.org/pipermail/openstack-dev/2018-October/135626.html

Change-Id: I8d82a00f34de9f25a2ff4cfdcf4e8da76962739b
2019-02-18 15:30:03 +08:00
melissaml 73e5f9a833 Change openstack-dev to openstack-discuss
Mailinglists have been updated. Openstack-discuss replaces openstack-dev.

Change-Id: I368cc4bec860fdf5347e47b300720b4825c820f4
2018-12-05 01:37:19 +08:00
Zuul fe1ed499e7 Merge "Don't quote {posargs} in tox.ini" 2018-11-09 16:37:43 +00:00
Zuul 4695b7248d Merge "Add coverage check to Zuul configuration" 2018-11-09 15:58:29 +00:00
98k fed06de95c 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: Ib09247cde72c4c2270a8a1360d9dc10fcfd6d4fe
Closes-Bug:#1801817
2018-11-06 01:44:33 +00:00
Sean McGinnis 466cb5e2a1 Remove setup.py check from pep8 job
Using "python setup.py check -r -s" method of checking the package has
been deprecated with the new recommendation to build the sdist and
wheel, then running "twine check" against the output.

Luckily, there is already a job that covers this that only runs when the
README, setup.py, or setup.cfg files change, making running this in the
pep8 job redundant. This covered by the test-release-openstack-python3
that is defined in the publish-to-pypi-python3 template.

More details can be found in this mailing list post:

http://lists.openstack.org/pipermail/openstack-dev/2018-October/136136.html

Change-Id: Iea823472cc45ce65e11eb9b096aa5d1d943f5520
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2018-10-30 10:35:57 -05:00
Witold Bedyk afd83d9167 Add coverage check to Zuul configuration
Change-Id: I891813e167ba97c636b217b6fcc9005e273e6bba
2018-10-10 10:09:59 +02:00
Zuul 5acdca0e65 Merge "fix tox python3 overrides" 2018-10-05 14:39:29 +00:00
Zuul 474d358c1d Merge "Fix PEP8 tests for Python 3" 2018-10-05 14:36:56 +00:00
Andreas Jaeger 1cd52aab62 Import docs build job
Import build-openstack-sphinx-docs job and convert to new
openstack-tox-docs job - using the build-openstack-docs-pti template.

Add tox docs environment for building docs.

Use templates for lower constraints jobs, sort template list
alphabetically.

Change-Id: I4888010e1b473d93f3cc48ed00b31da301068db8
2018-10-03 15:59:29 +02:00
huang.zhiping ccd56bf0d4 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: Iaa7c9b9fca48dd2e091049da711e70395f6ec28e
2018-10-01 09:26:32 +00:00
Witold Bedyk 8257dd9f42 Fix PEP8 tests for Python 3
* relace long with int
* replace execfile with exec

Change-Id: If98949fa5f49091fbf11c95a65302a4f844538c9
Story: 2003240
Task: 26827
2018-10-01 11:21:23 +02:00
Zuul fba8cef150 Merge "Enable mutable config in monasca_transform" 2018-09-11 23:20:35 +00:00
Zuul 8edb217b92 Merge "Update links in README" 2018-09-11 23:20:35 +00:00
Zuul 57f17ec6a0 Merge "Remove pykafka from lower-constraints" 2018-09-11 22:22:57 +00:00
melissaml 6e284fb710 Update links in README
Change the outdated links to the latest links in README.

Change-Id: Ic4f5cdb9f16f1a18eca75a2e2f08c7d02d9ffdfe
2018-09-07 12:57:34 -07:00
wangqi a806bffb1d Update the governance link
Change-Id: Ib5100484334ecab4ac130b5321761ef43e8d81d8
2018-09-04 07:05:05 +00:00
Doug Hellmann ee1446fc98 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:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: Idb70d6f2892ec6f716b640fd6f089604048f69d7
Story: #2002586
Task: #24312
2018-08-22 18:52:01 -04:00
Doug Hellmann da1a85bdba 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
repository.

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
normalized.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: I329e40ac9ac5500ec4eb789e732e94dea757ba1e
Story: #2002586
Task: #24312
2018-08-22 18:51:19 -04:00
Witold Bedyk f11b300a50 Fix README.rst and add syntax check
Change-Id: I08077f575e4a3c801089852dfbf71f84291dcd81
Story: 2002163
Task: 24402
2018-08-08 15:04:35 +02:00
Zuul 2027dcfffe Merge "Remove service_id from pre-transform spec" 2018-08-07 18:46:40 +00:00
sajuptpm 410115088e Enable mutable config in monasca_transform
New releases of oslo.config support a 'mutable' parameter to Opts.
oslo.service provides an option here Icec3e664f3fe72614e373b2938e8dee53cf8bc5e
allows services to tell oslo.service they want mutate_config_files to be
called by passing a parameter.

This commit is to use the same. This allows monasca_transform to benefit from
I1e7a69de169cc85f4c09954b2f46ce2da7106d90, where the 'debug' option
(owned by oslo.log) is made mutable. we should be able to turn debug
logging on and off by changing the config.

tc goal:
https://governance.openstack.org/tc/goals/rocky/enable-mutable-configuration.html

Change-Id: I86571df78014a810ffa881ceceeddfc5193c9ca5
2018-07-25 16:42:42 +05:30
Witold Bedyk 64fa343f0c Remove pykafka from lower-constraints
Change-Id: Ia7cab1be4c6590ed4eec130eb924df81699c7f69
Story: 2003079
Task: 23159
2018-07-24 16:40:21 +02:00