Commit Graph

490 Commits

Author SHA1 Message Date
OpenStack Release Bot 3fb0487e5b reno: Update master for unmaintained/victoria
Update the victoria release notes configuration to build from
unmaintained/victoria.

Change-Id: I68da5caef168d9f40853386ccdfc071d2462143c
2024-03-07 14:19:10 +00:00
Ghanshyam Mann 374b875ced Update python classifier in setup.cfg
As per the current release tested runtime, we test
python version from 3.8 to 3.11 so updating the
same in python classifier in setup.cfg

Change-Id: I8ac5852fa2617f7600311cef2810aa28c9b71128
2024-01-11 16:37:43 -08:00
Zuul 041fc11a9a Merge "Declare Python 3.10 support" 2023-11-16 17:50:33 +00:00
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
Takashi Kajinami ac796bdabf Move oslo.config to normal requirements
The oslo.config library is not really optional, because of multiple
implementations importing it. Actually the library is now installed
because the oslo.concurrency library depends on it.

Change-Id: I935ee16c6d52564ce6a61890a47cb57196ea5bad
2023-11-13 22:19:41 +09:00
Takashi Kajinami 0f9d1372d6 Declare Python 3.10 support
... and removes the remaining code and dependency for Python < 3.8.

Change-Id: I305d3b9cc43bedf980826b10ab26959d10e35997
2023-10-07 12:06:39 +09:00
Sahid Orentino Ferdjaoui 3c5feadda2 profiler: add python requests profile
Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@industrialdiscipline.com>
Change-Id: I00e9f5661a3bd54acc846e8c326896d21e70be36
2023-06-01 08:44:08 +02: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
Zuul 4f3eaa411c Merge "[profiler] hmac_key should be secret" 2023-03-31 13:20:32 +00:00
Sahid Orentino Ferdjaoui 52246cfbf6 devstack: remove jaeger container on unstack
Let's remove the docker container created with Jaeger Tracing when
unstacking, this avoid `./stack.sh` to fail when recreating the
environnement mentioning that a docker container named jaeger already
exists.

Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@industrialdiscipline.com>
Change-Id: I785c7b23be92eb5bc4da0366f705a77c3910d5c2
2023-03-23 13:05:33 +01:00
Takashi Kajinami 3c9e7d9aeb [profiler] hmac_key should be secret
... apparently because the parameter takes secret key(s) for data
encryption.

Change-Id: I76836aa2a99549b23174f1869cc09fbf0c30681b
2023-03-23 00:54:50 +09:00
Zuul 4239bcaa56 Merge "Change StrictRedis usage to Redis" 2023-02-17 13:43:33 +00:00
Sahid Orentino Ferdjaoui 91d7c35f1c jaeger: introduce process tags' option for tracer
Closes-bug: 2006611
Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@industrialdiscipline.com>
Change-Id: I938b52d7785d421015b888c9d70a5b0bf032772f
2023-02-16 12:17:31 +00:00
Sahid Orentino Ferdjaoui b7468756bc jaeger: introduce service name prefix
Closes-bug: #2003092
Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@industrialdiscipline.com>
Change-Id: I743fdc1203af6735d5772728e1b5c2ca16d41d9e
2023-02-16 09:08:50 +01:00
Sahid Orentino Ferdjaoui 9f50374dde jaeger: fix driver initialization for tests
The initializator is a singleton, we should release driver after each
setUp.

Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@industrialdiscipline.com>
Change-Id: If6728f792609d1dc59d86954a767afe802c435e3
2023-02-16 09:08:49 +01:00
YuehuiLei 7d2c871b71 setup.cfg: Replace dashes with underscores
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 like the following on new enough
versions of setuptools:

  UserWarning: Usage of dash-separated 'description-file' will not be
  supported in future versions. Please use the underscore name
  'description_file' instead

[1] https://github.com/pypa/setuptools/commit/a2e9ae4cb

Change-Id: I6f42330ee131be043d24152902e2209aca79ac1c
2023-02-09 11:47:54 +01:00
Tobias Urdin f8d80022f3 Change StrictRedis usage to Redis
The StrictRedis class is only an alias for
Redis in >= 3.0.0

Change-Id: I5b72306ec2d3164b285c24190c0d3f9ced4b6a31
2023-02-08 10:53:26 +00:00
Zuul be6aa856a5 Merge "tox: Add functional-py38, functional-py39 envs" 2023-02-08 10:47:52 +00:00
Stephen Finucane fa830926b5 tox: Add functional-py38, functional-py39 envs
While here, we also clean up some style issues in this file.

