Commit Graph

351 Commits

Author SHA1 Message Date
Ghanshyam Mann 1719826f87 Test python 3.11
As per the current release tested runtime, we
need to test till python 3.11 so adding the test
and updating the same in python classifier in setup.cfg

Change-Id: I4d1595ed742949acc97fc9d6270500f7e73e6dcc
2024-01-05 04:53:11 +00:00
Ghanshyam Mann b60e6df1e0 Move stable branch testing to oldest supported branch
Currently we test the stable branch with stable/train
which is in EM phase and also failing. Stackviz need to
test if supported branch works or not so let's test the
oldest stable supported branch. Considering stable/yoga
is going to EM/Unmaintained soon, I am adding stable/zed
job.

Change-Id: I5bf251f438317636aa0d2598718fe08a1aa97683
2024-01-04 20:49:08 -08:00
Ghanshyam Mann 7befee2b3c Fix tox4 error
tox.ini started failing with Tox4 which had some
incompatible changes. One is passenv where we need
to pass each value in newline otherwise, it fails with
error:

 failed with pass_env values cannot contain whitespace,
 use comma to have multiple values in a single line,
 invalid values found.....

Fixing tox.ini for tox4 changes.

Also, remove the stable/rocky|stein job as they are
in EM state and jobs are failing.

Change-Id: Idfa3c5aab012cf8381e001d4c3018b92b76f89af
2022-12-25 16:21:29 -08:00
tushargite96 28d8b54fe9 Add non-voting Python 3.10 jobs for Zed cycle
The template which is used to test runtime for the Zed cycle added
python 3.10 as a non-voting job [1]. So this patch follows the same
thing here.

[1] https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/831633

Change-Id: Ibbd3fa8804f70a5644af10c105f764fd65b44086
2022-03-20 14:44:53 +05:30
Ghanshyam Mann f6b905b792 Define stable/train job in stackviz
Tempest is removing the stable/train job which
is used in stackviz gate
- https://review.opendev.org/c/openstack/tempest/+/822055

let's define the train job in-tree itself.

Change-Id: I23f8d4f08ebbf500dec21c80af41304c81fababf
2021-12-16 17:56:55 -06:00
Anand Bhat 87972d44dd Updated Node.js Installation Command
Package nodejs-legacy is not available and has been obsoleted
Updated npm installation command

Change-Id: I738d0a830e9197e64868cc528fcae20f8942c5d6
2021-11-16 22:52:20 +05:30
Zuul 3dd900ae8d Merge "Test python3.9 as voting job" 2021-11-04 13:19:28 +00:00
Zuul d9098d0541 Merge "Use TOX_CONSTRAINTS_FILE" 2021-11-04 13:19:26 +00:00
Zuul ff56bd5d01 Merge "setup.cfg: Replace dashes with underscores" 2021-11-04 12:54:53 +00:00
Ghanshyam Mann e10db7133d Test python3.9 as voting job
In Yoga testing, we are making py3.9 job to run as voting, so
adding py3.9 job as voting.

Also, as stackviz is branchless and needs to support older
supported stable branches, let's test it with all the
python version supported in those supported stable branches.
For that, we need to explicitly dd the py jobs instead of using
the template. This way, we will explicitly know that we are testing
all supported python versions when the new release template bumps the
min python version in the template.

Change-Id: Ie23040ece856a7712b4d046c439ab0a861b6b95c
2021-11-03 21:10:08 +00:00
Zuul 715d60bfac Merge "Use py3 as the default runtime for tox" 2021-10-06 15:23:14 +00:00
tushargite96 2054a82960 Switch testing to Yoga testing runtime
Upating the tetsing template to Yoga testing runtime:
https://governance.openstack.org/tc/reference/runtimes/yoga.html

Change-Id: I0b6b130e860afb7b364a0bc1f42234645806412b
2021-09-28 09:37:21 +05:30
lpiwowar 19c3056754 Use stestr instead of testrepository
This patch removes dependencies on testrepository as
stackviz is using stestr instead.

Closes-Bug: 1735667
Change-Id: I1e1de567fae7a2f7985f51e35d71201be2ab787f
2021-06-16 08:59:37 +02:00
Ghanshyam Mann 9c755dbe5b Update IRC network to OFTC
Change-Id: Ibad52069b8cf1f00d0ba3c427ff4141fc4b52539
2021-05-31 15:04:43 -05:00
yangyawei c74c324889 Use TOX_CONSTRAINTS_FILE
UPPER_CONSTRAINTS_FILE is old name and deprecated
This allows to use upper-constraints file as more
readable way instead of UPPER_CONSTRAINTS_FILE=<lower-constraints file>.

