Commit Graph

38 Commits

Author SHA1 Message Date
Takashi Kajinami 17835cb3df List up extra requirements for drivers
Most of the drivers require extra requirements. This adds these to
the extras field in setup.cfg so that users can more easily install
extra requirements.

Also removes the lower-constraints.txt file because we already removed
tests of l-c by [1].

Note that the lower versions of SQLAlchemy and oslo.messaging are
picked up from requirements in the other repos, and further lower
versions might be allowed.

[1] bcca5bd4a8

Change-Id: If4492943199c75c294e4eb5a3600cf5d2bdad0b8
2023-11-14 11:05:47 +09:00
Sahid Orentino Ferdjaoui 908e740232 add support of otlp exporter
Depends-On: Idcff5d79b4884dd1cc7ed1ab42c9e4ce89d4a6d2
Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@industrialdiscipline.com>
Change-Id: I74cdcb2aa99b0162ba1c14059111f09d0bb534e3
2023-05-10 10:18:48 +02:00
Michael Johnson b9206a5349 Fix api index and module index
This patch fixes the index and module index for the osprofiler documentation
home page.
It also updates the documents tox environments to use a docs requirements.txt

Change-Id: I880f1c28232a299f50ea9ccc2178f1444efb9a41
2022-02-17 22:35:09 +00:00
Hervé Beraud 2794b9828c Adding pre-commit
Introduced changes:
- pre-commit config and rules
- Add pre-commit to pep8 gate, Flake8 is covered in the pre-commit hooks.
- Applying fixes for pre-commit compliance in all code.

Also commit hash will be used instead of version tags in pre-commit to
prevend arbitrary code from running in developer's machines.

pre-commit will be used to:
- trailing whitespace;
- Replaces or checks mixed line ending (mixed-line-ending);
- Forbid files which have a UTF-8 byte-order marker (check-byte-order-marker);
- Checks that non-binary executables have a proper
  shebang (check-executables-have-shebangs);
- Check for files that contain merge conflict strings (check-merge-conflict);
- Check for debugger imports and py37+ breakpoint()
  calls in python source (debug-statements);
- Attempts to load all yaml files to verify syntax (check-yaml);
- Run flake8 checks (flake8) (local)

For further details about tests please refer to:
https://github.com/pre-commit/pre-commit-hooks

Change-Id: If4bd505d6bf73d06ce2f6080cedb3b5576c881d9
Signed-off-by: Moisés Guimarães de Medeiros <moguimar@redhat.com>
2020-10-09 11:07:15 +02:00
Moisés Guimarães de Medeiros 6ff0187d33 Bump bandit version
This patch bumps bandit allowed version to >=1.6.0,<1.7.0 in order to
avoid the errors detailed here https://github.com/PyCQA/bandit/pull/393

Change-Id: I883e2aae7918086be73579627e91325f9fe33b77
Signed-off-by: Moisés Guimarães de Medeiros <moguimar@redhat.com>
2020-07-24 17:38:06 +02:00
Zuul 38d51b2e0f Merge "Switch to newer openstackdocstheme and reno versions" 2020-06-03 11:30:45 +00:00
Andreas Jaeger 1d77244f18 Fix pep8 failures
With an updated flake8, we get some new warnings. Update hacking
directly to version 3.1.0 and fix the problems found.

Note that before this change, flake8 used the default "ignore" list,
this now adds a new ignore list.

Change-Id: Iccbf4f30eb4e542d3824b7782f43eacda29c5a90
2020-06-02 17:07:50 +02:00
Andreas Jaeger c568c9f769 Switch to newer openstackdocstheme and reno versions
Switch to openstackdocstheme 2.2.1 and reno 3.1.0 versions. Using
these versions 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
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html

Change-Id: Ia700e656b4c2616ccbff32707eb4297a1dafbe3b
2020-06-02 15:17:57 +02:00
Ilya Shakhat 3fc760ad24 Enforce order of import statements
This patch adds flake8-import-order plugin and fixes
all found issues.

