Commit Graph

249 Commits

Author SHA1 Message Date
Akihiro Motoki 8390e9d6d2 Fix tox-checkbuild CI job
[Changes in zuul configurations]
- playbooks/checkbuild/pre.yaml calls ensure-nodejs role, but the default
  nodejs version defined in ensure-nodejs role is still 6. nodejs6 repo
  is no longer available. This is the cause of the job failure.
  Let's specify nodejs_version used in horizon by default.
- Ensure to install tox globally in the system.
  tox -e checkbuild calls "tox" as the test commands,
  so it needs to be installed globally.
- Specify "python_version" so that zuul ensures to install a required
  version of python interpreter.

[Changes in cookiecutter template]
- hacking version in test-requirements.txt was too old.
  It is updated to use more recent version which horizon uses.
- Update python version to 3.9 in tox.ini.
- Install horizon and its dependencies separately.
  The constraints file contains horizon, so installing horizon along with
  the constraints file results in a version conflict error.

Change-Id: If4bae3fde1f29eeb1d4d43942acc21ff2ef19482
2022-04-12 09:46:36 +09:00
Andreas Jaeger 3b5d1a5de3 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.
Do not set version for releasenotes, they are always unversioned.

See also
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html

Change-Id: Ia2fa8ed0001da2696c87253ad2251260a4a90882
2020-05-26 08:54:11 +02:00
Zuul d3bc715b79 Merge "Use ensure-* roles" 2020-04-14 00:01:21 +00:00
vass 653ed27614 Use ensure-* roles
The install-* roles in zuul-jobs have been renamed to ensure-*, follow
the rename.

Depends-On: https://review.opendev.org/#/c/719411
Change-Id: I1106ad9f78be7c2ba0fc8413252e3ef051d752b5
2020-04-13 15:00:44 +02:00
Andreas Jaeger 32ec8b47b1 Drop py27/py35
Drop py27 and py35 testing, for Ussuri those are dropped already.
Update for current django 22 testing.
Remove py27 cruft.

Change-Id: Icde1a7be481a56ca2d0c64a651ad7d2a7f895441
2020-04-13 10:41:25 +02:00
manchandavishal f655ea66c8 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: I70f79c2643202a53102f820b111faa7bd5b6f103
2019-10-05 09:55:21 +00:00
manchandavishal 0a388a6096 Update the constraints url
For more detail, see http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html

Change-Id: I858fa9318d99d48fe475b34f05dc7bf1f537f690
2019-09-19 14:56:31 +00:00
manchandavishal 3216c90db0 Changes for url transition to OpenDev
This commit changes openstack.org URL to opendev.org URL
as discussed here [1]

[1] http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html

Change-Id: I10d71b6face1f58c42ae3e2a590f1ac77fb5e4af
2019-04-23 05:14:24 +00:00
OpenDev Sysadmins 16c747479e OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:29:12 +00:00
Shu Muto e25558891c Remove python3.5 support
Also, use bionic node for ci.

Change-Id: Ia9cf9bf4726927a445ac3a5d9dfa86148d0691b5
2019-04-16 18:05:19 +09:00
Ian Wienand 9e72bf4fa6 Replace openstack.org git:// URLs with https://
This is a mechanically generated change to replace openstack.org
git:// URLs with https:// equivalents.