Change-Id: Ic6da92a36a8f7d540c3bcd67d0346898b4775fa8
2021-05-25 20:33:31 +08:00
yangyawei 3419343646 setup.cfg: Replace dashes with underscores
Setuptools v54.1.0 introduces a warning that the use of dash-separated
options in 'setup.cfg' will not be supported in a future version [1].
Get ahead of the issue by replacing the dashes with underscores. Without
this, we see 'UserWarning' messages like the following on new enough
versions of setuptools:

  UserWarning: Usage of dash-separated 'description-file' will not be
  supported in future versions. Please use the underscore name
  'description_file' instead

[1] https://github.com/pypa/setuptools/commit/a2e9ae4cb

Change-Id: I4d4cbc7deb4e3269a317bfd9cf30e7b5b227398e
2021-05-14 09:24:52 +08:00
Martin Kopec 4dea11dc7f Switch testing to Xena testing runtime
Upating the tetsing template to Xena testing runtime:
https://governance.openstack.org/tc/reference/runtimes/xena.html

Change-Id: I13c1451879e0401e7c2d57af334900d829ed35b9
2021-04-29 14:43:16 +00:00
zhangboye 7c0fbf58f5 Use py3 as the default runtime for tox
Moving on py3 as the default runtime for tox to avoid to update
this at each new cycle.

Change-Id: Ic4f1253a369be2b8f8d2a66b8d3f67ab35e5daf7
2021-04-20 14:06:38 +08:00
tushargite96 8cd99f3bab Changed minversion in tox to 3.18.0
The patch bumps min version of tox to 3.18.0 python in order to
replace tox's whitelist_externals by allowlist_externals option:
https://github.com/tox-dev/tox/blob/master/docs/changelog.rst#v3180-2020-07-23

Change-Id: I5a47557d8f822d49fa825c3b28d4eda498238f64
2021-02-25 23:45:58 +05:30
Zuul fd251b544b Merge "Move stackviz-nodejs10-run-test-browser to Firefox" 2020-12-23 20:20:50 +00:00
Ghanshyam Mann 6a4be31ccd Move stackviz-nodejs10-run-test-browser to Firefox
stackviz-nodejs10-run-test-browser job started failing on
chrome browser
- https://bugs.launchpad.net/stackviz/+bug/1908606

Horizon and its plugins also moved the nodejs browser jobs to
firefox now, let's move stackviz jobs too to make this job green.

Closes-Bug: #1908606
Change-Id: I4a63a54ee5fce983c3254805b39549d145159be9
2020-12-23 04:44:17 +00:00
Ghanshyam Mann b4a7aff27c Move stable stein job definition in tree
Tempest is removing the stable/stein job as it is
in EM state
- https://review.opendev.org/c/openstack/tempest/+/768118

but stackviz still need to test it as stackviz need to
support all branhces even they are in EM state.

Change-Id: I51defe3c16919663a845a338c006300168d8462c
2020-12-22 08:44:38 -06:00
Ghanshyam Mann 3bb7bc77b7 Cap oslo.db==6.0.0 for python <='3.5'
stackviz on stable/rocky is failing as it try to install the
latest requirements like oslo.db>=4.24.0

:stderr: oslo.db requires Python '>=3.6' but the running Python is 3.5.2

https://zuul.opendev.org/t/openstack/build/67edcd21a0144bd7a3e0a28294bd5874

Change-Id: I1c65b90ee4579c0e58d9c01a1244760dc74b82b3
2020-12-17 23:12:59 +00:00
Ghanshyam Mann 7fc8c5e578 Skip failing job stackviz-nodejs10-run-test-browser
Related-Bug: #1908606
Change-Id: Id75e3ea674918668f87270219a5db2f9348c7b80
2020-12-17 16:35:24 -06:00
tushargite96 89f78ae147 Add Python3 wallaby unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for wallaby.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: I1f5661b60136da3a48d68fcc77c8cf3161b2799a
2020-10-12 19:05:16 +05:30
Lukas Piwowarski ee58754040 Create tox environment to build pdf documentation
This patch enables building .pdf documentation using new 'pdf-docs'
tox environment. The newly created tox environment creates latex
source codes using sphinx-build and then builds the pdf
documentation using make.

Story: 2006070
Task: 35471