Change-Id: Ibbeae4afeb737401de48fb2e7e225eb0a969908b
2020-04-20 12:43:51 +02:00
Sean McGinnis 6a4d27f7b7
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: I76e01d55ff4d9095a6dbf520752042824225de73
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-18 11:57:01 -05:00
Andreas Jaeger 6e6d76aafe 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: I8ba89483c8e6b76011833cfc5080eab3fd269c8b
2020-04-01 11:18:56 +02:00
Andreas Jaeger 7eaa8648cd [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

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

Switch to using modern sphinx-build.
Remove cruft from setup.cfg

Drop non-voting jobs from gate queue.

Change-Id: I2cc764bd3de8130aa25868b57b2e89341c71617e
2020-02-04 11:24:14 +01:00
Radoslaw Smigielski 895dbc60c6 Fix elasticsearch version in python requirements
OpenStack Python requirements check fails on Python elasticsearch with error:

 > Requirement for package elasticsearch excludes a version
 > not excluded in the global list.

Change-Id: Iadb5a14d495dbf242970b8b1f4705cd33545a7eb
Closes-Bug: #1826782
2019-04-28 15:05:38 -06:00
Vu Cong Tuan 337e3c2d93 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: I75bea8174b9473b0648e1fc524dd8ea25dfb666d
2018-07-11 07:50:25 +07:00
Tovin Seven 4a2f002005 Add minimum version and fix dulwich issue
Main changes:
- Add minimum version for requirements [1]
- Fix dulwich issue that broke py35 gate [2]

Trivial changes:
- Re-format multi-line deps in tox.ini
- Verify and change constraints of pymongo, prettytable
  to match global requirements

---
requirements without minimum version definitaions may cause CI failure

Merge https://review.openstack.org/#/c/574367/ made requirements job
check for minimum version definitions, requirements without minimum version
may cause CI failure.

This patch sync the requirements with lower-constraints

---
Start using upper-constraints in tox venvs

Without this we are exposed to any breakages in dependencies, which
is currently blocking the repo because of a broken dulwich release.

Note that this required the removal of the explicit .[oslo_config]
requirement.  I'm not sure why that was there since it will be
pulled in by oslo.concurrency anyway and it broke the venv creation
when constraints were added.  Since I'm not sure why it was split
out as a separate thing I'm leaving the setup.cfg target but
removing it from tox.ini.

We also need to pin dulwich in lower-constraints, even though it's a
transitive dependency.  Otherwise the lower-constraints job installs
the broken latest version.

Transitive dependency that we need to pin due to
https://bugs.launchpad.net/tripleo/+bug/1778004
---

[1] https://review.openstack.org/#/c/575691
[2] https://review.openstack.org/#/c/577462

Co-Authored-By: Kevin_Zheng <zhengzhenyu@huawei.com>
Co-Authored-By: Ben Nemec <bnemec@redhat.com>

Change-Id: Ibfe5f460139849ba39b369321360f6f5a0e9e2a0
Closes-Bug: #1777083
Closes-Bug: #1778004
2018-06-25 19:00:16 +07:00
Tovin Seven 513a7c88a7 OSprofiler with Jaeger Tracing as backend
In this patch, I use Uber Jaeger as a tracer.
Trace/span from OSprofiler will be sent to Jaeger.
We can use Jaeger UI to view trace.

A sample image of trace in Jaeger:
https://tovin07.github.io/opentracing/jaeger-openstack-image-list.png

Reference:
- OpenTracing: http://opentracing.io/
- Uber Jager: https://www.jaegertracing.io/docs/

Depends-On: Iaac3ac3853867a67f7e386e762e0522076235daf

Change-Id: I8f75af487f50d5e67a1321a4c951d2a0d85733a1
Implements: blueprint opentracing-compatible
2018-05-29 06:03:46 +00:00
Tovin Seven 37f605d3f7 Remove lower bound from requirements
Change-Id: I7660e3aeca3721adef947029add5488dda767474
2018-04-27 07:57:36 +07:00
Tovin Seven e30bbfba51 Add lower-constraints job
Create a tox environment for running the unit tests against the lower
bounds of the dependencies.

Create a lower-constraints.txt to be used to enforce the lower bounds
in those tests.

Add openstack-tox-lower-constraints job to the zuul configuration.

See http://lists.openstack.org/pipermail/openstack-dev/2018-March/128352.html
for more details.

Change-Id: I4ec215baac733ef07a619c03c28406c994d493f5
2018-04-19 09:21:21 +07:00
Ilya Shakhat 0bb909c7a0 Remove Ceilometer support
Our current Ceilometer driver relies on old version of ceilometer client,
which is in deprecated state and not compatible with the latest Telemetry
projects (Panko, Gnocchi). The functionality of the driver is not tested
automatically and most probably broken. So it's time to let it go and
clean the code.

This patch leaves "messaging" driver as default for notification and
makes "connection-string" a required parameter in CLI. In the future
we may consider to change default notification driver, though it
requires proper release note handling in all affected projects.

Change-Id: Id8442c4ff13c5cc33fd909b4757757cc5f396f50
2018-01-18 12:01:09 +01:00
melissaml 3a42f3a1d6 Cleanup test-requirements
python-subunit is not used directly anywhere
and it is dependency of both testrepository
and os-testr
(probably was used by some tox wrapper script before)

Change-Id: I3c0ec9bda6cc07af0e6977608f80cff57c49ba95
2018-01-03 17:25:49 +08:00
Akihiro Motoki ef86e88f9f Switch from oslosphinx to openstackdocstheme
Change-Id: Ic6d11356de62f9779f96fbe15160ee1004c45245
2017-07-06 21:38:42 +00:00
Akihiro Motoki 4b20438a1f Enable warning-is-error in doc build
- Update sphinx version
- Fix sphinx warning

Change-Id: Ibf3361af30cec3c291cfdf50438cf49dd72427f8
2017-07-06 21:38:41 +00:00
ricolin ebbdece28a [Fix gate]Update test requirement
Since pbr already landed and the old version of hacking seems not
work very well with pbr>=2, we should update it to match global
requirement.
Partial-Bug: #1668848

Change-Id: I3a2c696417c46581de7acb0b1ac967ac5be150d0
2017-03-02 22:13:52 +08:00
Jenkins fc837718d1 Merge "Add Log Insight driver" 2016-11-07 19:44:53 +00:00
BENJAMIN VANHAVERMAET 1c6f8b60b2 Add a redis driver
Change-Id: I64768e282d5f3f32d9d79d15f59413d42df95037
2016-11-07 06:35:52 -06:00
Vipin Balachandran 6ce95900e8 Add Log Insight driver
This patch adds a driver for storing the trace data in VMware
Log Insight.

Change-Id: Ieb48e3dc40d81ea5e4f44aca092117316e69888b
2016-11-07 15:30:52 +05:30
ChangBo Guo(gcb) 9407108fee Add reno for release notes management
The release management team have indicated this is their preferred way
to collect release notes in future.

Closes-Bug: #1634356

Change-Id: I40ebe47509ba5cabd57ed8c4987ae6ec1e2b5d5f
2016-11-03 18:38:01 +08:00
ChangBo Guo(gcb) 243f6c8499 Update dependencies' version from project requirements
Sync latest requirements from global requirements.

Change-Id: I4564fa1b06bcd90acaab7273aaa7968af3d7bbe8
2016-10-20 14:21:55 +00:00
Alexander Ignatyev bcea148068 Add Elasticsearch driver
Change-Id: Idca6ff8a946ec46c65fab57f10cd17ebcdc8bc3e
2016-09-07 18:03:06 +03:00
Alexey Yelistratov 8027a1d3b7 Add tests for mongodb driver
Change-Id: I2c97c0e823928c643fa1192d84cd4dc303652a36
2016-08-08 19:55:21 +00:00
Alexey Yelistratov a23d829dba Add Ceilometer driver
Change-Id: I186ce1c33f56e62edc14edf099d83c545dd9c248
Spec: Multi backend support
2016-07-13 15:14:29 +00:00
Thomas Bechtold 4844e85ecf Remove discover from test-requirements
It's only needed for python < 2.7 which is not supported

Change-Id: I79b4a2c6591585f45ed10d2cd13a8d6846185b31
2016-06-10 10:45:46 +02:00
ChangBo Guo(gcb) f776ba2757 Enable bandit in gate
Bandit is a tool designed to find common security issues in Python code.
and pep8 is the usual linter target. So enable it in pep8 target.
Change-Id: Ie5e4350cde906c206fd5041e88983678eb37999e
2016-03-03 11:30:00 +08:00
Dina Belova 2d566bfff7 Update requirements
Change-Id: Ia6bc1eedddeebb0aceb01d3c34b066d0b268f34d
2015-12-14 13:08:59 +03:00
Boris Pavlovic b2c9b86ad7 Add OSprofiler docs
This is required by python-docs job + it's good to have documentation
on read the docs.

As we don't won't to duplicate work, index.rst is just symlink to README.rst

Change-Id: I1b42fc7c135367ca77949998c5e0db5fc5dd7434
2014-08-01 12:27:42 +04:00
Boris Pavlovic 79dea5ff3e Fix text requirements
Change-Id: I626bc18ed6bc64afe1fe0c496c42e95c23283701
2014-06-19 01:04:45 +04:00
Boris Pavlovic c4afc94a0c Update global requirments 2014-02-23 20:28:38 +04:00
Boris Pavlovic 903ca86952 Init Strucutre of lib 2014-01-09 11:25:23 +04:00