Commit Graph

76 Commits

Author SHA1 Message Date
manchandavishal 04f6266817 Remove hard-coded Python path in karma.conf.js
This patch removes hard-coded Python path in karma.conf.js
to fix the npm jobs because now these npm jobs run on
debian-bullseye and py38 are not available there.

It also update tox.ini for tox4 to fix the CI for the following:

- Drop "skipsdist = True".
  When skipsdist=True is specified, a target application is not
  installed into a tox env, but there seems no reason to do so.
  In various other OpenStack projects, a target applicatin needs
  to be installed into a tox vnev, for example, in docs and/or
  linter jobs and it causes failures with tox4. So dropping it
  would avoid potential future failures.
- Use comma to have multiple values in a single line for passenv
  variable in ``tox.ini`` file.
Change-Id: Ifc828c7142ca3c3f7105532b80fa5e0e91d80d69

Change-Id: I88f0be008537f34dd321f3afe8531ee0c237f681
2023-02-14 14:07:55 +05:30
manchandavishal 28d4393995 Cleanup for lower-constraints job
The patch 7f29364734 removes the lower-constraints job from
the gate but related file like lower-constarints.txt are not
removed. This patch removes the lower-constraints.txt file and
its reference from tox.ini.

Also TC passed a resolution about dropping the lower-constraints.txt
file and its testing. We will keep lower bounds in the requirements.txt
file but with a note that these are not tested lower bounds and we
try our best to keep them updated. For more info please refer [1], [2].

[1] https://etherpad.opendev.org/p/tc-zed-ptg#L326
[2] https://governance.openstack.org/tc/resolutions/20220414-drop-lower-constraints.html#proposal

Change-Id: Ica7454c88d17874ed29c5d29d399ba5684f7f9d1
2022-05-02 22:55:07 +05:30
Hervé Beraud 7d710044b6 Add doc/requirements
We need to specify doc requirements in doc/requirements.txt
to avoid problems with the pip resolver [1] for the release team [2][3].
Removing specific doc requirements from test-requirements.txt.

The problem here is that this repos haven't doc/requirements.txt file
and by default in this case zuul will use the test-requirements.txt file
to pull requirements [4].

This requirements file contains extra requirements like flake8 that
collided with those allowed in our job environment and so the new pip
resolver fails to install these requirements and the job exits in error.
It also update horizon version in requirements.txt to match the horizon
version in  lower-constriants.txt to fix requirements-check job.

This project meet the conditions leading to the bug.

[1] http://lists.openstack.org/pipermail/release-job-failures/2021-January/001500.html
[2] http://lists.openstack.org/pipermail/openstack-discuss/2021-January/019611.html
[3] http://lists.openstack.org/pipermail/openstack-discuss/2021-January/019612.html
[4] https://opendev.org/zuul/zuul-jobs/src/branch/master/roles/ensure-sphinx/tasks/main.yaml#L36

Change-Id: I425e9b4cfcf86e67c6288796e3da95b07769c6dc
2021-02-03 12:22:27 +00:00
Andreas Jaeger 7975ca5ca4 Cleanup py27 support
This repo is now testing only with Python 3, so let's make
a few cleanups:
- Remove obsolete sections from setup.cfg
- Switch to using sphinx-build
- 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
- remove unused sections from tox.ini

Change-Id: Ia14273b824c3ee16ac2c8517ea73c3fa8d24484b
2020-05-09 19:34:39 +02:00
Sean McGinnis 415485eaec
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: I464c93a8b919b9bddcf24a95a6b6471098cd4961
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-24 10:25:45 -05:00
zhurong b8827a41a4 Update the tox.ini
Change-Id: Ifc55427d0ba64c4201a72ce243bece523ccbb3e4
2020-03-31 18:29:07 -07:00
Andreas Jaeger c80e23edfd 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: I7073a478d38fb46619e7a300808e9449403e704d
2020-03-30 10:49:50 +00:00
manchandavishal 8ab6fbd0cf Drop Django 1.11 support
Django 1.11 ends its extended support in April 2020 (which is before
Ussuri release), so horizon drops Django 1.11 support in Ussuri.

tox envs for non-primary Django versions are no longer needed in tox.ini
as testing environments for non-primary Django versions are setup in
the zuul jobs now.

