425 Commits

Author SHA1 Message Date
Witold Bedyk
ee42448e73 Add py36 tox environment
Change-Id: I40d383db83dca77445b411eba87a19d8d1457be1
Story: 2004148
Task: 28119
2018-11-28 10:01:35 +01:00
Zuul
d77a54053e Merge "Remove Linux apps pinning from Dockerfile" 2018-11-20 11:54:00 +00:00
Zuul
279769276f Merge "Add running tempest tests for logs-pipeline" 2018-11-15 11:21:48 +00:00
Dobroslaw Zybort
d2d085c84d Remove Linux apps pinning from Dockerfile
Alpine repositories remove older version of packages really fast and
stop images from building.

Change-Id: I80011d19204117d0ce7d8fe7d847432cd31ce99c
2018-11-09 10:39:37 +01:00
Sean McGinnis
9cd0d2836c 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: I7a3555dd0f0c4bcd1969ca7d3669369d7517a6be
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
Depends-On: https://review.openstack.org/615557
2018-11-06 07:33:47 +00:00
Witold Bedyk
77887bbf05 Workaround to avoid surefire plugin error
* do not use system classloader
* upgrade maven-surefire-plugin to ver. 2.22.1

Change-Id: I8bc83a59164c4a79bae036600cacb450cdc8feb9
Story: 2004256
Task: 27792
2018-11-05 14:14:10 +01:00
Zuul
18e2980096 Merge "Update links in pom.xml" 2018-10-25 11:46:31 +00:00
Witold Bedyk
ffa84f7097 Add running tempest tests for logs-pipeline
monasca-common is used also by monasca-log-api. Therefore each change in
the library should be also tested with integration tests for logs
pipeline.

Change-Id: I50737e658507f7ec320d7a30c9996a2c6b020baa
2018-10-24 10:07:32 +00:00
melissaml
eb6eb9e683 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: I068ac92a340a5a31af53f77b69a702c5c138b4c8
2.12.0
2018-10-21 22:48:19 +08:00
Zuul
4f45ede78c Merge "fix tox python3 overrides" 2018-10-08 11:12:23 +00:00
Zuul
cb6b41fd67 Merge "Fix coverage job for Python 3" 2018-10-08 09:55:41 +00:00
Witold Bedyk
abc3f8dd97 Remove Docker tag based on timestamp
As agreed in spec [1] we don't want to create and publish tags based on
timestamp.

Story: 2001694
Task: 23322

[1] http://specs.openstack.org/openstack/monasca-specs/specs/rocky/approved/monasca-services-in-docker.html#work-items

Change-Id: Id72eb0ac7be7077bfaa8b8684a45494c09d92034
2018-10-05 10:57:47 +02:00
Doug Hellmann
3cdad50696 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: Idd29b6d5460510ec02ec10853a0809185e5823cd
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-10-05 08:13:48 +00:00
Witold Bedyk
1017229c39 Fix coverage job for Python 3
* add coverage check job to Zuul
* migrate to stestr as described in PTI [1]
* unmock OffsetOutOfRangeError to correctly recognize it as Exception
and not a mock. Otherwise TypeError exception is thrown [2].

[1] https://governance.openstack.org/tc/reference/pti/python.html#coverage-jobs
[2] http://logs.openstack.org/60/606660/2/check/openstack-tox-cover/b3c1492/testr_results.html.gz

Change-Id: Idcb8b11778ce02596c1c02417ee6c88a33c7da03
Story: 2003240
Task: 26900
2018-10-05 10:09:06 +02:00
melissaml
725d34c429 Update the outdated URL
Change-Id: I9be4cfb38f78e37cf3efadccd1e9eee2797a1bf5
2018-09-23 16:41:40 +08:00
Dobroslaw Zybort
15c761a6af Allow to build image with common from Gerrit
Story: 2001694
Task: 24226

