Commit Graph

314 Commits

Author SHA1 Message Date
Ghanshyam Mann d58ee7fb08 Retire openstack-health
openstack-health is QA repo and service to know the
job/test success/failure rate. But for a long (more than
a year), this code is broken. We do not have any maintainer
in QA to fix and maintain it. As it is broken, QA and infra team
agree to stop the service

- http://status.openstack.org/openstack-health/#/

In QA zed PTG, we decided to retire the repo also

- https://etherpad.opendev.org/p/qa-zed-ptg

Needed-By: https://review.opendev.org/c/openstack/governance/+/836706
Change-Id: Ie15aa8e469b0bb3aff47dcad422c0676fea640d2
2022-04-05 18:47:38 -05:00
Jonathan Herlin e1e56eef83 Remove Bugday from navbar
It seems like bugday was removed from the navbar in all other places
on status.openstack.org so this commit removes it from the menu.
It also seems like there is no backend configured for "/bugday"

Change-Id: I67e9271450ee7c98887759d0224cd26f72adabba
2019-07-17 12:19:01 +02:00
lijunjie c8b06c57fd Fix the misspelling of "register"
Change-Id: Ib2ba436b6010681263a23f5fad4448edbbacfdc7
2019-01-23 16:38:58 +08:00
mccasland, trevor (tm2086) 741a457f72 Add run time graph for jobs
Motivation for this change:
  By adding the run time graph to the job's page it will raise
  awareness to users of changes in run times among jobs.
  By adding the scatter graph to the job's page it can raise awareness
  of the run time deviation.

New behavior:
  A linear and scatter chart called Job Run Time is available in the jobs
  view. It gathers run_time data from the job_data objects provided by
  the timedelta in the response of /runs/key/<key>/<value> limited
  by the values in the resolution dropdown.
  The original response of this API call is wrapped in a 'data' property
  and the additional information to support drawing the scatter chart on
  the canvas is added to a new dict property called 'numeric'.

NOTE:
  * The methods in run_aggregator were derived from [1] and [2]
  * An experiment was done to see which implementation would
    result in the lowest load time and the results for the job
    'tempest-full' for 2 weeks and 1 month periods are as follows:
    - latest patch with 1 db call
        2.21s - 2 weeks
        3.40s - 1 month

    - older patch with 2 db calls
        7.86s - 2 weeks
        10.16s - 1 month

completes queens priority "Job duration graph in o-h" from:
  https://etherpad.openstack.org/p/qa-queens-priorities

[1] https://review.openstack.org/#/c/370913/4
[2] 4db9a61471/openstack_health/test_run_aggregator.py (L70-L90)
Change-Id: Ib5196d86b6b5efa0083d4aa4dd28f1fac3493560
2018-06-29 14:57:05 -05:00
Masayuki Igawa f7909853f6
Fix failed tests job name value on top page
This commit fixes job name value to use 'job_name' value of the first
failed. As the previous patch[1] says, the job name in the url doesn't
always match the job name in the database in the zuul v3 world.

[1] Ic1ba76c853ffd9ebb87683e56c82fea711b6139b

Change-Id: Ida70e2704d9e7a038fe5747bd53c816155435325
2017-11-17 13:48:17 +09:00
Masayuki Igawa 8bcc93b690
Trust resource URLs in health-api for various environments
This commit makes resource the URLs in health-api.js for various
environments such as in local development environments, downstream
environments. The URLs should be trusted because the apiRoot value comes
from the config.
If you'd like to know more details of $scedelegateprovider, you can
see the documents at angularjs site[1].

[1] https://docs.angularjs.org/api/ng/provider/$sceDelegateProvider

Change-Id: Iec67c1a5236c9c8febfc83188db71754f895bff6
2017-10-31 18:34:37 +09:00
Andreas Jaeger c483ead33b Bye, Bye Diablo
Fix footer links - syncing with docs.o.o/www.openstack.org.

Change-Id: Ibbdcccf519fa4ae19b8ebc0b2d0040dfde591d80
2017-08-04 20:27:32 +02:00
Masayuki Igawa 8338cd5a7e
Update openstack logo
This commit replaces the openstack logo to new one. The new logo is
simple and clean. Let's use it.

Change-Id: I324c4063ee9c036ef1cf932e62650a3a94fb62e7
2017-04-06 15:49:03 +09:00
Jenkins abbafad690 Merge "Fix ratio to percent on failure rate graphs" 2017-03-30 18:09:11 +00:00
Masayuki Igawa 4af48d0971
Change default period of all graphs to 1 week
This commit changes default period of all graphs to 1 week except
grouped-runs which is already set as 2 weeks. We already changed it in
the home page[1] and it seems good. So let's make it the others.

