Commit Graph

13 Commits

Author SHA1 Message Date
manchandavishal a3d0f4e626 Remove Chrome browser from karma.conf.js
This patch removes Chrome browser from
karma.conf.js as nodejs job fails with Chrome
browser because it is not able to access some URL.
So let's remove Chrome browser now then we can add
it again once the issue is resolved.

Also as discussed during the upstream ironic community meeting on
Monday Dec 14 2020, the lower-constraints job is being removed.

Co-Authored-By: Riccardo Pittau <elfosardo@gmail.com>
Change-Id: Ic7094ab6ed01af2bcbe0beb13f300499215fd903
2020-12-16 05:29:25 +00:00
Ivan Kolodyazhny 0d997bf6ca Add npm tox env
With this tox env CI will run JavaScript tests instead of skipping them.

This patch also fixes issues with running tests using
lates Horizon release.


Depends-On: https://review.opendev.org/755003
Change-Id: I3ddd4893ae60a326751c157f0be85b084a2174a4
2020-09-29 13:32:42 +00:00
manchandavishal 927b4c291e [goal] Migrate testing to ubuntu focal
As per victoria cycle testing runtime and community goal[1]
we need to migrate upstream CI/CD to Ubuntu Focal(20.04).

Fixing:
Closes-Bug: #1886298
Bump the lower constraints for required deps which added python3.8
support in their later version.

This patch updates python version to py38 in package.json and
karma.conf.js as py36 is not avaialbale on focal. It also adds
libfontconfig1 in bindep.txt as phantomjs requires libfontconfg[2]

Story: #2007865
Task: #40188

Depends-On: https://review.opendev.org/#/c/749476/

[1] https://governance.openstack.org/tc/goals/selected/victoria/migrate-ci-cd-jobs-to-ubuntu-focal
[2] https://www.npmjs.com/package/phantomjs-prebuilt#linux-note

Change-Id: I01c88902bcb480bf3a11f377b2520596467294ed
2020-09-02 10:17:43 +00:00
Andreas Jaeger 6d253ca7f1 Cleanup py27 support
This repo is now testing only with Python 3, so let's make
a few cleanups:
- Remove python 2.7 stanza from setup.py
- Add requires on python >= 3.6 to setup.cfg so that pypi and pip
  know about the requirement
- Remove obsolete sections from setup.cfg
- Update classifiers
- Remove install_command from tox.ini, the default is fine
- Use TOX_CONSTRAINTS_FILE instead of obsolete UPPER_CONSTRAINTS_FILE.
- Update hacking to current version 3.1.0, fix problems found.

Change-Id: I86c18b4c73f9b3dc0b3d804559d825dac5a78436
2020-06-09 14:00:32 +02:00
Hervé Beraud cae8625487 drop mock from lower-constraints and requirements
The mock third party library was needed for mock support in py2
runtimes. Since we now only support py36 and later, we don't need it
in lower-constraints and requirements.

These changes will help us to drop `mock` from openstack/requirements

Change-Id: Ia3b71f68ba1714b7b7254119c1b610b1390f7059
2020-06-09 01:16:20 +02:00
Andreas Jaeger beb50811db Switch to newer openstackdocstheme and reno versions
Switch to openstackdocstheme 2.2.0 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.

Set openstackdocs_pdf_link to link to PDF file. Note that
the link to the published document only works on docs.openstack.org
where the PDF file is placed in the top-level html directory. The
site-preview places the PDF in a pdf directory.

Set openstackdocs_auto_name to use 'project' 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.

Remove docs requirements from lower-constraints, they are not needed
during install or test but only for docs building.

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.

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.

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

Change-Id: I497fa0cbaedba4be199a7bd0dc86f686c0858ac0
2020-05-21 09:22:36 +02:00
Iury Gregory Melo Ferreira 1aa9c8f61b Stop configuring install_command in tox.
Currently, we are overriding 'install_command' to use 'pip'. This is
considered poor behavior and 'python -m pip' should be used instead:

https://snarky.ca/why-you-should-use-python-m-pip/

It turns out that this is the the default value provided by tox:

https://tox.readthedocs.io/en/latest/config.html#conf-install_command

So we can remove the line and simply use the default value.

openstack-discuss thread
http://lists.openstack.org/pipermail/openstack-discuss/2020-April/014237.html

Bumping the following libs in lower-constraints to avoid version
conflict:
-osprofiler 2.3.0
-python-keystoneclient to 3.22.0
-python-cinderclient to 5.0.0

Change-Id: Id0049dea1e16f9c459e7e63e5f7d96666fff708a
2020-04-20 11:18:47 +02:00
manchandavishal 7f80974496 Fix pyScss version in lower-constraints.txt
Horizon requires  pyScss>=1.3.7 [1] but lower-constraints.txt
in ironic-ui uses pyScss 1.3.4 which can cause the
failure in future. So this patch update pyScss version in
lower-constraints.txt to sync the change.

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

Change-Id: Ia1e6b4142a94f93cc28ed6ec8d0668492ea878e1
2020-04-01 18:22:11 +00:00
manchandavishal 47561ba1e3 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: I29cd34d17a00eb1b576f46d6010203603b5c8165
2020-01-02 19:05:13 +00:00
Kaifeng Wang c28503f70e Build pdf doc
The is one of community goals that each project could produce a
single PDF file. The pdf should be in the output of openstack-tox-docs
job.

TeX packages are required to build PDF locally, following is recommended:

* inkscape
* texlive-latex-base
* texlive-latex-extra
* texlive-fonts-recommended

More about the goal:
https://governance.openstack.org/tc/goals/train/pdf-doc-generation.html
https://etherpad.openstack.org/p/train-pdf-support-goal
https://etherpad.openstack.org/p/pdf-goal-train-common-problems

Change-Id: Ib7379bb5066ede1956424dc92cf302ec22053f21
2019-09-06 08:48:51 +08:00
Ivan Kolodyazhny d73528db1d Add ironic-ui integration tests
This patch adds basic tests to verify that ironic-ui is
installed and could be opened.

ironic-ui-integration-tests job is added in a
non-voting mode.

Depends-On: https://review.openstack.org/634712
Change-Id: Ie77be522679c9076ccbfb133eadaae7228adb03c
2019-02-07 05:49:55 -08:00
Akihiro Motoki a4de2e8b87 Drop nose dependencies
Horizon test setting no longer depends on nose and related stuffs.
This commit cleans up nose related dependencies.

Change-Id: I88ddc1c188bfa81a338522f6d7e2d86616608bc6
2018-08-17 00:41:24 +09:00
Doug Hellmann fa66440493 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: Ia39c706f6a817deb3b94a1430b3e505f9c098384
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-05-28 12:04:36 +02:00