Fix CI issue to generated changelog with tox v4

Co-Authored-By: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@industrialdiscipline.com>
Change-Id: If6de005dd8229fe6f21dc103f50db083a415d7e4
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2023-02-06 14:13:57 +01:00
niuke 0b1bfadebd remove unicode prefix from code
Change-Id: I28bfa2a34222dae4ede0dad527f264eee4d5d0c4
2022-08-08 15:27:45 +08:00
Hervé Beraud e29b187151 Fix formattiing of release list
Change-Id: Ib8ac1b8288889789814334b384149ed19c8b4ef1
2022-05-27 14:04:22 +02:00
zhaolei.lc 32863011fe Make some revisions in the document
Make some revisions about the example of the
implementation of nested trace points and fix
some typos.

Change-Id: I26a791e1073a2d62bd0f1c79bc26cd898d4e2c55
2022-03-31 12:00:53 +08:00
Zuul 4bc4ed0117 Merge "Fix api index and module index" 2022-03-22 14:16:07 +00:00
Stephen Finucane 7300788ebd Update CI to use unversioned jobs template
As part of the migration of this project to the independent release
model, we failed to notice that the job template was still tied to a
specific release. We've now introduced a new unversioned job template,
'openstack-python3-jobs' [1], which was can and should use. Do this.

[1] https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/833286/

Depends-On: https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/833286/
Change-Id: If1b0368f69fc4b4f3040d5eb79b8d1f8a7d4c7bb
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2022-03-15 15:07:56 +00: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
Zuul a2e5a66696 Merge "Use TOX_CONSTRAINTS_FILE" 2021-10-04 18:32:29 +00:00
Zuul dccfd35c1d Merge "Remove six" 2021-10-04 18:32:28 +00:00
Goutham Pacha Ravi e475de6c67 Set manila config opts in devstack
When enabled, manila conf options need
to be set as well for the profiler to
work on devstack.

Depends-On: I3bce1f04d1cfebfacd78ed135a949a068c78987d
Change-Id: Ibdbcad7cf5b19442a36ff06b935153960200b96d
2021-08-02 17:16:25 +00:00
Wander Way 951efdce13 Uncap PrettyTable
This is now maintained as a Jazzband project [1].

[1] https://github.com/jazzband/prettytable

Change-Id: I8b1d3e2d5354b89577ca13eda1acb704c9429fbf
2021-05-17 09:14:46 +00:00
Daniel Bengtsson d153b99278 Move flake8 as a pre-commit local target.
The goal here is to avoid conflicts between flake8 and hacking version each
2 days.

Inspired from nova's approach[1].

The flake8 version to install will be determined by hacking and
requirements[2] will stay aligned instead of relying on different versions.

[1] https://opendev.org/openstack/nova/src/branch/master/.pre-commit-config.yaml#L26-L35
[2] https://opendev.org/openstack/hacking/src/branch/master/requirements.txt#L1

Change-Id: I4e5610ef33675a2363e0ef2a8997b1a8e736a0da
2021-03-23 13:17:30 +01:00
Hervé Beraud 1c28012fbc Use TOX_CONSTRAINTS_FILE
UPPER_CONSTRAINTS_FILE is old name and deprecated
This allows to use upper-constraints file as more
readable way instead of UPPER_CONSTRAINTS_FILE=<lower-constraints file>.

[1] https://review.opendev.org/#/c/722814/
[2] https://zuul-ci.org/docs/zuul-jobs/python-roles.html#rolevar-tox.tox_constraints_file

Change-Id: I4ceb0afbdc65dceac9625540d393d6f8fea7d134
2021-01-14 10:50:22 +01:00
Hervé Beraud bcca5bd4a8 Dropping lower constraints testing
We facing errors related to the new pip resolver, this
topic was discussed on the ML and QA team proposed to
to test lower-constraints [1].

I propose to drop this test because the complexity and recurring pain needed
to maintain that now exceeds the benefits provided by this mechanismes.

[1] http://lists.openstack.org/pipermail/openstack-discuss/2020-December/019390.html

Change-Id: Idfab7e1fe6223508ba0e49bb93365f7f5fd2ad04
2020-12-18 15:15:05 +01:00
wangzihao adc39e86ac Remove six
Remove six Replace the following items with Python 3 style code.
- six.moves
- six.StringIO
- six.add_metaclass
- six.string_types
- six.binary_type
- six.text_type
- six.integer_types
- six.PY3
- six.PY2
- six.iterkeys