Change-Id: I44b0dde9cec10359dd41cbf9a2d9b034a831f106
2020-09-24 10:23:01 +02:00
Zuul 71c4ef61a7 Merge "Stop to use the __future__ module." 2020-09-05 21:47:17 +00:00
Ghanshyam Mann d81705e07d Fix hacking min version to 3.0.1
flake8 new release 3.8.0 added new checks and gate pep8
job start failing. hacking 3.0.1 fix the pinning of flake8 to
avoid bringing in a new version with new checks.

Though it is fixed in latest hacking but 2.0 and 3.0 has cap for
flake8 as <4.0.0 which mean flake8 new version 3.9.0 can also
break the pep8 job if new check are added.

To avoid similar gate break in future, we need to bump the hacking min
version.

- http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014828.html

Change-Id: I8008ab34a4093cd2b99d646adbc3230ae57aa2d4
2020-09-04 10:36:34 +00:00
Ghanshyam Mann ff8a129225 migrate to victoria testing runtime
As per victoria cycle testing runtime and community goal[1]
we need to migrate upstream CI/CD to Ubuntu Focal(20.04)
and Node.js 10.

Tox is not anymore pre-installed on the OpenDev CI images.
The file package.json needs tox, install it to fix the nodejs-job.

Install it via a pre-run playbook so that this is run in addition to all
of the playbooks of the parent.

This patch also update python version to py38 in package.json[2]
as py36 is not available on focal.

Note: Before this patch We used nodejs8-jobs from openstack-zuul-jobs
which consumes npm jobs from zuul-jobs. We would like to install tox
in the 'pre-run' phase in each npm job, so this patch also defines
npm job defination here.

Story: #2007865
Task: #40212

[1] https://governance.openstack.org/tc/goals/selected/victoria/migrate-ci-cd-jobs-to-ubuntu-focal.html
[2] https://opendev.org/openstack/stackviz/src/branch/master/package.json#L73

Co-Author: manchandavishal <manchandavishal143@gmail.com>

Change-Id: I116ea1609f88496c599a8285d33350104067c517
2020-08-26 10:33:41 +00:00
Hervé Beraud 1d7332f3ef Stop to use the __future__ module.
The __future__ module [1] was used in this context to ensure compatibility
between python 2 and python 3.

We previously dropped the support of python 2.7 [2] and now we only support
python 3 so we don't need to continue to use this module and the imports
listed below.

Imports commonly used and their related PEPs:
- `division` is related to PEP 238 [3]
- `print_function` is related to PEP 3105 [4]
- `unicode_literals` is related to PEP 3112 [5]
- `with_statement` is related to PEP 343 [6]
- `absolute_import` is related to PEP 328 [7]

[1] https://docs.python.org/3/library/__future__.html
[2] https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html
[3] https://www.python.org/dev/peps/pep-0238
[4] https://www.python.org/dev/peps/pep-3105
[5] https://www.python.org/dev/peps/pep-3112
[6] https://www.python.org/dev/peps/pep-0343
[7] https://www.python.org/dev/peps/pep-0328

Change-Id: I334c6b76d99c10ca67c42c54141d32d409ae4947
2020-06-02 20:58:26 +02:00
Andreas Jaeger a2c25d956c Switch to newer openstackdocstheme version
Switch to openstackdocstheme 2.2.1 version. Using
this version 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.

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

Change-Id: I3613f3b9e1f12fd7735f1dba6918a68784d9c259
2020-06-02 14:22:28 +02:00
Vishakha Agarwal 2771bf3c50 Switch testing to Victoria testing runtime
Upating the testing template from ussuri to victoria
testing runtime
- https://governance.openstack.org/tc/reference/runtimes/victoria.html

Change-Id: If4a110080febc17420842740607a5e0f84cd215f
2020-05-05 13:33:58 +05:30
Zuul 0e26070687 Merge "Move tempest-full-rocky-py3 job defintion to stackviz" 2020-04-29 16:03:06 +00:00
Ghanshyam Mann 8c7c5a3332 Move tempest-full-rocky-py3 job defintion to stackviz
tempest-full-rocky-py3 was defined in Tempest which is going
to removed[1] from there as rocky is in Extended Maintainance state.

Stackviz need to run the rocky job as it support py3.5 env also.

Renaming the job to avoid the zuul error of duplciate definition of same
job name.

