In Zed cycle, we have dropped the python 3.6/3.7[1] testing
and its support. Removing the py36 centos8 job as well as
updating the python classifier also to reflect the same.
[1] https://governance.openstack.org/tc/reference/runtimes/zed.htm
Change-Id: I269d1ca0b763d7806a3cec9d1be425d68f68fa67
This repo is now testing only with Python 3, so let's make
a few cleanups:
- Remove obsolete sections from setup.cfg
- Remove babel.cfg, this is not needed here at all
- Update requirements, no need for python_version anymore
- Use newer openstackdocstheme and Sphinx versions
- Remove install_command from tox.ini, the default is fine
- Use TOX_CONSTRAINTS_FILE, UPPER_CONSTRAINTS_FILE is obsolete
Change-Id: Ic40d3fdaac00791fb150c1dc68a35d53ec30043d
Monkey patch the original current_thread to use the up-to-date _active
global variable. This solution is based on that documented at:
https://github.com/eventlet/eventlet/issues/592
Also disable E402 to allow the change in.
Change-Id: I508fcd0707ecdd2bf720303f6cbb4087a38aaadd
Closes-Bug: #1863021
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: I0edbf803622a5a7212845fa73750283aa783c7a2
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
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: Ibe28b6b6bf3927e80816f0c5f1cb972fb6e2374b
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: I222964e47eebed6b3593b1954766a0691802ffef
As it was announced [1] global bindep-fallback.txt was removed and now
projects need to have a local bindep.txt to be able to install binary
dependencies for testing.
In test jobs the script tools/test-setup.sh is called which requires
mysql and postgres servers and clients to be installed.
[1] http://lists.openstack.org/pipermail/openstack-discuss/2019-June/007272.html
Change-Id: I37d64aca485eb81ac16d7d85d5b695e573c8793c
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: Ib27496313447cac962e4849223ab9eb96a9d873f
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: I3dc0d03eb3d9d41e3929d7e0e68ef93f45aef986
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
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: Icc7b5a39ef7e29f25ebfe8a10a4b8edba115505a
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
With the large reorg of the docs site, this can be easily *only* as
part of the murano documentation, there's no benefit for publishing an
extra document elsewhere. Fully integrate the documents into the manual.
Note that the separate build target was not linked from any of our index
sites.
Remove extra title from README.rst, it let to duplicated title in main
table of contents.
Remove also post job for publishing the firstapp document - it currently fails -
and is now not needed anymore.
Change-Id: Ib5259907b3f999062042e483ac81e6aed17705ca
This commit does 2 things:
1) Adds idempotent_id decorators to murano_tempest_tests using
check-uuid --package murano_tempest_tests --fix
2) Fixes the external white list error that is thrown by tox -e pep8
(which uses bandit but which was previously not included in
whitelist_externals)
Change-Id: I8d75601a40baf5749f12151df18a116e8fab628c
This adds the entry point and config file necessary for using the
oslo.policy sample generation script. It also adds a tox target to
simplify the usage of it. Finally, this commit adds
murano.common.policies.base.list_rules to
murano.common.polices (__init__.py) so that the base rules are
also included in the generated policy file.
Note that the policy sample is generated as a YAML which is
the standard adopted by Nova [0] and Keystone [1] and is now
the standard across OpenStack since Ocata [2]:
While the old json format policy file is still supported,
we recommend using the newer YAML format file, more intuitive
syntax.
The output from tox -egenpolicy will be:
murano.policy.sample.yaml in murano/etc.
The policy documentation was already updated in
I1a8581a559e4333a74d56a5bdce7e6d1f117907d
[0] e845d66a1b/etc/nova/nova-policy-generator.conf
[1] https://github.com/openstack/keystone/blob/master/config-generator/keystone-policy-generator.conf
[2] https://docs.openstack.org/ocata/config-reference/policy-yaml-file.html#older-json-format-policy
Change-Id: I2356ac0b2033bd83caaf2672189670fc300e55fd
Partially-Implements: blueprint policy-in-code
Running py2* post py3* tests results in error. Add
'rm -f .testrepository/times.dbm' command in testenv to
resolve this.
Change-Id: I64ad33b0076dd8c12981e966ef8a0c141d18c89d
This commit updates the N-1 job to work on a ocata constraints instead
of mitaka ones. The job is used to verify, that murano can be used on
previous cycle requirements
Change-Id: Icd5f58c1c603dbfe73b73963c04bb6bbd64248a1
This patch updates the pep8 tox job to also run bandit,
as is the convention across most projects.
The predefined bandit tox job is referenced by the pep8 tox job.
Change-Id: Ief99196c04f69499bcf328ec202971f82ff3c32e
Running `tox -e bandit` will raise two `B104: hardcoded_bind_all_interfaces`
issues. As of now there is no best practice except to add `# nosec` or to
add `--skip B104` to ignore the test. This patch adds the latter.
Change-Id: I8576a0dd5e70e3ec2934c3fb28810cb935686e64
This patch set adds a basic bandit check for murano. It can be invoked by
running the tox environment for bandit: ``$ tox -ebandit``. This is
intended as a starting point for using bandit with murano, and it should
be revisited to improve the testing.
* added bandit target to tox.ini
* added requirement to test-requirements.txt
Change-Id: I2947183331204e8dad5de95186e199458062c3e6
The gating on python 3.4 is restricted to <= Mitaka. This is due to
the change from Ubuntu Trusty to Xenial, where only python3.5 is
available. There is no need to continue to keep these settings.
Change-Id: Id2e67b9b8ffa696c75468801226143912f761c29
The complete html tree gets published but the .doctree is not needed for
publishing, place it outside of the html tree so that it won't pushed to
the website.
Also, only build html documents.
Fix bug_project, the report a bug URL should point to murano and not to
the api project.
Change-Id: Icf0c901257b452d216d293eb3f1c7b447b58201d
Add skeleton for "My first Murano app" guide for third parties
developers. It is needed for voting job creation in project-config that
builds this guide but does not publish it.
The main purpose of this tutorial is to facilitate the learning process
for Murano App newcome developers and show how it's easy to create a
Murano App for their own cloud applications from scratch. This guide
outlines the creation of Plone Murano App step by step:
https://review.openstack.org/#/c/346492/
Change-Id: Ib184891f7c4c94b0bb2ded92648302eaecad6b5b
Openstack infra now supports upper constraints for
all jobs. Updated tox.ini to use upper constraints
for all jobs
Change-Id: I06babce38bd90550f3d5d169e424209bc10ab11f
Closes-Bug: #1614361
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: Ied8b8b15761c282333c5a43ccdcc625be6930b9c
Adding a mitaka tox target, that will allow testing current code against
mitaka upper constraints.
Change-Id: I02969509c620d9872b48a57e69455cd00a7da334
This will force pip install to use the upper-constraints.txt specified
version of pip modules. When you don't do this, you are out on the
bleeding edge and become unstable everytime some python library in the
wide world changes in a way that you don't expect.
The releasenotes job has no constraints file, so override the install
command there.
Change-Id: Ib08baa8f57a281c75247ba3d9b9ab0211fe5d4fd
Partial-bug: #1598906
Port the last unit tests to Python 3, test_test_runner:
* TestCaseShell constructor: don't replace sys.stdout and sys.stderr
by StringIO, it's useless and prevent using print() to debug
failing unit tests.
* shell(): use mock.patch() to replace sys.stdout and sys.stderr
* test_version(): on Python 3, the version is written into stdout,
not stderr.
* test_package_is_not_provided(): the exact error message changes on
Python 3.
test_migrations:
* Use a byte string for archive and logo BLOBs
Remove whitelist of tests running on Python 3 from tox.ini since all
unit tests now pass on Python 3!
Blueprint: murano-python-3-support
Change-Id: Ic795b99526746ac0c06427001e4da27275b76d84