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
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
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
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
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
Make a few cleanups:
- Remove python 2.7 stanza from setup.py
- Remove obsolete sections from setup.cfg
- Update classifiers
Change-Id: I11a5cca7e622cdcb2f8eb5c9853e35647969200d
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
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
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
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
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
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
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
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
legacy-periodic-package-stackviz-element is periodic job used by
stackviz. Let's move this into stackviz repo.
Change-Id: Id59b4c75b80230de7944d21889f4b61848f6e854
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
Remove the support of python3.4, because
in Ubuntu Xenial only (python3.4 is
restricted to <= Mitaka).
Change-Id: Ibcc22f7da056c1db7cb3901fd63ff40adaa0f11c
Closes-Bug: #1801855
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