This patch update decorator version to 4.4.2 in
lower-constraints.txt to fix the lower-constraints job.
Change-Id: I70c82525454c93d2d763b5f304d8fa7d2f57b1f8
lower-constraints job does not need linters, So we can drop
mccabe to fix the lower-constraints job.
Change-Id: I0342d9a3dfb441f89aa9d100b4eadbc6d49f87e5
As per victoria cycle testing runtime and community goal[1]
we need to migrate upstream CI/CD to Ubuntu Focal(20.04).
removing the python-zmq from bindep as that is py2 things and not
available/needed for Focal/Victoria testing.
Fixing:
- bug#1886298
Bump the lower constraints for required deps which added python3.8
support in their later version.
Story: #2007865
Task: #40216
Closes-Bug: #1886298
[1] https://governance.openstack.org/tc/goals/selected/victoria/migrate-ci-cd-jobs-to-ubuntu-focal
Change-Id: If68e8dcb2295267195acc4918abe5167e863a7f2
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 requirements, no need for python_version anymore
- Use newer openstackdocstheme version
- Remove install_command from tox.ini, the default is fine
- Use TOX_CONSTRAINTS_FILE instead of UPPER_CONSTRAINTS_FILE since
the later is obsolete
- Increase lower constraints to fullfill package requests
Change-Id: I7126c2646f272b3f8c568630293a194bc5ba98a9
Now only python 3 is supported, which means unittest.mock
can be used instead of the external mock module.
This change can be done thanks to the Horizon
change I2de669d8e89b8daeb7ee5405ffab35af6307c40b
Switch to openstack-lower-constraints-jobs-horizon
which pulls in the last horizon. The lower-constraint
version of horizon should be bumped when a new
version (post-18.2.0) is released.
Finally, add pytest to the set of test requirements
to prevent an missing import error (even through
the sahara scenario tests still need to be ported
to pytest).
Change-Id: I2c61e9d88b2d05c9f0b68066d7bb15b43cdf083f
Horizon requires pyScss>=1.3.7 [1] but lower-constraints.txt
in sahara-dashboard 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: Ia2415a21f643648ebd02644224ec44dcc773713a
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.
Remove hacking and friends from lower-constraints, it's not needed
there for co-installing.
Change-Id: I3d250ba82cc14f163f4295381b9b9c232486ac9f
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: I5ddd9d5ba23634f110927e385550d97b66fd2542
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.
* Integraion tests is marked via django.test.tag mechanism which is
introduced in Django 1.10.
* Rename filename of test files to names starting with 'test_'
so that the django test runner can find tests expectedly.
* run_tests.sh is no longer called from tox.ini, so it can be dropped.
Note that the similar run_tests.sh in horizon was dropped long ago.
Change-Id: I1e5471078cc95031e8819f01100319a9ee2a3a73
The porting to mock of sahara-dashboard is complete.
This fulfills the community goal
"Remove Use of mox/mox3 for Testing" set for Rocky:
https://governance.openstack.org/tc/goals/rocky/mox_removal.html
Raise the requirement to the Rocky M2 release of Horizon,
which drops the usage of mox by default (it should be
explicitly enabled). Without a forced import from Horizon
the mox dependencies can be dropped here.
Bump also a dependency needed by this new version of Horizon.
Change-Id: Iaf272af9919f8a69562c0a469130bbf8628936cf
It was broken for a long while, since the migration
of the dashboard code into Horizon, and then back
into this repository, as .testr.conf was removed.
Use coverage directly instead of testrepository,
the same way as Horizon does. We should port
the normal test runner to the Django test runner too,
instead of the custom run_tests.sh script, but
that's for another (future) review.
Change-Id: I08966ddc7e891156a1c934bb115ce8a02f77ec83
... or at least the first published tarball which will lead to Rocky.
On the other side this means forcing the usage of mox as long as
there are tests that depends on it (the switch was already flipped
in Horizon, so it needs to be enabled here).
This allows us to depend on newer Horizon features, including changes
to the test suite that are useful for the mox removal effort.
Change-Id: Ibf95b642f49aee9b3165f46e0422ff6bf56e9391
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.
---
sahara-dashboard specific changes:
- sahara-dashboard uses django.urls module which is only available in
Django 1.11 or later, so the Django min version needs to be bumped to 1.11.
Horizon Rocky bumped the Django min version
to >=1.11
- django-babel needs to bumped to 0.6.2 to support Django 1.11 and 2.0.
- nose-exclude needs to bumped to 0.5.0 to run all existing unit tests.
https://review.openstack.org/555402 allows us to bump lower requirements.
Co-Authored-By: Akihiro Motoki <amotoki@gmail.com>
Change-Id: I6cc5d973ea0e586e6fbe2ab4ba1345857722d008
Depends-On: https://review.openstack.org/555034
Depends-On: https://review.openstack.org/555402
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
Signed-off-by: Akihiro Motoki <amotoki@gmail.com>