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
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
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
It seems that on a CI node, we just want to have approximately "pip
install stackviz" and have it "just work".
This makes "npm run prod" produce a .tar.gz appropriate for this.
Firstly, I have moved the gulp output to "gulp-build" rather than
"build" because "build" is generic and can get distutils confused.
Second, after building with gulp, we tack on a "setup.py sdist" call
to generate the final package.
Thirdly, the MANIFEST.in is updated to prune out unneeded files from
the final distribution. pbr is putting everything in git into the
manifest, but we can trim all all the nodejs source stuff. The
generated files in gulp-build are added to the manifest (since they're
generated, and not in git).
Finally, these are added via data-files as "share/stackviz-html". This
is essentially standalone and can be moved, or symlinked to as required.
The end result is that the .tar.gz created is installable on nodes an
contains everything required to run stackviz.
Documentation is updated.
Change-Id: I64cbc7e90bd2610733c9d5c6275cce99f2571883
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This adds a new karma plugin, 'karma-subunit-reporter', to generate
subunit streams for unit test output. These files should be compatible
with stackviz itself (via stackviz-export) and other tools like
subunit2sql and openstack-health.
Change-Id: I8ee5425e1688fa090d5dc9fe3021345e779e2c07
This switches the codebase to use only specific d3 (version 4) modules
rather than the entire d3 (v3) package, resulting in a decent shrink
in build size (~75KB reduction).
Change-Id: I9f6a5d039d6340cc28115337bdfb891d15af7057
This adds a new 'scripts' entry to 'package.json' to run 'gulp prod',
eliminating the need for a global install of gulp.
Change-Id: I383e5bf99f6e9e2c7d5fa5c894ef573fa06facd7
This adds a new console.html summary and details view that can
gives overview information about console output, organizes output
by section, and can also determine the currently running script at
job failure time. The console viewer is a CodeMirror-based widget
that provides basic highlighting and folding capabilities to make
console output easier to browse.
Change-Id: I27a9a532ae117d2914dc2f3a866c780378e79f72
This adds karma-chrome-launcher and uses it instead of phantomjs for
running all unit tests. Currently, the 'phantomjs-prebuilt' package
downloads binaries from bitbucket, and gate job have been failing due
to rate limiting from their servers. Since Chrome is already being
installed from local mirrors as part of the 'npm run' job template,
this should avoid further problems.
Additionally, this bumps all npm dependencies to their latest
versions and removes several (such as babel) that are unused. Some
minor tweaks to gulp tasks were needed to account for changes, but
these are fairly minimal.
Change-Id: Ia003280ab30f2912935140ecd4734ae8a08dd44d
Patches prior to this failed the `npm run lint` and `gulp unit` gate
tests due to a new versioning of eslint-config-openstack and renaming
of the phantomjs browser to `phantomjs-prebuilt`. This patches updates
the necessary deps in package.json so that gate tests can now run
successfully.
Change-Id: I8ad54b29d91801d09991496b1e5eb90680ace8e3
Fixes a couple of lint errors caught by `npm run lint` in timeline-
overview.js and timeline-viewport.js. Also restructures the test-
details controller to use appropriate `this.` syntax instead of
`$scope.`
In addition, eslint and eslint-config-openstack have been updated,
and a new .eslintrc.json config file has been created to tweak some
specific rules for stackviz.
Change-Id: I9e1fe5121621730eb3efda4b99e9fe182f399aee
This adds support for loading progress bars from the nprogress library
and displays progress bars while loading the larger datasets on the
timeline and test details pages.
Change-Id: Ica10d348f67abc348aed2df0b158383ad035e604
This updates `angular` and `angular-ui-bootstrap` to their latest
versions. Upcoming changes rely on several bugfixes and features
introduced in the newer versions, and this should encompass all of
the necessary preparation.
Change-Id: Iddc210ef64e913babbbd409747fecf3bbd8f2d5e
This removes `gulp-imagemin` and the image processing gulp task,
as well as `debowerify`, significantly reducing required
`npm install` time for a clean install.
Change-Id: I48e035c96cd616715da3b5c75b66b8d8a7616263
This ports over changes made in openstack-health to convert the
project from jshint to eslint, with the eslint-config-openstack
plugin.
Change-Id: Iaa0490d07603e2481e1c738136f9fda1be95dea8
Downgrades karma-coverages, uses phantomJS to run unit test, and
finally adds gulp unit as the test runner. Karma was having issues
with Chrome+Browserify. Unit tests still do not run since the example
services were removed.
Change-Id: I8973a1e12b0b2af992bea5da552aae0736dcdf9c
npm install would fail due to PEERINVALID issues with karma.
^0.13.4 is out of range for several packages. This commit sets karma
version to ~0.12.0
Change-Id: I07634dd7cbdbc0cdb4489cbc348f9390a91e9e79
`index.html.gz` now links properly to gzipped resources allowing
them to be distributed unmodified and without the uncompressed
resources.
Change-Id: I253f5207de5b13a105dfb8ddd226d7da6ba2b34b
Add static instances of FontAwesome, Bootstrap, and theme resources
to more fully move to NPM/Browserify package management.
Change-Id: I4ceb0cd44f1e54207fde9c6645931e3a29705894
Adds boilerplate files from `angularjs-gulp-browserify-boilerplate`
to start work on Angular rewrite of the frontend.
Change-Id: I54392c24f397496582f9d06d561d5c14a92ccbe6