[1] Ia8cdf52d191453c9bab59669550c0d7dc8faa6e2

Change-Id: Idaec6617032c48c64aa7e860bc95a7556e43f1c9
2017-03-24 12:43:48 +09:00
Masayuki Igawa c72ab70202
Fix ratio to percent on failure rate graphs
This commit fixes the ratio values to percent on failure rate graphs. We
already use percents in many graphs and users are familiar with percents
rather than ratio.

Change-Id: I056b62b215230b4666401eabace42cac7e68201d
Closes-Bug: #1674066
2017-03-19 17:16:01 +08:00
Masayuki Igawa 609178cd42
Change home page default period to 7days
This commit changes the home page default period to 7 days to reduce the
loading time. So users don't want to stand for it.

Change-Id: Ia8cdf52d191453c9bab59669550c0d7dc8faa6e2
2017-03-19 13:16:35 +08:00
Masayuki Igawa 110ac7a1b3 Fix failure ratio format in charts
This commit fixes the failure ratio formats in some charts. Failure
ratios are between 0 and 0.2 in most of the case. So the float numbers
should have more accuracy to know exact values.

Change-Id: I26350bf8b7ff586242f99ec7ab171472f16a188c
2017-02-09 08:16:40 +00:00
Tim Buckley 6d0ec590dd Remove the angular 1.6 hashPrefix
Angular 1.6 set the hashPrefix to '!', breaking all old URLs. This
reverts it to the previous Angular 1.5 behavior.

Change-Id: I431ebbe820c764e017870ae4c156275740341bc4
2017-02-07 13:57:13 -07:00
Dong Ma da1186f592 Fix nodejs4-npm-run-test and docs failure
The angular.js 1.6.0 release have two breaking changes caused the
test failures, you can check the detail changelog[0].
JSONP requests now require a trusted resource URL[1]
JSONP callback must be specified by jsonpCallbackParam config[2]

[0] https://github.com/angular/angular.js/blob/master/CHANGELOG.md#160-rainbow-tsunami-2016-12-08
[1] 6476af83cd
[2] fb66341871

The docutils 0.13.1 release breaks some documentation jobs
when it tries to build docs with remote images. This has been reported
upstream[3]. The version matches the supported docutils versions for
sphinx. The requirements patch is here: [4]

[3] https://sourceforge.net/p/docutils/bugs/301/
[4] https://review.openstack.org/#/c/409529/

Change-Id: If2b24303a60f8452a8ae8b7b3be36fa9b2541880
2017-01-15 09:41:40 -08:00
Masayuki Igawa a1a5e66bc7 Fix duplicate graph rendering when data change
This commit fixes the duplicate graph rendering when data change with
just adding clearRect() in rednerBase function to clear an old graph.

Change-Id: Ib198580a325493006e04ef2e7372cc9cdc94a028
Closes-Bug: #1644704
2016-12-01 23:07:53 +00:00
Tim Buckley a4dd1bd7a0 Add canvas scatter chart
This commit adds a canvas-based scatter chart using the new canvas
directives, replacing the nvd3 scatter/line multi-chart on the test
page.

Note that this chart also replaces the scatter chart as well as the
multi-chart as all canvas charts are implicitly multi-charts: we can
draw as many charts on top of one another as we'd like.

Change-Id: I3c560f1e04631c1e72aecac4bf0af656a04a3d6f
2016-10-02 19:08:35 -06:00
Tim Buckley 7d87c32d86 Add canvas line chart
This commit adds a canvas-based line chart using the new canvas
charting directives, replacing the nvd3 line charts on the home,
grouped run, and job pages.

Change-Id: Ifd937196e7f9f1f3176ddf82fa54cdab49df4461
2016-10-02 19:01:07 -06:00
Tim Buckley 38c9528eb1 Add base utilities for canvas charts
This commit adds support for our own custom canvas-based charts.
By avoiding SVG and rendering directly to a 2D canvas context, these
charts should greatly reduce memory usage and improve page
performance, particularly when scrolling or on browsers and platforms
without good hardware acceleration. Lag while scrolling or hovering
over data points should be almost entirely eliminated, especially on
data-heavy pages like the home page with large periods or certain test
pages.

This commit adds only the components shared between all charts. New
implementations of each specific chart type will be added in follow-up
patches.

