283 Commits

Author SHA1 Message Date
Tim Buckley
fc4d8703d3 Use consistent dataset IDs in URLs.
This adds new dataset parameter to the home page (defaulting to #0
as before) to ensure that the current state of the page can always
be shared via URL. Additionally, the timeline route is also changed
to follow the new scheme.

Change-Id: Ieadd4724b24c612fbba2a614728563c1c00b92be
2015-11-25 16:27:39 -07:00
Tim Buckley
5f11d5e091 Removed unused node dependencies.
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
2015-11-24 13:48:47 -07:00
Tim Buckley
9b6d1ffbeb Add summary info to home page.
This patch adds basic summary information to the tempest dataset
summary on the home page. Additionally, it allows users to select
between all available datasets, if more than one is specified in
the configuration file. Failing tests are displayed directly on
the front page, and a future patch will allow direct navigation to
details of failing tests.

Co-Authored-By: Austin Clark <austin.clark@hpe.com>
Change-Id: Ic08a4dd86b36f513acf8e50c1fb7d7a102876e1c
2015-11-24 13:42:09 -07:00
Tim Buckley
9d460e7b2a Add summary generating functionality to stackviz-export.
This adds basic summary stat generation to generated config files.
Summary data includes start and end dates, the total duration, and
lists of failed and skipped tests. This data can be used to quickly
retrieve potentially interesting data without having to download
and process the full data file (often 0.5 MiB or larger).

Change-Id: I980f8ca22fbc003b415fd02feae332526ff26609
2015-11-24 10:42:49 -07:00
Jenkins
1f101cae07 Merge "Edit stackviz-export export_tempest_details to save logs" 2015-11-23 22:01:17 +00:00
Jenkins
39e9779596 Merge "Switch to eslint." 2015-11-20 16:28:08 +00:00
Tim Buckley
7eab971d3f Switch to eslint.
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
2015-11-18 15:36:36 -07:00
Tim Buckley
5537761472 Removed unused settings.py.
A residual settings.py configuration file was forgotten while
removing Django. This removes it.

Change-Id: I4d2ed57b7b4829e90c86e1bc55c58d6d7e007aa5
2015-11-18 15:08:14 -07:00
Austin Clark
cbe7c89465 Edit stackviz-export export_tempest_details to save logs
export_tempest_details (responsible for generating the details file in
the stackviz-export process) had strip_details set to True, discarding
all pertinent log info necessary for a full details view. This changes
the strip_details method parameter to the default, False.

Change-Id: I293ccd15e6c0e7b1ba5f7ee9be12584e01d398b6
2015-11-10 09:20:22 -07:00
Jenkins
42b83c81da Merge "Clean up summary page, menu." 2015-11-05 20:06:53 +00:00
Austin Clark
5d9c24d574 Update README.rst to include upstream planning etherpad
Small updates to the README, including adding instructions on how to
generate a `config.json` using stackviz-export and local subunit+dstat
files. Also includes a link to the upstream planning etherpad, which
will be used for ideas about getting StackViz working with data from
devstack-gate runs.

Change-Id: I206cb5ea6331eaf005b8c9c43a1e7b93e2d77a92
2015-11-05 09:43:50 -07:00
Austin Clark
78a49c401c Clean up summary page, menu.
Remove unused links to upstream and sunburst pages. Menu nav will
now navigate to tempest dataset number 0.

Change-Id: Ia7564118a9731d78c1250693473618cce98f7a93
2015-11-02 10:01:11 -07:00
Tim Buckley
d84e984fb7 Add timeline view with Angular support.
This re-adds the Tempest timeline view as a set of Angular
directives. This includes related functionality, such as the Dstat
parser and some array utilities. The timeline view consists of
a timeline component, which includes the d3 chart, and a separate
details component, which shows additional information for tests
when selected in the timeline.

Change-Id: Ifaaeda91b0617e8cf7a60d30728005f5c8d00546
2015-10-29 13:58:35 -06:00
Austin Clark
b73595b3aa Fix datasetService to find tempest log paths
Prior to this patch, datasetService did not find the log paths that
'stackviz-export' and 'gulp data' generated. This commit adds the
prefix 'data/' to all GET calls in datasetService to ensure that the
log files are found.