Change-Id: Id9f2076be1a6a2d99db5acb682df8bebe893de36
2020-12-17 17:51:56 +08:00
Zuul dc25609886 Merge "Use py3 as the default runtime for tox" 2020-12-11 17:03:25 +00:00
Zuul f4c47a18e7 Merge "ignore reno generated artifacts" 2020-11-09 16:49:09 +00:00
Hervé Beraud 42d5819ca6 Use py3 as the default runtime for tox
Moving on py3 as the default runtime for tox to avoid to update this at
each new cycle.

Wallaby support officially the following runtimes [1]:
- Python 3.6
- Python 3.8

During Victoria Python 3.7 was used as the default runtime [2] however this
version isn't longer officially supported.

[1] https://governance.openstack.org/tc/reference/runtimes/wallaby.html#python-runtimes-for-wallaby
[2] https://governance.openstack.org/tc/reference/runtimes/victoria.html#python-runtimes-for-victoria

Change-Id: Ic2411eef55b26345fb8bb0d3d7c83cf6b366af94
2020-11-04 10:06:29 +01: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
Hervé Beraud 22d6bff062 ignore reno generated artifacts
Change-Id: Ie93d874918a3470a0e873c9f05ba7f9eb8801454
2020-09-22 11:08:09 +02:00
OpenStack Release Bot d0d65fd4f9 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].

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

Change-Id: I711dad984ce30bf12832561959826a1895e66fc8
2020-09-11 21:03:15 +00:00
OpenStack Release Bot ba16314e01 Update master for stable/victoria
Add file to the reno documentation build to show release notes for
stable/victoria.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/victoria.

Change-Id: Idfafbd378f9b5cf3c060edc4090177406ee0ea84
Sem-Ver: feature
2020-09-11 21:03:12 +00:00
Manish Kumar 5d82a02507 Fix StopIteration error on Ubuntu Focal
As per victoria cycle testing runtime and community goal,
we need to migrate upstream CI/CD to Ubuntu Focal(20.04).

StopIteration error happening in pep8 job when running on Focal.

we can see the failure in https://review.opendev.org/#/c/744331/

Change-Id: Iecdd3bfddb95adec77f8581f844cfc74ca59fc73
Story: #2007865
Task: #402207
2020-09-06 14:14:09 +00: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
Doug Hellmann e8dd381e62 switch to importlib.metadata to find package version
Importing pkg_resources has a side-effect of reading all of the
metadata for every installed python package. The newer
importlib.metadata module can load the metadata for one package at a
time, which makes this library load more quickly and improves the
startup-time performance of applications that use it such as
python-openstackclient.

importlib.metadata is part of the python 3.8 standard library and is
distributed separately for other versions of python.

Change-Id: Ib1870a3d102116f84c7677601fd44fdac41a13a6
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2020-07-06 11:07:17 +02:00
Daria Kobtseva 61a0ff8ace Fix empty 'args' and 'kwargs' when using 'hide_args' with Jaeger
When 'hide_args=True' is used in @profiler.trace() decorator
along with Jaeger driver, trace 'args' and 'kwargs' function
parameters are empty, which leads to a key error.

This change introduces a key check before adding those parameters to
tags.

Change-Id: I312da1b175a04d4ddee7f823111b8320dd4777d6
2020-06-21 12:29:42 +02:00
Hervé Beraud 8569b6d65f drop mock from lower-constraints
The mock third party library was needed for mock support in py2
runtimes. Since we now only support py36 and later, we don't need it
in lower-constraints.

These changes will help us to drop `mock` from openstack/requirements

Change-Id: I88e5f5961d0b4b0a71dc55141155fe23a9676a9a
2020-06-09 11:50:39 +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
Zuul c4c57a1680 Merge "Bump default tox env from py37 to py38" 2020-04-24 19:11:09 +00:00
Sean McGinnis 99332da670
Bump default tox env from py37 to py38
Python 3.8 is now our highest level supported python runtime.
This updates the default tox target environments to swap out
py37 for py38 to make sure local development testing is
covering this version.

This does not impact zuul jobs in any way, nor prevent local
tests against py37. It just changes the default if none is
explicitly provided.

Change-Id: I3727e107748db800149aef2ab5696b4bd48df425
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-24 10:25:53 -05:00