Change-Id: I356c9fdde670433bef1f3c70e02f2f760521ee0a
2018-09-07 14:05:13 +02:00
Zuul
adfc935a62 Merge "Remove not used pykafka requirement" 2018-09-03 09:11:15 +00:00
Doug Hellmann
6e9396736b 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: I69c3590a06ed74e120785525eeef978ff824346e
Story: #2002586
Task: #24312
2018-08-26 08:37:26 +02:00
Doug Hellmann
fc35e69059 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: I7d718f96fb1a545afbfb07d40a77ccde5c3841a6
Story: #2002586
Task: #24312
2018-08-26 08:36:22 +02:00
Zuul
8022b3c85c Merge "Build and push images only on relevant changes" 2018-08-03 11:49:06 +00:00
Dobroslaw Zybort
9fd9a01e74 Build and push images only on relevant changes
Story: 2001694
Task: 24225

Change-Id: Ibbfe9d80abf5cdba7040fb46a14e60fa6c31f1fc
2018-08-02 09:34:43 +00:00
Zuul
925d74a297 Merge "Ensures that messages pass to kafka client are bytes string" 2018-07-31 14:03:05 +00:00
Zuul
a82dcb1f46 Merge "Implement MySQL check script for Docker" 2018-07-31 11:23:22 +00:00
Adrian Czarnecki
304772fa18 Ensures that messages pass to kafka client are bytes string
Story: 2003178
Task: 23324

Change-Id: I3ae6830fbbe80bf56726886d658c55dda965d717
2018-07-31 12:09:01 +02:00
Zuul
73f8dafd82 Merge "Make health checks more frequent in Docker" 2018-07-31 10:01:40 +00:00
Dobroslaw Zybort
dcea427a62 Implement MySQL check script for Docker
Story: 2001694
Task: 23321

Change-Id: I103c864832cd85ec528080cb7d49393c09127c60
2018-07-31 08:54:51 +00:00
Dobroslaw Zybort
2c1a2ed225 Make health checks more frequent in Docker
5 min was copy/paste from official docs. After reading more about health
checks in real world usage most examples was using duration around
5 seconds for interval. By default docker will show if service is
unhealthy after 3 intervals return error. So in previous timing service
would be taken out of poll (by e.g. docker swarm) after 15 min. For all
this time it would be returning errors for any communication to it. Now
it will be removed from poll of running services after 15 seconds.

Regarding timeout more examples was using something shorter. For all
services we are using if anything respond longer than 2 seconds then
something is wrong with this service. Monasca is not web service but
back-end service that should have high throughput.

Change-Id: I4486c4974de38dea33739fdc470f38fd99d428fa
2018-07-26 14:00:32 +02:00
Zuul
55dbc317ff Merge "Improve Zuul jobs with Docker names" 2018-07-25 13:59:38 +00:00
Witold Bedyk
34e4c58d50 Remove not used pykafka requirement
Story: 2003079
Task: 23153
Change-Id: Iba653db8935f9575a7838f6daa24b1ec90526815
2018-07-24 16:23:52 +02:00
Adrian Czarnecki
1cce6824ed Py3:Fix messages encoding for kafka producer
Story: 2000975
Task: 23056

Change-Id: Id0273c6c6f54342286d02e326a392e1479a15fe8
2018-07-23 13:12:17 +00:00
Dobroslaw Zybort
de60383266 Improve Zuul jobs with Docker names
Change-Id: I05efee28a1df1ef3e5780d64b72ede9d314339aa
2018-07-20 13:45:23 +02:00
Zuul
0a11428eaf Merge "Build Docker image in zuul" 2018-07-20 07:34:58 +00:00
Zuul
b2f734a7e9 Merge "Update README" 2.11.0 rocky-em 2018-07-19 11:23:02 +00:00
Zuul
7257c671c9 Merge "Add check for rst syntax" 2018-07-19 11:23:00 +00:00
Witold Bedyk
478ea19308 Update README
* move Python section to the top
* add license, source code and bugs references
* add caution notice about `pom.xml` in root directory

