[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
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
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
Drop py27 and py35 testing, for Ussuri those are dropped already.
Update for current django 22 testing.
Remove py27 cruft.
Change-Id: Icde1a7be481a56ca2d0c64a651ad7d2a7f895441
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
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
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
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
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
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
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>
Dependency for mox3 is fully removed. So this patch removes mox3
dependency from followings:
- test-requirements.txt
- doc/requirements.txt
Change-Id: Ice38543a889fd3e819620dad021a403f7697cd1a
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
Zuul no longer requires the project-name for in-repo configuration.
Omitting it makes forking or renaming projects easier.
Change-Id: I55d92ba14171bc1aca4ecace25398f3827b3c2cf
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
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>
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
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
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
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>
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
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
The current recommended file pattern "templates/**.html" does not
match Django templates in subdirectories.
This needs to be "**/templates/**.html".
Change-Id: I157703a9ae9bea99c1219367f7225ce60a530803
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
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
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