326 Commits

Author SHA1 Message Date
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
Masayuki Igawa
30856e46a7
Use py36
This commit makes to use python3.6 instead of python2.7 in postinstall
since python2.7 will be EOL soon. And, this commit encourages to use
py36 task instead of py27 as well.
And also this commit changes to use node8 to test in the upstream gate.

Change-Id: I75f0045e88d20d04ecbcdc798bcf3f45d2c27e7a
2019-05-25 17:06:18 +02:00
Zuul
659bae8ee8 Merge "Update the min version of tox to 2.0" 2019-05-25 14:43:11 +00:00
Masayuki Igawa
1b949c4e2b
Separate doc build requirements
This commit separates the doc build requirements because the latest
sphinx doesn't work on python2.7. And we don't need doc related modules
for the unit tests.

Change-Id: I5c94484caadcb15daa34fbedda9774f215bb3cc7
2019-05-25 14:21:28 +02:00
Kim Bao Long
d42558be18
Update the min version of tox to 2.0
The verification comands used by tox need at least 2.0 version. This
patch aims to update tox version from 1.6 to 2.0 which should help with
local running of constraints targets.

Change-Id: I7140199d9fa6544d0af69216a9f467b04ed2cad4
2019-05-24 16:19:00 +02:00
Masayuki Igawa
9d4255e69e
Fix dstat graph processing
This commit fixes dstat graph processing to draw a graph properly. There
are two problem mainly.

1. Reading header process is not correct
 It looks the dstat output format was changed to remove a row of the
header in the past. However, stackviz was not changed at that time. So,
this commit fixes to deal with it properly.

2. The year in its logs process is not correct.
 With the original process which sets 1900+year after utcParse() call,
it looks one hour difference occurs somehow. So, this commit sets the
year to the date string directly.

Change-Id: I52c321f4bd13475f3be2f1a9fbcd86a6ddd4e4be
2019-05-03 16:44:04 -06:00
Masayuki Igawa
cf87b63aec
Use stestr as a test runner in tox
This commit makes stackviz use stestr as a test runner in tox.

Change-Id: Ic9e2f21fa91d9375e2020506f08ecece16706f07
2019-05-02 17:17:09 -06:00
Masayuki Igawa
b819f2d55b
Add python 3.7 to classifier
This commit adds python 3.7 version to the classifier because we already
test it in the gate.

Change-Id: I740c432c6cebe43c5af54b3b946e73c62e82f3e5
2019-04-22 16:43:50 +09:00
Ghanshyam Mann
906cb6b809 Dropping the py35 testing
All the integration testing has been moved to
Bionic now[1] and py3.5 is not tested runtime for
Train or stable/stein[2].

As per below ML thread, we are good to drop the py35
testing now:
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/005097.html

[1] http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004647.html
[2]
https://governance.openstack.org/tc/reference/runtimes/stein.html
https://governance.openstack.org/tc/reference/runtimes/train.html

Change-Id: I82498369024e7d19728c673efe07f289244ea55f
2019-04-22 04:00:08 +00:00
OpenDev Sysadmins
a32888e592 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:36:20 +00:00
Zuul
b1a7a2679d Merge "Update home-page" 2019-03-27 06:42:07 +00:00
Zuul
75db7000a9 Merge "Move legacy-periodic-package-stackviz-element job to stackviz repo" 2019-03-27 06:42:06 +00:00
Zuul
c3761b7b2e Merge "Add py36 and py37 tox envs" 2019-03-15 00:54:12 +00:00
Zuul
d9fde2915f Merge "add python 3.7 unit test job" 2019-03-15 00:53:01 +00:00
Manik Bindlish
81755805d9 Add py36 and py37 tox envs
With python3.6 and python3.7 jobs added to the Zuul jobs, it makes sense
to add this to the tox config too.

Change-Id: I7d0fc0d56f03a5c77cb02800e6a4abaa5ef59bc5
2019-03-08 07:38:57 +00:00
ghanshyam
18c535b1cb Move legacy-periodic-package-stackviz-element job to stackviz repo
legacy-periodic-package-stackviz-element is periodic job used by
stackviz. Let's move this into stackviz repo.

Change-Id: Id59b4c75b80230de7944d21889f4b61848f6e854
2019-03-08 04:41:22 +00:00
Zuul
75cd46fd7c Merge "fix tox python3 overrides" 2019-02-25 02:54:56 +00:00
ZhongShengping
02fc04a420 add python 3.7 unit test job
This is a mechanically generated patch to add a unit test job running
under Python 3.7.

See ML discussion here [1] for context.

[1] http://lists.openstack.org/pipermail/openstack-dev/2018-October/135626.html

Change-Id: Ic2869dd3b4020707c0a96e124a59409fb0118266
Story: #2004073
Task: #27445
2019-02-19 17:05:49 +08:00
lijunjie
7538095c95 Fix the misspelling of "register"
Change-Id: Ie6ee0cf7ad69c7f6678a6d700936cbdb7b730943
2019-01-23 16:56:13 +08:00
huang.zhiping
2b75a0c1f0 Update home-page
Change-Id: Ic762c0bff1694f7898ddb27e1100959171de5a05
2019-01-12 12:11:00 +00:00
huang.zhiping
5a32f82e1c 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: I6d6c50f31e770876dacf21dee423a238aa121891
2019-01-11 06:09:10 +00:00
qingszhao
e8199c3145 Removed older version of python3.x
Remove the support of python3.4, because
in Ubuntu Xenial only (python3.4 is
restricted to <= Mitaka).

Change-Id: Ibcc22f7da056c1db7cb3901fd63ff40adaa0f11c
Closes-Bug:  #1801855
2018-12-17 10:00:27 +00:00
Manik Bindlish
89e5e7fb42 Change openstack-dev to openstack-discuss
Mailinglists have been updated.
So, replacing openstack-dev with openstack-discuss.

Change-Id: I5b9a0ab6932e3d0c266318d303b5b1ae0089369e
2018-12-04 06:29:35 +00:00
ZhijunWei
fae4326ccc Use updated hacking url link
Change-Id: I6be42f30d0c2176cb61b630be12ca0cf77a7bb25
Closes-Bug: #1798139
2018-10-17 02:33:00 +00:00
Zuul
55cfa6a890 Merge "Treat subunit as binary under python3" 2018-10-01 15:51:05 +00:00
Clark Boylan
f0e4e094c3 Treat subunit as binary under python3
The subunit stream is a binary protocol and can't be encoded to utf8.
Unfortunately  under python3 the default behavior when reading from
stdin or opened files is to read them encoded as your platform dependent
encoding. For linux users this is typically utf8 and subunit isn't valid
utf8. Fix this by reading the subunit streams as binary under python3 as
we do on python2.

Change-Id: I1ddfe514c219c3bbfcd69f6808faa2331933acee
2018-09-30 08:44:55 -07:00