Change-Id: I5aff9c647095d879982c9b4d6080eafc497368d6
2016-10-02 18:42:38 -06:00
Jenkins c03378f034 Merge "Replace loading bar to nprogress" 2016-09-13 21:55:06 +00:00
Jenkins c28c91647a Merge "Change run time graph to multiChart type" 2016-08-26 20:41:37 +00:00
Jenkins c6659158d1 Merge "Change pass-fail graph to multi bar chart" 2016-08-26 20:37:42 +00:00
Masayuki Igawa af995043b0 Change run time graph to multiChart type
This commit changes the run time graph type on the test page from
scatterChart to multiChart. The average graph should be a line graph but
the raw data should be plotted as a scatter graph.

Closes-Bug: #1611106
Change-Id: I3b447a058fd0b525938e57921740920a26133b59
2016-08-23 19:38:02 +09:00
Masayuki Igawa 405dc9cc89 Change pass-fail graph to multi bar chart
This commit changes the pass-fail graph on test page to multi bar chart
graph. I think this is better than the historical bar chart. But the
header of the tooltip is not correct when the flag of
chart.useInteractiveGudeline(true) due to this issue[1]. So I just set
it false as a workaround. We may need to set it true if we want to see
in one tooltip for each data.

[1] https://github.com/novus/nvd3/pull/1722

Closes-Bug: #1611105
Change-Id: I9e418b77eb03956be16de45df701ae94ea762cde
2016-08-19 14:36:46 +09:00
Jenkins a5d7712cd9 Merge "Add link to node_provider grouped run page from test page" 2016-08-18 20:12:18 +00:00
Tim Buckley 8f7f3a6631 Update page title on job and test pages
This commit adds page title updates to the job and test pages using
the pageTitleService. Currently these pages only show "Job" or "Test"
in the title bar, but this sets the title to "Job: current-job" or
"Test: current-test" depending on the current page.

Change-Id: I8bae8d6e47cdcfbdef18314d20b4d313f7e2e5ca
Closes-Bug: #1614076
2016-08-17 17:08:56 -06:00
Matthew Treinish 74fb0491bf
Add link to node_provider grouped run page from test page
This commit adds a link to the grouped run page for the node providers
on the list of recent runs at the bottom of the per run page. Before it
was just the text, but since we do have a view for node_providers we
should link to it.

Change-Id: I318a393c7488df9a0b5fcab91ce998d71535372f
2016-08-16 18:27:35 -04:00
Jenkins 3c2d401a9b Merge "Add failed runs list to test page" 2016-08-16 15:16:47 +00:00
Matthew Treinish e86564d6a0
Add failed runs list to test page
This commit adds a new table to the per test page which shows all the
runs which have failed in the current view. This is useful for
debugging spikes in failures on the pass fail graph.

Change-Id: Idc8c5d41467ac0302a4e8a256e64af1bb73cae24
2016-08-10 17:52:25 -04:00
Jenkins 0a45cdb81f Merge "De-vendorify d3 and nvd3" 2016-08-08 20:57:50 +00:00
Matthew Treinish 1dd17aa6ef
Add total count table to per test page
This commit adds a table to the bottom of the per test page that
details the total counts and percentages by status for a particular
test over the selected time window. While the area plot is good to
visualize this overtime, it's not good for figuring out aggregate
data, which is where the table is useful.

Change-Id: I58b0d834fb8e7d74ce1aa7a8020f54a238995ba4
2016-08-05 16:25:22 -04:00
Matthew Treinish 4b90966759
De-vendorify d3 and nvd3
It's been almost a year since we started openstack-health, and most of
the bugs and/or missing features from nvd3 have been addressed. This
commit moves us onto the nvd3 releases and packages instead of using
a random git snapshot from Oct. 2015.

Change-Id: Ibfefe310fbad1d80f4c7ec96bda083d97a09824e
2016-08-05 13:01:45 -04:00
Masayuki Igawa 6927ee48dc Replace loading bar to nprogress
This commit replaces the loading bar to the nprogress. It is fancier
than the original one. And this new loading bar have the ability to
inform users about the true progress. So we might be able to implement
a better progress bar mechanism in the future.

Change-Id: If3b4ef66759e96c6807bd6aea150c21ffb3f95d1
2016-07-15 10:17:36 +09:00
Jenkins 42ae4b0d84 Merge "Move crumb menu to fixed top" 2016-07-14 07:34:53 +00:00
Jenkins b9fddd5e9a Merge "Add regex filter to job page graphs" 2016-07-14 00:54:04 +00:00
Masayuki Igawa 8c331013f1 Fix counting fails in test page
This commit fixes the typo to count fails correctly.