horizon>=17.1.0 is required to use Django 2.2. requirements.txt and
lower-constraints.txt are updated accordingly. for more info. please
refer [1].
Depends-On: https://review.opendev.org/#/c/700733/
[1] https://etherpad.openstack.org/p/Enable_Django22_support_in_Horizon_Plugin

Change-Id: I59e016fd771282798bd095c562e2fa11a8e4ea43
2020-01-09 02:31:14 +00:00
Ghanshyam Mann 5f11df8111 [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

murano-dashbaord 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: Ibcead8ed02becfce9edcefa7f044098d71df8dff
2019-11-20 06:53:04 +00:00
manchandavishal bf677445a9 Use Horizon project template for django jobs
Horizon defined a project template 'horizon-non-primary-django-jobs'
for django jobs. This patch use that template to run django jobs
here. For information please refer [1]

[1] https://review.opendev.org/#/c/681969/

Change-Id: I4d312087fdf00d297f5bf1fdef0bd234f8543651
2019-10-05 10:02:56 +00:00
zhurong 08fffa3275 Add Python 3 Train unit tests
This is a mechanically generated patch to ensure unit testing is in place
for all of the Tested Runtimes for Train.

See the Train python3-updates goal document for details:
https://governance.openstack.org/tc/goals/train/python3-updates.html

Change-Id: Ia4d824788f3080566b7394f43c6312c43d12c605
Story: #2005924
Task: #34214
2019-07-03 17:15:42 +08:00
zhurong fc8fda2e15 Update contraints url
Change-Id: I6a3d2b589823d7b13bc9348d6311d13363122930
2019-06-18 14:45:02 +08:00
zhulingjie d1ef202c13 Replace git.openstack.org URLs with opendev.org URLs
Change-Id: Ibe12d31369a781a31375211f4844bc5de41bdc66
2019-04-28 16:57:25 +08:00
Ghanshyam Mann cb9f3da854 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: Ib227f875beba5f8bb7cd41e8bef56c3f2486d534
2019-04-15 00:37:52 +00:00
taoguo ace879d97b Update min tox version to 2.0
The commands used by constraints need at least tox 2.0.

Change-Id: I1cff1dcac2e035249808e19ecec241ba84aa02dd
2018-11-10 15:14:15 +08:00
zhurong 4985bfa010 Switch test runner to django default runner
nose is not actively maintained now and Django default test runner
seems to have enough features.

Horizon test setting no longer depends on nose and related stuffs.
This commit cleans up nose related dependencies.
The change was made in horizon Rocky-3,
so horizon 14.0.0.0b3 is required at least.

And murano-dashboard using unittest instead of testtools.

Co-Authored-By: Akihiro Motoki <amotoki@gmail.com>
Change-Id: I419e0e166ea88c3ab1203f35ffa00928cf94acb1
Depends-On: https://review.openstack.org/599156/
2018-10-09 02:22:08 +00:00
zhurong caaa9ea88d murano-dashbord python3 fix and use standard cover tox env
Change-Id: I1d68ca7cbe325425cd1c05ff3101f19d3cb50b0a
2018-10-08 16:54:53 +08:00
Zuul 7c73d1d350 Merge "Add test 'node_modules' in tox.ini for flake8 exclude" 2018-08-26 16:16:55 +00:00
zhurong 32efd8bab7 Update py27-ocata to py27-queens
Change-Id: Id8e12338d376eb0b6dbc3114f36d4a60c0c8aeee
2018-07-25 16:51:26 +08:00
Qian Min Chen e146068251 Add test 'node_modules' in tox.ini for flake8 exclude
Change-Id: I71fa246f94a9ce376794cc2f11048a2e30a69e3f
2018-07-17 15:48:10 +08:00
Zuul b5acf1b10f Merge "Fix lower-constraints tox env" 2018-07-17 00:34:28 +00:00
Zuul 696906cbad Merge "Modify the 'tox.ini' file" 2018-07-16 22:20:02 +00:00
Akihiro Motoki 6285103ef0 Fix lower-constraints tox env
Previously install_command specifies upper-constraints
so lower-constraints actually did not work.
upper-constraints must be specified via 'deps' instead of 'install_command'.

The fix reveals that django-formtools 1.0 is not compatible with
Django 1.11 or later. django-formtools 2.0 seems the minimum requirement.

Castellan 0.16.0 is not compatible with murano-dashboard because there is
barbican_endpoint_type. The minimum required version is 0.18.0.

This commit also drops Django dependency in requirements.txt.
After commit 7e91070789187d9e6b5ac2b57ca755504e058e32 in
openstack/requirements repo, all project requirements.txt must
have lower bounds and Django entry hits this.
Horizon declares django dependencies, so there is no need to
declare django dependencies in murano-dashboard explicitly.

Change-Id: I3048ca5570523494f5a58a15449902f8cb3eb3a4
2018-07-16 16:35:21 +09:00
Zuul 5fd0cbf5a2 Merge "Add python3 django 1.11 job instead of django 2.0 job" 2018-07-16 00:53:07 +00:00
Qian Min Chen bd451574ae Modify the 'tox.ini' file
Since the horizon remove the 'run_tests.sh' file,
so there should remove '.venv' from the '.tox.ini' file.

Change-Id: I260671aa362c79ca33e4d58c65014342779c934d
2018-07-12 10:15:41 +08:00
Nguyen Hung Phuong a930b15bd7 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: I0a40f91edc9a7789842384f6f4ced0f229c183ef
2018-07-03 15:30:10 +07:00
Akihiro Motoki 57e8d7b9f8 Add python3 django 1.11 job instead of django 2.0 job
Django 2.0 is now used in tox py35 job, so there is no need for
py35dj20 job. Instead, Django 1.11 with python3 is not covered.

- py35dj20 job is dropped from tox.ini.
- python3-django111 is added to tox.ini.
  python3 is specified to basepython to avoid a specific python version.
- .zuul.yaml is updated to consume horizon-openstack-tox-python3-django111
  and drop horizon-openstack-tox-py35dj20.

Change-Id: I5fd37cfcf5e96c97f92f89687cced58bf2ef4fed
2018-06-21 23:46:09 +09:00
zhurong 87f1b5b658 Django 2.0 support and fix lower-constraints tox env
Replace django.core.urlresolves with django.urls

(In Django 2.0) The django.core.urlresolvers module is removed
in favor of its new location, django.urls.
It was deprecated in Django 1.10:
https://docs.djangoproject.com/en/2.0/releases/1.10/#id3

Add py35dj20 job to test Django 2.0 integration.
And update the lower-constraints.

Co-Authored-By: Akihiro Motoki <amotoki@gmail.com>
Co-Authored-By: Ellen Batbouta <ellen.batbouta@oracle.com>

Change-Id: I3456162c934eb48ccf180d80b5cf7ff5614221c0
2018-06-13 12:03:55 +00:00
Doug Hellmann 129da5afa3 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: I90e43331d22a2f2eb324e3b742153cd0327fcee3
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-26 00:45:51 +00:00
Erik Olof Gunnar Andersson 33aba64889 Install horizon directly from pypi
It's no longer possible to install horizon with our current
method, and it's causing the ci to fail.
http://lists.openstack.org/pipermail/openstack-dev/2018-March/128310.html

Depends-On: https://review.openstack.org/#/c/553627/
Change-Id: I998fbec953dc4754c81e5ed75e9481d670429019
2018-03-15 22:47:02 +00:00
zhurong 3ab9a10055 Add murano dashboard selenium functional test
Depends-On: I12cf2dbc62a25c1a56f7f0f7d54b7df412c2b397
Change-Id: I4b8f7e30c3d78c662bfcd44a5a46cfffc4dd2227
Implements: blueprint dashboard-selenium-tests-migrate-to-infra-ci
2018-01-22 13:05:31 +00:00
ellen 2b294c7593 Murano dashboard imports heat.py from Heat dashboard
Now that Heat is separate from Horizon, the Murano
dashboard file, tabs.py, must change its import of
the file, heat.py, from openstack_dashboard to
heat_dashboard.

Change-Id: I92ec24a70814da21b1332d6ba069b2f141bccb87
2017-12-18 14:05:09 -05:00
Kirill Zaitsev a0bfc472a2 Mark doc warnings as errors
Also remove unnecessary removal of build directory in the docs tox
target.

Change-Id: Ia91a7c473f2fc1a029a7462db70e8b5188468bbb
2017-07-07 13:01:56 +03:00
Vu Cong Tuan bcbb81377c Remove support for py34
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: I0dd92c97dea991f8b2d2527280b1bb26d8735a1c
2017-06-07 10:03:28 +07:00
Kirill Zaitsev 31db2d2486 Rename py27-mitaka to py27-ocata
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: I12eb9c429c6b2062e24275c0ae86334db4094bfc
2017-05-10 18:20:00 +00:00
zhurong 0ab9d0692f Delete import_exceptions from tox.ini
Current hacking check actually does not check attribute-level
imports. We can safely drop import_exceptions from tox.ini.

Change-Id: I65e36b9661fbcb39bd37d1024a7e0973c3edc416
2017-03-31 19:26:37 +08:00
zhurong d88bfdef39 Correct the pep8 exclude
.build -> build

Change-Id: I82f779640098353b6475a98e865d979ff3f34a11
2017-01-17 15:08:56 +08:00
zhurong d022cf22e9 Fix the wrong DJANGO_SETTINGS_MODULE in tox.ini
Change-Id: Icb2885a03bda38441116e5b33f0002dca101fa2c
2016-12-01 01:39:36 +00:00
Jeffrey Zhang 1b39482000 Add docs action for tox.ini
Change-Id: If106771048d999de0b3f82dbd143ece1bbebf738
2016-11-11 12:29:39 +08:00
AvnishPal 1fd620a8c2 Update tox.ini for upper constraints
Openstack infra now supports upper constraints for
all jobs. Updated tox.ini to use upper constraints
for all jobs.

Change-Id: Id934a824bf5a85d8c0b8208e48101a5f97dfb280
Closes-Bug: #1614361
2016-08-23 17:08:33 +05:30
OlehBaran afdb14346e Add script for unit test coverage job
This commit will add script that will allow to run non voting coverage job
which will detect any changes in the code coverage for each commit on review.

Change-Id: I0afdeefb55bfa28c8970048b112795b351abb48b
2016-08-08 12:18:27 +03:00
Jenkins 6f8a28b623 Merge "Add Python 3.5 classifier and venv" 2016-08-02 14:16:47 +00:00
LiuNanke ff05db6bba 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: If36557b74eb7760d5a031d96ee3b9e47748f7b30
2016-08-01 20:14:17 +08:00
zhurong d0bbbb5b00 Remove the H104 pep8 ignore from tox.ini
Change-Id: I1232345bb9905af59060ee36f32208a999d5f2e2
2016-07-30 16:20:31 +08:00
Kirill Zaitsev 40f84bc8b6 Add py27-mitaka tox target
Adding a mitaka tox target, that will allow testing current
code against mitaka upper constraints.

Change-Id: Ia84ffefb820b376274714ae93caca148ff315c4b
2016-07-11 20:49:50 +03:00
zhurong dd239e8fd2 Use upper-constraints in tox test environments
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: I5eae854d12c6048d1458ea0d2b1e47c4ff910544
Partial-bug: #1598906
2016-07-06 13:31:04 +00:00
Kirill Zaitsev a2305b69b4 Adds i18n machinery similar to the one used in horizon
Targets blueprint: murano-i18n

Change-Id: I1febd9404c4d99e4ef0cd30cf3e841df97847abe
2015-12-28 23:17:26 +03:00
Kirill Zaitsev a212641ad7 Introduced python3 support
Replaces types with builtin functions
Replaces force_unicode with force_text
Adds six usage of .iteritems and .string_types where relevant
Updates setup.cfg entries

Targets blueprint: murano-python-3-support

Change-Id: I369f79c4258367974eb676cecb6eb1c941803503
2015-12-22 16:43:12 +00:00
Ondřej Nový 0b4a4dc49d Deprecated tox -downloadcache option removed
Caching is enabled by default from pip version 6.0

More info:
https://testrun.org/tox/latest/config.html#confval-downloadcache=path
https://pip.pypa.io/en/stable/reference/pip_install/#caching

Change-Id: I8f9604584700276079fe5b51cfedffc820411b77
2015-12-11 23:06:04 +01:00
hparekh aa18bd9d78 Pass environment variables of proxy to tox
When a development environment is under a proxy, tox is failed even if
environment variables of the proxy are set.

This patch fixes this problem.

Change-Id: Ibde388f69e0e6bdc19900e770989d63f0d5f21dd
Closes-bug: #1524824
2015-12-10 13:00:10 +00:00