Commit Graph

104 Commits

Author SHA1 Message Date
Takashi Kajinami
75c32dc34f Stop overriding install_command
... because upper constraints can be defined by the deps option.

Change-Id: I723774c6370ed46ad4777d57025d659978572e6f
2024-04-19 15:53:10 +00:00
8049697fc9 Switch to 2023.1 Python3 unit tests and generic template name
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for antelope. Also,
updating the template name to generic one.

See also the PTI in governance [1].

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

Change-Id: I29fcb9afa016b1321b0b4c0118a8d7ffbc00b02e
2023-01-21 09:29:14 +08:00
Takashi Kajinami
25146d215c Remove lower-constraints job/tripleo job
During the last PTG, TC agreed to remove the lower-constraints job[1].
Because the job is currently broken, this change removes the job
according to the decision.

[1] http://lists.openstack.org/pipermail/openstack-discuss/2022-April/028104.html

This change also removes TripleO job because TripleO no longer uses
Zaqar.

Change-Id: I480ce9304a51fb2fa1818a0f6ea36116230ff506
2022-04-13 10:51:36 +09:00
Zuul
1726ac41b5 Merge "Use TOX_CONSTRAINTS_FILE" 2021-12-16 03:06:31 +00:00
wangzihao
8dae90a98c Changed minversion in tox to 3.18.0
The patch bumps min version of tox to 3.18.0 in order to
replace tox's whitelist_externals by allowlist_externals option:
https://github.com/tox-dev/tox/blob/master/docs/changelog.rst#v3180-2020-07-23

Change-Id: Ifb8d4f589c2fb8fa2adc0372d1d54077afe5b32d
2021-07-09 10:40:44 +08:00
wanghao
bf086eb753 update lower constraints
Because autobahn 20.7.1 depends on cryptography>=2.7, we
need to update the version of cryptography.

Change-Id: Ib89beed50f5d6e63fe6d75bdd24a4c879bd4834a
2021-01-08 08:45:55 +08:00
zhangboye
72d12f01c1 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>.

Change-Id: Ibbaea3fee6645ac15e808b87882be1b33c964112
2020-12-24 14:06:51 +08:00
Andreas Jaeger
1d9a681b83 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.

Remove hacking and friends from lower-constraints, they are not needed
to be installed at run-time.