Partial-Bug: #1590098
Change-Id: I7b4bdcf955c4bedf9acb955fc9a7989b443f7bca
2016-07-12 15:00:43 +09:00
Masayuki Igawa 6ebb2e932c Add regex filter to job page graphs
This commit add regex filters to the job page graphs. The graph's regex
filter was introduced in the home/group page. However, I forgot to care
about the job page at that time.

Change-Id: If4bcebda66d83a26b9ef16429e1fca17ffedd918
Closes-Bug: #1590059
2016-07-06 11:17:04 +09:00
Jenkins 77aeb209a5 Merge "Fix crumb menu on test details page" 2016-07-01 02:47:42 +00:00
Tim Buckley bb5807567a Fix crumb menu on test details page
Currently, the crumb menu's parent page detection is broken on the
tests detail page following the split of the original tests page into
'tests' and 'testsDetail', causing it to mistakenly show 'Overview'
instead of 'Tests'.  This updates the crumb menu's view code to
additionally check for the 'testsDetail' state.

A new filter, 'anyState', is also added to provide the necessary
functionality, since angular's own conditionals don't work in this
context.

Change-Id: I758f8230442607150c59be3b83ac7586679047ec
2016-06-29 22:07:26 +00:00
Masayuki Igawa 63a195b8fe Add launchpad bugs links to the home page failed runs
This commit adds launchpad bugs links to the home page failed runs.

Change-Id: I9859b4bedd6db02897bf9330e0f879b4d63d8e77
Closes-Bug: #1586508
2016-06-21 11:39:16 +09:00
Sean M. Collins 0530b663d1 Round date intervals to nearest hour
start_date, stop_date and end will be rounded to the nearest hour, in
order to help cache hits.

Change-Id: I441e8ded715a727362a44f14c24571a37217e0d7
2016-06-14 15:34:08 -04:00
Masayuki Igawa e2817570dc Add regex filter to group page graphs
This commit add regex filters to the group page graphs. The graph's
regex filter was introduced in the home page. However, we didn't care
about the group page at that time.

Change-Id: Id16e745ff3eff256be06829f65bd711041d20fe2
Closes-Bug: #1590059
2016-06-14 17:37:43 +09:00
Jenkins 0af008c696 Merge "Only add parameters to the URL when changed from defaults" 2016-06-09 16:40:16 +00:00
Jenkins f1d4c43e4c Merge "Redesign failed tests panel" 2016-06-09 16:31:48 +00:00
Masayuki Igawa 68407b0806 Fix typos in README and comments
This commit fixes typos in README and comments.

Change-Id: I8236c1c21ec7ae8fbd8f5c8f9ecad31fb9250e32
2016-06-03 15:10:11 +09:00
Tim Buckley a10d099d23 Redesign failed tests panel
This redesigns the failed tests panel, replacing the panel/accordion
group/table combination with a flat table that should be much easier
to extend. This also adds a new 'nest' directive to better support
dynamic hiding/showing of content. The directive is able to insert
nested content as a sibling of any normal data row, allowing for
more consistent layouts.

Change-Id: Ic0ad498049ca0f008fbcecb1dbbac3c48ab9cb41
2016-06-01 17:43:19 -06:00
Jenkins 602e051648 Merge "Add feedback and feedback-fix css class" 2016-05-25 01:16:09 +00:00
Masayuki Igawa 6760b1c4bf Add feedback and feedback-fix css class
This commit adds css classes for the feedback link to emphasize when it
is on graphs. And this also fixes the issue that the fixed navbar class
absorbs click events at the bottom of the screen.

Change-Id: If39e0cc52a31f67590a459af4db007e3b8888511
2016-05-24 14:16:15 +09:00
Tim Buckley 9bb57ab0b4 Only add parameters to the URL when changed from defaults
Currently, page state parameters like 'end', 'resolutionKey', and
'groupKey' are sync'd to the page URL on every page change
unconditionally. This results in a lot of unnecessary information that
we can assume by default until a user actually requests a different
value.

This patch modifies the current parameter sync implementation so that
it only maintains page parameters after their initial values have been
explicitly set by a user, and assumes default values otherwise. In
most cases, this should significantly shorten shared URL length.

Change-Id: Ife271444817bdfa8d19c0b69ca6039c5c7c290db
Closes-Bug: #1572766
2016-05-23 20:02:49 +00:00
Jenkins f6f12919af Merge "Add elastic-recheck data querying" 2016-05-20 21:35:11 +00:00