Change-Id: Ie88d30a0844cea57cefed6b22265ccfd6050b3a9
2015-10-27 15:50:44 -06:00
Austin Clark
b1e9f75e6d Fix application name in constants_spec.js
The unit test suite was failing due to a test in constants_spec.js
that expected the application name (as defined in constants.js) to be
"Example Application". This commit changes the expected value in the
test to "StackViz".

Change-Id: Ia7b97fdaae3560a27d944c81a9a245feafde3252
2015-10-22 10:34:09 -06:00
Austin Clark
81a6cb9e97 Adds unit tests for datasetservice, homeCtrl
Alters main.js to allow Karma to see app. Basic unit tests (checking
for definition) are added as placeholders. New unit test files will
need to have the window.bootstrap && window.bootstrap() call to allow
Karma visibility.

Change-Id: If3ad2130e6ad6e3883a57ddd291fc17753229ed8
2015-10-21 11:37:32 -06:00
Jenkins
a55187cd47 Merge "Fix karma-coverage version, use gulp unit to run unit tests" 2015-10-21 19:55:34 +00:00
Jenkins
440924c097 Merge "Update application title." 2015-10-20 17:32:08 +00:00
Tim Buckley
018ba9d473 Remove dead code from index page.
Change-Id: Ieff4eea47435caccda6455544d2ae56abbab9be1
2015-10-19 16:12:17 -06:00
Tim Buckley
952ec1df8a Update application title.
The application title variable was still using the example value
from the project boilerplate. This replaces the example value with
'StackViz'.

Change-Id: Ib8f004fcbdfbb3633697eaf287e6e76bec031349
2015-10-19 16:09:55 -06:00
Austin Clark
942f6a9add Fix karma-coverage version, use gulp unit to run unit tests
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
2015-10-15 15:11:24 -06:00
Tim Buckley
865837da38 Added initial homepage using the new dataset service.
This homepage implements a sample layout that uses real example
data, but is still a WIP and has a number of empty stub UI
elements.

Change-Id: Icf5afdfd1d078e250bec29af828ea63f78ee0a9e
2015-10-05 16:40:05 -06:00
Tim Buckley
37e06a5723 Add DatasetService to read and manage config.json.
The DatasetService is intended to load and manage any number of
configured data sources as specified in `config.json`. It also
enforces use of Angular's built-in content caching to improve
loading times of already-accessed datasets.

Change-Id: Ibb161a171d6375bf024bf8c0ab051c3f1a97f760
2015-10-05 15:09:27 -06:00
Tim Buckley
8be1f587d7 Remove all Django-related functionality.
Exporter functionality in `export.py` no longer uses Django to
render pages, and instead generates its own `.json` files.
Additionally, a configuration file is generated that can be
consumed by the in-progress Angular frontend.

Change-Id: I37b5be581dbd784fd009c1040422f1cadb009a3a
2015-09-30 13:25:30 -06:00
Jenkins
9aaee2b681 Merge "Add data gulp task." 2015-09-29 17:54:06 +00:00
Jenkins
611e71fda7 Merge "Clean outdated config files and boilerplate examples." 2015-09-29 17:52:42 +00:00
Jenkins
1bb46b819c Merge "Add initial template and homepage." 2015-09-29 17:16:50 +00:00
Tim Buckley
1e09a951c9 Clean outdated config files and boilerplate examples.
Various example resources from the project boilerplate can be
removed, and configuration files for bower and eslint are no
longer needed. An outdated Karma config file is also removed,
as JavaScript tests are moved into the `test` subdirectory.

Change-Id: I2407c20f00f3346b8969d819db92a9fb70c429eb
2015-09-28 14:57:02 -06:00
Jenkins
488aeb8813 Merge "Edit karma version in package.json" 2015-09-28 20:43:55 +00:00
Jenkins
8a4c758760 Merge "Use gulp-replace to rewrite JS and CSS paths during gzip task." 2015-09-28 20:34:01 +00:00
Jenkins
d0ec7827de Merge "Add required styles and fonts." 2015-09-28 19:30:09 +00:00
Tim Buckley
df8c054819 Add data gulp task.
This adds a new Gulp task to automatically include `app/data` in
dev builds if it exists. This directory will contain sample data
files for use during development and outputs them to `build/data`.
Additionally, this integrates with browser-sync and will
automatically reload open browsers as testing datasets are
changed.