Change-Id: I602e3f3dd3f158799f910d73ac9c759efe15fcc0
2020-04-02 10:18:47 +02:00
Ghanshyam Mann
22ade4fa77 [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

Zaqar 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: I0fde9d2f16f3cc77be3d4cab482fa0fb7ab9e7fc
2019-12-13 00:22:57 +00:00
Zuul
a3a2ac338a Merge "Fit the StopIteration for py37" 2019-08-13 09:10:09 +00:00
wanghao
b63d025135 Fit the StopIteration for py37
In Train we will switch to use py37 for tests.
There is a breaking change between Python 3.6 and 3.7
that is making it an error to raise a StopIteration exception
from a function or generator(https://www.python.org/dev/peps/pep-0479/).
So we need to fix it in code.

Change-Id: I003be4193944bc4176768c488f2f71b58fcbd58d
Closes-Bug: #1837856
Story: #2005924
Task: #34258
2019-08-01 09:07:13 +08:00
Andreas Jaeger
5f9b4327d9 Update api-ref location
The api documentation is now published on docs.openstack.org instead
of developer.openstack.org. Update all links that are changed to the
new location.

Note that redirects will be set up as well but let's point now to the
new location.

For details, see:
http://lists.openstack.org/pipermail/openstack-discuss/2019-July/007828.html

Change-Id: Ia47f486c79a108f6d4ffa419c59b91ad1199c718
2019-07-22 18:49:39 +02:00
Zuul
05cd037db5 Merge "Switch to using stestr directly" 2019-07-08 04:08:06 +00:00
Zuul
17377699c9 Merge "Dropping the py35 testing" 2019-06-05 04:19:08 +00:00
Sean McGinnis
a0aba998f7
Switch to using stestr directly
ostestr is deprecated and projects should now be using stestr directly
for running tests.

Change-Id: Iad8911d6eb352c6e5b3b9fdcda6e9280b7efb5de
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2019-05-29 10:48:28 -05:00
Sean McGinnis
1af2c91e41
Unblock gate failures
There are a few issues causing all gate runs to fail that are addressed
in this patch.

Update constraints to match global requirements:

There are a few local requirements that conflict with what is now in
upstream global-requirements. This updates sphinx to match the
constrained versions due to incompatibility with py2 and uncaps
jsonschema.

Update handling for falcon 2.0.0 behavior changes:

The 2.0.0 release of falcon changed the default values for two request
query parsing options that would cause failures due to unexpected
results. This sets those options to their previous defaults to maintain
compatibility across 2.0.0 and pre-2.0.0 versions of the package.
Lower constraint version raised to 1.1.0 where the options were
introduced.

There are additional integration test failures with Falcon 2.0.0 that
were due to changes in the subscription URL path.

Closes-bug: #1830903

Requirements and upper constraints not enforced in some tox targets:

The docs and api-ref tox targets were not setting the right dependencies
or the upper constraints to use for pip installs. Also updates the
constraints to the newer preferred static redirect URL maintained by the
release team.

Co-authored-by: wanghao <sxmatch1986@gmail.com>
Change-Id: I19c5363878c629a04e1be902c865ee7cea92dcd9
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2019-05-29 09:31:18 -05:00
Ghanshyam Mann
c3d702a013 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: I8b2fb0c0dc4988d0f35dec9b90124999a591b3ba
2019-04-25 06:56:02 +00:00
Rui Yuan Dou
7681ed7c72 Add .stestr.conf configuration
os-testr has moved over to use stestr instead of testr. While this
is usually compaible with existing settings, there is a warning
that is emitted when .stestr.conf is not present. It is usually
able to fall back to parsing the .testr.conf file, but to be more
correct and to prevent future problems we should update the config.

Change-Id: I95a6d1135fb4861bd3fb2086ae7a63e486130db0
Closes-Bug: #1809062
2018-12-20 11:03:54 +08:00
Vieri
ce8a30c463 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
targets.

Change-Id: Id762433a6dcccfc39abe6ce744a945fca16010d2
2018-11-09 03:27:39 +00:00
Zuul
5eafe6a9a1 Merge "switch documentation job to new PTI" 2018-09-15 07:18:39 +00:00
xywang
b926235153 Fix lower constraints job
Change-Id: Id1d406442f1a59474cfa6c96eb99bddecfe1c163
2018-09-13 14:38:06 +08:00
98k
4b9a982ff4 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:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Fix tox doc environment so that this works:
* move doc8 to pep8 following PTI
* build doc dir, not api-ref

Change-Id: I57003bd81f8214f27e3ca95ea87bba24fd44191b
Story: #2002586
Task: #24346
2018-09-13 06:20:55 +00:00
Doug Hellmann
45eea410ba 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: I98cf0911acb2f24e5d48661e20ff4a068b678754
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-07-24 07:38:52 +00:00
Zuul
788d57ed41 Merge "CONF file structure refactor" 2018-06-22 05:03:56 +00:00
xywang
a7df08deb9 CONF file structure refactor
This is the openstack governance goal that the config files should
be merged into one folder to make the code to be better understood
and managed.

Change-Id: I33dd85145d9f5b0384323ffa51b4d68de0aeb5b7
2018-06-04 09:11:46 +08:00
Nguyen Van Trung
5d26144664 Remove ignore D000 in validation code
This commit going to remove --ignore D000 which had raised
alot of issues, such as:
- "D000 Cannot analyze code. Pygments package not found."
- Cannot check LOG which have '_' symbol in code-base.

And they also fixed in https://review.openstack.org/#/c/568729/

Change-Id: Ic5258e0262c11b9f878d867a3354aa7d1f6e67b4
2018-05-30 10:33:36 +07:00
xywang
17ef71a482 Follow the new PTI for document build
For compliance with the Project Testing Interface as described in:
https://governance.openstack.org/tc/reference/project-testing-interface.html

For more detials information, please refer to:
http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html

Change-Id: I444cdaad0d83d9d8795dc03793aefe2fa3a51203
2018-05-22 06:12:22 +00:00
Zuul
80dfd0487a Merge "add lower-constraints job" 2018-03-26 10:05:05 +00:00
Doug Hellmann
2958cc198a 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: I9bd440a026578846d570cf750728c01e6f4b7e36
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-22 19:15:34 -04:00
Anusree
8ebee3cc69 Pypy is not checked at gate
Change-Id: I03ac90112e50c80568026847b7327775ca0d26fc
2018-03-21 18:17:29 +05:30
gengchc2
856884641f Redis connection support password configure in zaqar
Redis connection doesn't support password configure in zaqar,
so redis-server can not set a password. If redis service doesn't
set a password, it will suffer a large number of attacks.
The patch will support password configure in zaqar. In addition,
it is needed to add unit test in the previous
patch[https://review.openstack.org/#/c/511676/].

Change-Id: I03661584f1c24fdb3e76a819c9eaa0ed32f272c4
2018-01-03 00:55:34 +00:00
Lance Bragstad
3f7cc0a460 Implement basic policy module in code
This change prepares the zaqar project to start implementing policies
in code. Subsequent patches will register more zaqar policies in code
and remove the corresponding entry from the policy file maintained in
source.

This is part of a community effort to provide better user experience
for those having to maintain RBAC policy. More information on this
effort can be found below:

  https://governance.openstack.org/tc/goals/queens/policy-in-code.html

bp policy-and-docs-in-code

Change-Id: I5d804b589df215fddc18257fc9f05ba2e0d708bd
2017-10-10 06:28:29 +00:00
liuyamin
49a397ebfb Use doc8 check
doc8 is a linter for documents and used in openstack-manuals. It is better to
enforce document linters for simple checking.

The current rules are really simple like:
- line length check (80 chars)
- new line at the end of file
- Trailing whitespace

Change-Id: I328e2b2b82739696b95eca4a4130ca347893b0dc
2017-08-10 09:07:41 +08:00
yushangbin
3a01f0b6c5 Remove install-guide env which is no longer effective
The install-guide directory was moved to doc/source directory when
migrating docs.

Change-Id: Ib593d055e4d29699177edddf9b49ce02372cd93a
2017-07-31 17:12:10 +08:00
Ngo Quoc Cuong
ff822a3d21 Add log hacking rules
- [C312] Validate that logs are not translated. [1]
- [H904] Delay string interpolations at logging calls. [2]

[1]https://docs.openstack.org/oslo.i18n/latest/user/usage.html#creating-an-integration-module
[2]https://docs.openstack.org/oslo.i18n/latest/user/guidelines.html#adding-variables-to-log-messages

Change-Id: I0d42c52d90476f2eabbaf0eedfec5d6055117422
2017-07-05 03:12:32 -04:00
Andreas Jaeger
b027aa0a77 Fix api-ref building
The current os-api-ref and Sphinx packages warn about a couple of
problems. Fix them all:
* wrong order of entries in parameters.yaml
* missing parameter
* too short underline

Also, treat warnings as errors for Sphinx to avoid regressions.

Change-Id: Id129cc709df38385a8cfe6dc12ffca6d4ba4857e
2017-03-04 18:58:42 +01:00
Fei Long Wang
d3f69d93c0 Using os-testr to get better report
As a wrapper of testr, os-testr can provide subunit-trace for output
which is useful for debug.

Change-Id: I99f3a01ea85cbbf2b9a970b75bff19c63f7e44eb
2017-02-08 22:45:40 +00:00
Fei Long Wang
95b2290ac1 Remove py34 support in favour of py35
Change-Id: Iceb1a9c54728011a78874c32197391a1d2c5fd67
2017-01-16 16:56:20 +13:00
Kevin_Zheng
828bab9d66 Enable coverage report in console output
Enable coverage report in console output

Change-Id: Ifdb986b2c4b5acd13ff03fa640ba827dd5c17530
2016-12-30 16:50:51 +08:00
AvnishPal
3b6932f676 Use upper constraints for all jobs in tox.ini
Openstack infra now supports upper constraints for
all jobs. Updated tox.ini to use upper constraints
for all jobs.

Change-Id: I74a511e3d0f5c76506c0505fd9cc980b48b242a5
Closes-Bug: #1614361
2016-08-22 07:17:05 +00:00
Ronald Bradford
43765a0f21 Cleanup i18n marker functions to match Oslo usage
Define marker functions as per usage in documentation.
http://docs.openstack.org/developer/oslo.i18n/usage.html

Change-Id: I564f5d1f31314be5c18420b6bc3d694a561d78f2
2016-07-25 12:04:17 -04:00
Jenkins
f9ad29d968 Merge "Remove docs,comments,references to Oslo Incubator" 2016-07-21 08:20:21 +00:00
Jenkins
bab10869f9 Merge "Add Python 3.5 classifier and venv" 2016-07-14 08:57:17 +00:00
Yatin Kumbhare
8703ead0c2 Add Python 3.5 classifier and venv
Now that there is a passing gate job, we can claim support for
Python 3.5 in the classifier. This patch also adds the convenience
py35 venv.

Change-Id: Ifb0804dd27c5e14418ec61ddfed0790d693d1bde
2016-07-12 17:41:43 +05:30
Ronald Bradford
8480440cdb Remove docs,comments,references to Oslo Incubator
Oslo Incubator is no longer used in this project and is not longer
supported by the Oslo project.

Change-Id: I97be93894b02f47f5cdd1dcc237b537ff8e2bbdb
2016-07-11 15:33:22 -04:00
Thomas Herve
87af703ffc Cleanup integration tests setup
At some point integrations tests were supposed to be run against an
existing Zaqar server, but this doesn't work anymore and is not tested
anywhere. Let's remove the configuration and the setup for it.

Change-Id: I44cd22366e52853ebc06b6089d33d9e0dd7ed08f
2016-06-23 21:01:44 +02:00
Jenkins
70e15ddf0c Merge "Add Zaqar installation guide" 2016-06-21 02:05:12 +00:00
Andreas Jaeger
d8cde2ae6b Fix post install jobs
The venv environment is used for post install jobs and thus cannot
currently use constraints, use an unconstraint install command for it.

Example failure:
http://logs.openstack.org/b8/b8a70e4aeca83ebefad4b127af71b1bd125efa40/post/zaqar-branch-tarball/d9fe983/

Change-Id: If6e9f85b3a8b15048453bf1177812fb37a8e2d54
2016-06-16 19:50:57 +02:00
Eva Balycheva
5134d3018b Add Zaqar installation guide
This patch adds Zaqar-specific contents of the OpenStack Installation
Guide in the Zaqar repository per [1]. It only covers installation on
Red Hat-based systems.

Also this patch adds tox.ini environment for install-guide and adds
openstackdocs-theme to test-requirements.txt.

The Zaqar Installation Guide structure is based on Install Guide
Cookiecutter: https://review.openstack.org/#/c/314229/.

[1] http://specs.openstack.org/openstack/docs-specs/specs/newton/project-specific-installguides.html

Change-Id: I72300c146b22511da4432775fc84e8c821a3fd12
Implements: blueprint install-guide-in-tree
Partially-Implements: blueprint projectspecificinstallguides
2016-06-15 03:15:41 +03:00
Jenkins
4c01f71c3e Merge "Always use pip constraints" 2016-05-31 03:48:17 +00:00