This is in aid of a planned future move of the git hosting
infrastructure to a self-hosted instance of gitea (https://gitea.io),
which does not support the git wire protocol at this stage.

This update should result in no functional change.

For more information see the thread at

 http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003825.html

Change-Id: I7c7a57b1eeec5f0b40ecf6913ce40caf5c63feba
2019-03-24 20:36:22 +00:00
Zuul ae22981115 Merge "Add nodejs10 jobs on bionic." 2019-03-19 09:18:59 +00:00
manchandavishal 7737fab366 Add nodejs10 jobs on bionic.
Depends-On: https://review.openstack.org/643625
Change-Id: If7e30042cea67e423803441ad653bf6359c700ad
2019-03-19 08:30:25 +00:00
Zuul 13f20fd95a Merge "Update hacking version" 2019-03-19 04:11:24 +00:00
jacky06 1ed0df5e37 Update hacking version
Use latest release 1.1.0

Change-Id: I0cac5ed78ea95da34364a67bf4c2763d67cf19eb
Co-Authored-By: Shu Muto <shu.mutow@gmail.com>
2019-03-19 11:58:09 +09:00
Monty Taylor 0968d228c2 Run node jobs using version 4 on xenial nodes
Until such a time as we figure out a strategy off of 4 for these
jobs, we should run them on xenial.

Depends-On: https://review.openstack.org/643198
Change-Id: Iad915c80b33f6fd6d9e74590dba0988a0b4c9620
2019-03-15 08:04:08 +00:00
Shu Muto eb5c1601fb Use ubuntu-xenial for nodeset
Until bionic nodeset becomming available.

Change-Id: I00f7939997283284a11b15733c51965ef9e7a861
2019-03-15 16:45:23 +09:00
Jeremy Stanley af2835fd4f Update contact address to openstack-discuss ML
The openstack-dev mailing list has been retired and its
conversations now take place on openstack-discuss instead.

http://lists.openstack.org/pipermail/openstack-dev/2018-November/136501.html

Update this cookiecutter so that new projects don't copy over the
obsolete ML name.

Change-Id: I720a4c93e2c004814e4dd8815acef784098f4fc6
2018-11-30 19:22:30 +00:00
Jeremy Stanley 947c7c9776 Clean up .gitignore references to personal tools
Developers run all sorts of different tools within Git repositories,
any of which can leave their own special trashfiles all over the
place. We can't every hope to catalog them all, so better to
recommend developers simply configure a global core.excludesfile to
filter the irrelevant files which tend to get created by their
personal choice of tools.

To this end, remove the long-standing sections for "Mr Developer"
and "Editors" since their mere existence here sends the signal that
we welcome (and have time to review) additions for any old tool
someone ever might happen to try. Also add a comment block
explaining this, for clarity.

We can, and should of course, continue to list files created by the
tools recommended by our workflow (test frameworks called from tox,
documentation and packaging builds, et cetera).

This change is a port of Ib58a57267b064e4142686de6c37a70dbff04b9a7
from the openstack-dev/cookiecutter repository.

Change-Id: I79569d8693937c436056e90116cc3f59b4a34507
2018-10-05 18:09:24 +00:00
huang.zhiping 2c5f68fe50 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: I7428f118c92f6a4c67bdb2c855df1a933587518b
2018-10-03 02:21:50 +00:00
Doug Hellmann 0a686fd0fe 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: I9b8760c932f160e5f7a664bcf2784b069715f3c6
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-10-02 00:41:53 +00:00
Shu Muto aee1f15ee8 Add upper-constraints.txt into post-install
Change-Id: I6029bfd0768030a65298d7a2d63b34339ea77c71
2018-10-02 00:10:51 +00:00
Zuul c15233cdbc Merge "Prepare to support python3.6" 2018-09-11 05:12:29 +00:00
Zuul 6b913b3e36 Merge "Remove mox3 dependencies" 2018-09-11 05:12:28 +00:00
Shu Muto cfc94a5f97 Remove mox3 dependencies
Dependency for mox3 is fully removed. So this patch removes mox3
dependency from followings:

- test-requirements.txt
- doc/requirements.txt

Change-Id: Ice38543a889fd3e819620dad021a403f7697cd1a
2018-08-22 10:45:18 +09:00
Shu Muto 9293e1e8cb Prepare to support python3.6
This patch prepares python3.6 support.

- Add py36-local into tox.ini
- Add py36 job as non-voting.
- Support any python3.x on postinstall in package.json and karma.conf

We should add py36-local into tox.ini and support for python3.6
into setup.cfg when we decide to support python3.6 formally.

Change-Id: Ia4d7ed7fc2a7843beb532302e4ed4b856bcc6195
2018-08-20 06:17:59 +00:00
Zuul 0d4e63c03d Merge "Drop nose dependencies" 2018-08-20 05:50:02 +00:00
Zuul 8edc88ce57 Merge "Zuul: Remove project name" 2018-08-19 10:55:12 +00:00
Andreas Jaeger cbcfaafed2 Zuul: Remove project name
Zuul no longer requires the project-name for in-repo configuration.
Omitting it makes forking or renaming projects easier.

Change-Id: I55d92ba14171bc1aca4ecace25398f3827b3c2cf
2018-08-16 18:48:26 +02:00
Akihiro Motoki cd26031c1c Drop nose dependencies
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.

Change-Id: I0ddd009e656684a06ca70a07c79e64ce436c8b93
2018-08-17 01:30:03 +09:00
Chuck Short 7609203c2c Remove use_mox directive
As of horizon 14.0.0.0b2 or later the use_mox directive is
unecessary so we can remove it.

Change-Id: I9cf327b3bab5913cf877ddc96ddb371b0dfcdb4f
Signed-off-by: Chuck Short <chucks@redhat.com>
2018-08-16 11:18:41 -04:00
Zuul e6e6e3f4ca Merge "Add python3 django 1.11 job instead of django 2.0 job" 2018-07-20 01:48:40 +00:00
Shu Muto d6a59f8f80 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.
- py3-dj111 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.

Also, change basepython from python3.5 to python3 for docs and js jobs.

Change-Id: I04d3d4c3520150293951fb5e09e7d4513a1ca1ca
2018-06-22 14:37:38 +09:00
Shu Muto 40ba040e4c Clear selections for table view
Item selections on table view for batch actions does not be cleared
after execution of actions.
This patch ensures to clear item selections by emitting 'hzTable:clearSelection'
event.

Change-Id: I8860a135ad3ca9f0c7d80229b237519dec42b2f7
Closes-Bug: #1777545
2018-06-19 12:14:50 +09:00
Shu Muto aca6e3f342 Rename test files to test_* pattern
We're going to switch to default Django test runner by default.
This patch renames test files to make tests descoverable by
Nose and Django test runners without addidional configuration.

This patch alse removes executable flag from test/helpers.py.

Related blueprint: improve-horizon-testing

Change-Id: I48e8f3760c06ab3713e7244536cccd27b2342ab2
2018-06-06 10:32:00 +09:00
Shu Muto 41153200c3 Fix postinstall for npm job
npm jobs uses python3.5, but pip uses python2.7 to install horizon.
This fixes this issue.

Change-Id: I9172f0146c77e96ffc05e45418bda6bb4e665feb
2018-05-30 17:47:16 +09:00
Zuul 8d55afde24 Merge "Add zuul job for checkbuild target" 2018-05-28 03:03:29 +00:00
Zuul 7ccc5149ad Merge "Run tox on created plugin" 2018-05-28 02:43:31 +00:00
Akihiro Motoki f1b5572443 Add zuul job for checkbuild target
The new job runs 'tox -e checkbuild' to create a test project
'cafe-ui' and checks tox default targets defined in the created
project, i.e. pep8, py27-local, py35-local, py35dj20-local,
eslint, karma-local, docs-local and releasenotes,

Change-Id: I5a94939fb278a756b7118c6c2a4acdb5b98170ef
Co-Authored-By: Shu Muto <shu.mutow@gmail.com>
2018-05-17 03:43:50 +00:00
Shu Muto 31151ab91e Run tox on created plugin
This patch enables to run `tox` for testing generated plugin.
Also, adds tox targets for eslint, karma, docs and releasenotes
on generated plugin. In generated tox, "-local" targets are executed
for local tox test. In Ci infra, target jobs, i.e. without "-local"
targets, will be ran as setting,

To add these new targets, this patch refreshes requirements
and fixes tests.

Horizon plugins should be tested with Horizon on master branch,
so parent tox, i.e. "checkbuild" target on ui-cookiecutter/tox.ini,
will clone horizon from git into .tox/checkbuild/horizon/.

lower-constraints job will be added in subsequent patch.

Change-Id: I4a1fd2d90b086f6ebec80d44cc36ef8beb3dbf0b
2018-05-16 17:52:59 +09:00
Shu Muto 3c5c01ea5e Reproduce navigations
Details view does not reproduce side menu and breadcrumb properly
by refreshing or linking directory.
This patch fixes this issue.

Change-Id: Icc7cb8395a939cbac516289be285a81b8b0e58cb
Closes-Bug: #1746706
2018-04-09 14:25:55 +09:00
Zuul bcd7416b25 Merge "Add .idea into .gitignore for pycharm" 2018-02-06 00:10:46 +00:00
Shu Muto 7c12a5d6dc Add .idea into .gitignore for pycharm
Change-Id: If21ea7e2b35dbcb8183a6f1a64cfbf41ef1084b3
2018-02-05 10:59:46 +09:00
Akihiro Motoki 9430df7d7b Correct django template pattern in babel-django.cfg
The current recommended file pattern "templates/**.html" does not
match Django templates in subdirectories.
This needs to be "**/templates/**.html".

Change-Id: I157703a9ae9bea99c1219367f7225ce60a530803
2018-02-05 02:43:06 +09:00
Shu Muto c6de8b68c8 Fix cookiecutter command option
Change-Id: I593c15cecad0edeba1033cb6665db109cfab83d2
2018-01-22 19:45:20 +09:00
Shu Muto 94e1d84c03 Set plugin names into each options in conf.py for docs
This patch sets plugin names into options for latex, tex and Epub
in conf.py of docs.
Also, set '2017' into copyright year and fix repository_name on
conf.py for docs and releasenotes.

Change-Id: I3e586495e032b2059ef86b468bc15c71a86b4513
2017-11-29 13:47:17 +09:00
Shu Muto 4863c41b5f Remove setting of version/release from releasenotes
Release notes are version independent, so remove version/release
values. We've found that projects now require the service package
to be installed in order to build release notes, and this is entirely
due to the current convention of pulling in the version information.

Release notes should not need installation in order to build, so this
unnecessary version setting needs to be removed.

This is needed for new release notes publishing, see
I56909152975f731a9d2c21b2825b972195e48ee8
and the discussion starting at
http://lists.openstack.org/pipermail/openstack-dev/2017-November/124480.html

Change-Id: Id1f4b0d1c48a415cee9c34c8eeb81c5125dfaae5
2017-11-20 14:21:43 +09:00
Akihiro Motoki 03c568a628 Drop django_openstack_auth from requirements.txt
django_openstack_auth has been merged into horizon tree
as an effort of blueprint merge-openstack-auth.
There is no need to depend on django_openstack_auth any more.

Change-Id: I7b8447bfe7326ec8f33b46ed1856ed8dc3479f74
2017-11-16 06:38:39 +00:00
Jenkins 0b0562e6f5 Merge "Bump python support from 3.4 to 3.5" 2017-08-22 02:34:42 +00:00
Jenkins e5135b5036 Merge "Fix errors on eslint" 2017-08-22 02:34:30 +00:00