Change-Id: Ie1578682d11e36bd6142b9d326f50a547aa4613b
2015-09-28 11:50:07 -06:00
Austin Clark
07d2f22594 Edit karma version in package.json
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
2015-09-28 10:32:34 -06:00
Tim Buckley
6ae7d8ace1 Use gulp-replace to rewrite JS and CSS paths during gzip task.
`index.html.gz` now links properly to gzipped resources allowing
them to be distributed unmodified and without the uncompressed
resources.

Change-Id: I253f5207de5b13a105dfb8ddd226d7da6ba2b34b
2015-09-25 17:55:33 -06:00
Tim Buckley
814392e995 Add initial template and homepage.
This adds the base Angular template as well as a stub for the
homepage and menu.

Change-Id: Ia27796b6a3495f0c5daacdec9255025f8ea72d2f
2015-09-25 17:48:45 -06:00
Tim Buckley
8952ea2e5e Update README.rst to include Node instructions.
Change-Id: I030f79f3636aba9bf00b9bce31c169631a06762c
2015-09-25 17:39:11 -06:00
Tim Buckley
22803dc6d8 Add required styles and fonts.
Add static instances of FontAwesome, Bootstrap, and theme resources
to more fully move to NPM/Browserify package management.

Change-Id: I4ceb0cd44f1e54207fde9c6645931e3a29705894
2015-09-25 22:35:27 +00:00
Tim Buckley
0034283601 Add initial Angular boilerplate files.
Adds boilerplate files from `angularjs-gulp-browserify-boilerplate`
to start work on Angular rewrite of the frontend.

Change-Id: I54392c24f397496582f9d06d561d5c14a92ccbe6
2015-09-25 16:26:44 -06:00
Monty Taylor
80ae14c030 Change ignore-errors to ignore_errors
Needed for coverage 4.0

Change-Id: I3fb6531f320d4de4e2daa266a5ad9332b1ea504d
2015-09-21 14:55:37 +00:00
Jenkins
07dbf5fc3b Merge "Add .gitreview file" 2015-09-15 20:13:52 +00:00
Matthew Treinish
59464dd081 Fix the pep8 issues
The stackviz repo was recently moved into gerrit and the standard python
jobs were added on it. However there were some outstanding pep8 issue on
the repo which is blocking any changes. This commit fixes all of them.

Change-Id: I2d40ee965ba3166a580f16046fc741e05b54ac74
2015-09-15 13:48:51 -04:00
Tim Buckley
9ddf61fe04 Add .gitreview file
Change-Id: Ie7ec513d5250ef5b74e91348d532ff6ac6b9e4b7
2015-09-14 15:59:30 -06:00
Austin Clark
d28ab9cc5d Merge remote-tracking branch 'origin/master' 2015-08-21 07:38:25 -06:00
Austin Clark
53e92cf8c9 Add dependencies to requirements.txt 2015-08-21 07:38:07 -06:00
Tim Buckley
7c08dbf3eb Update README.rst to reflect syntax changes to stackviz-export 2015-08-20 13:56:14 -06:00
Austin Clark
ec1caea762 Add dependencies to requirements.txt 2015-08-20 13:55:21 -06:00
Tim Buckley
3fb51f3249 Fix incorrect link target for run selector on results page 2015-08-20 10:26:08 -06:00
Austin Clark
e79b4ae041 Fix sunburst log display api calls 2015-08-20 10:17:59 -06:00
Tim Buckley
984b625036 Fallback gracefully when dstat log is missing 2015-08-20 10:03:47 -06:00
Tim Buckley
1c31ecad0e Merge branch 'master' of github.com:timothyb89/stackviz 2015-08-20 09:30:26 -06:00