[1] https://review.opendev.org/#/c/722183/1
Change-Id: Ieb1ce1f5c712ffedbacab8dd58cf75cc138deca4
2020-04-23 02:30:09 +00:00
Ghanshyam Mann 0469f86182 [ussuri][goal] Update contributor documentation
This patch updates/adds the contributor documentation to follow
the guidelines of the Ussuri cycle community goal[1].

[1] https://governance.openstack.org/tc/goals/selected/ussuri/project-ptl-and-contrib-docs.html
Story: #2007236
Task: #38554

Change-Id: I11f746df8ddfba5cf0b1e33778c9939a0a5fc760
2020-04-22 14:04:30 +00:00
Andreas Jaeger 06227670f8 Cleanup py27 support
Make a few cleanups:
- Remove python 2.7 stanza from setup.py
- Remove obsolete sections from setup.cfg
- Update classifiers

Change-Id: I11a5cca7e622cdcb2f8eb5c9853e35647969200d
2020-04-07 18:41:04 +02:00
Andreas Jaeger d5f2c8ab04 Update to hacking 3.0
Hacking 3.0 was just released with minor changes, update to the new
version.

Change-Id: I430b338e68475f54707fd4aa6be559f11d5cf04b
2020-03-30 17:40:29 +02:00
Andreas Jaeger 45f26cabdd Update hacking for Python3
The repo is Python 3 now, so update hacking to version 2.0 which
supports Python 3.

Change-Id: Id44b466d93755272586c5d97efcd3c695886df20
2020-03-27 21:06:38 +01:00
Zuul 10217d0e8f Merge "Switch to native Zuul v3 publish job" 2020-03-03 18:35:46 +00:00
Andreas Jaeger d9503b556b Switch to native Zuul v3 publish job
Use new Zuul v3 publish-openstack-stackviz-element job for periodic
pipeline to publish the tarball.

The job still publishes to
https://tarballs.opendev.org/openstack/stackviz/dist/ and generates same
content (just different paths).

Move the job from periodic to post, there's no need for a daily update.

Remove old job and its playbooks, they are not needed anymore.

Needed-By: https://review.opendev.org/710756
Change-Id: I522e1b5e6158e5811578e24a380ce00001a6d40e
2020-03-03 16:16:38 +01:00
Andreas Jaeger bbb4a12140 Require stestr
The python 3.6 and newer tests fail since they don't install stestr, add
explicit requirement.

Since https://review.opendev.org/615826/ oslotest does not have stestr
in requirements, so it needs to be added explicitely.

Change-Id: I069a27a2abd2b1a12ea0c58b38c4445e1fc79793
2020-03-03 08:26:02 +01:00
Zuul 35f98fd706 Merge "Add enough testing on stackviz gate" 2020-02-19 04:23:58 +00:00
Ghanshyam Mann b5385c3dc3 Add enough testing on stackviz gate
While dropping py2 support, we dropped py3.5 support also
- Ic14a02c879bcef08885d831ebbe25083ec464a86

which broke the stable jobs using xenial node which does not
have py3.6.

This is fixing that and bring the py3.5 support back
- I0e6d57a49643d588b1329a0c8f1dd7afc71d5bdf

To avoid such issue in future, let's test the all users of
it which is nothing but integration jobs along with stable
branch jobs.

Change-Id: I7118fd5cfdeff7419f2477b64334767d13a41155
2020-02-13 15:10:05 +00:00
Monty Taylor 65be9ddfcb Support python 3.5 for stable branches
OpenStack stable branches run on some nodes that have py3.5.

Change-Id: I0e6d57a49643d588b1329a0c8f1dd7afc71d5bdf
2020-02-13 08:19:42 -06:00
Ghanshyam Mann ac35a35b27 [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

stackviz 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

Change-Id: Ic14a02c879bcef08885d831ebbe25083ec464a86
2020-02-03 13:27:16 -06:00
Corey Bryant c4b7897981 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: Icb362afded64c43ef51fdedf2fd2b054ef5e6218
Story: #2005924
Task: #34240
2019-07-15 13:17:33 -04:00
Zuul 3f213493be Merge "Fix dstat graph processing" 2019-06-10 06:45:40 +00:00
Zuul 7ac5fd9c31 Merge "Add python 3.7 to classifier" 2019-06-04 06:50:10 +00:00
Zuul 2d52706184 Merge "Add karma-subunit-reporter" 2019-05-31 06:33:34 +00:00
Zuul 9f9b6a6890 Merge "Use py36" 2019-05-31 03:36:41 +00:00