Change-Id: If9df2ffca621ee0b6b21d29ed91a6dde59684150
Story: 2002163
Task: 23055
2018-07-19 10:44:43 +02:00
Dobroslaw Zybort
6f97685454 Build Docker image in zuul
Story: 2001694
Task: 23054

Change-Id: I554e1efdfb7b996d805748a7930a76e2124e060b
2018-07-19 10:02:47 +02:00
Witold Bedyk
b18cde2dc8 Add check for rst syntax
Creating the release would fail if the syntax of README.rst is not
correct. Let's check it in the pep8 environment.

Story: 2002163
Task: 23044
Change-Id: I2856622af08cec7c801959ca85f4c77252263db5
2018-07-18 16:11:30 +02:00
Charles Short
7903657bd1 Switch to using stestr
According to Openstack summit session [1] stestr is
maintained project to which all Openstack projects
should migrate.
Let's switch it then.

[1] https://etherpad.openstack.org/p/YVR-python-pti

Change-Id: Iebd6f34335e4ef0dd3629e970661d8c9ef08754a
Signed-off-by: Charles Short <zulcss@gmail.com>
2018-07-16 11:40:15 +02:00
Zuul
def805bcc4 Merge "Minor language changes and added license headers" 2018-07-11 11:56:33 +00:00
Witold Bedyk
31f92092b5 Minor language changes and added license headers
Additionally:
* Move comment outside of `rm` command.

Story: 2001694
Task: 22889

Change-Id: I9dd334c05bf9e209427db1b987f475e031d11d80
2018-07-10 15:08:55 +02:00
Zuul
fd0c28d1cb Merge "Add base Dockerfile and supporting scripts" 2018-07-09 13:40:29 +00:00
Dobroslaw Zybort
2ce968d052 Add base Dockerfile and supporting scripts
Story: 2001694
Task: 12491

Change-Id: I81e0d0ecbb431ed7e26fcbcb4d347ac164c66736
2018-07-09 13:49:19 +02:00
Denis Poisson
6c91ded08b Convert README.md to ReStructuredTest format
Change-Id: I43b7b13c2339f1788f10980a2d9f8d61c06f1c39
story: 2002163
task: 22233
2018-06-19 13:23:57 +02:00
Adrian Czarnecki
38e3b64d57 Python3.5: Make KafkaProducer compatible with Py35
Change-Id: I9727a4aa4a2cabc1d55e6d242980152ef7d60011
2018-06-15 08:52:20 +02:00
Zuul
f1f1ba90fd Merge "fix tox python3 overrides" 2.10.0 2018-06-11 17:13:02 +00:00
Zuul
6e99f76214 Merge "ignore python2-specific code under python3 for pep8" 2018-06-11 12:46:33 +00:00
Sean McGinnis
87557c4963 Fix package check errors
Errors running `python setup.py check -r -s` due to required
metadata for the package caused by having 'author' set but
not 'author-email'.

Full error is:

```
python setup.py check -r -s
running check
warning: check: missing meta-data: if 'author' supplied, 'author_email' must be
supplied too

error: The docutils package is needed.
```

This updates both author and author-email to be consistent
with the values used in other OpenStack projects.

Change-Id: Icdcb9b9328e361ba4883af5b464c9968f72607e8
2018-06-07 15:25:51 -05:00
Doug Hellmann
193d1a3815 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: Ia156a087ff8f04307f255e61f3f2e9ffdae42861
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-06-06 17:03:33 -04:00
Doug Hellmann
2a362bea97 ignore python2-specific code under python3 for pep8
The type 'long' no longer exists under python 3. The runtime execution
of the code using it in the metrics module already detects the python
version, but when the linter is run under python 3 it does not apply
the same check. Add a noqa pragma to tell the linter to ignore the
line where 'long' is referenced to avoid an error.

Change-Id: If806e6461358ea523708eceed6fdcc3dfb8d75a9
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-06-06 17:03:33 -04:00
Zuul
c5436ecddb Merge "Sync requests-mock minimum version" 2018-05-17 08:29:33 +00:00