[FOLIO-1235] Dashboard for FOLIO hosted environment Created: 30/Apr/18 Updated: 12/Nov/18 Resolved: 17/May/18 |
|
| Status: | Closed |
| Project: | FOLIO |
| Components: | None |
| Affects versions: | None |
| Fix versions: | None |
| Type: | Task | Priority: | P2 |
| Reporter: | John Malconian | Assignee: | John Malconian |
| Resolution: | Done | Votes: | 0 |
| Labels: | ci, sprint37, sprint38 | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | 1 day, 1 hour | ||
| Original estimate: | Not Specified | ||
| Issue links: |
|
||||||||
| Sprint: | |||||||||
| Description |
|
Request from EBSCO to add a dashboard for FOLIO testing environment for testers. |
| Comments |
| Comment by John Malconian [ 30/Apr/18 ] |
|
My name is Tanuja dev from EBSCO .We recently had a requirement to implement a Dashboard site with the below environments. So that it will make the manually testers easy to look at what is up and running and test with less clicks to find what is running and what is not. On that note I think the data such as last update date/time and last update message is what few testers are interested in .Will it be possible to add an AWS SNS topic as part of the build process for below Jenkins jobs. If not is there any alternate way to grab the information. https://jenkins-aws.indexdata.com/job/Regression_Tests/job/folio-testing-ui-tests/
|
| Comment by John Malconian [ 30/Apr/18 ] |
|
Tanuja Gadde I can add the 'snsPublish' step from Pipeline AWS Jenkins plugin to the build jobs for folio-snapshot and folio-testing to publish SNS messages with the various bits of data requested. Just need AWS credentials, SNS topic, and region to post. Please send those to me directly. |
| Comment by John Malconian [ 10/May/18 ] |
|
Tanuja Gadde I've begun sending test data to the SNS topic you've provided. It's essentially the same notification data that is sent to Slack. Let me know if this data is usable or if you need it formatted differently. |
| Comment by Tanuja Gadde [ 11/May/18 ] |
|
John Malconian Thank you I see them.Will it be easy to send the notification in below format along with some additional fields like name of the environment and okapi url for the environment (since this is changing on every build for few environments).
{
"name":"folio-testing",
"message":"FAILED: 'UI Regression Tests failed for Automation/folio-snapshot-test #7-folio-snapshot-test' (<https://jenkins url>)",
"okapiURL":"http://folio-testing-backend01.aws.indexdata.com:9130"
}
{
"name":"folio-snapshot",
"message":"FAILED: 'UI Regression Tests failed for Automation/folio-snapshot-test #7-folio-snapshot-test' (<https://jenkins url>)",
"okapiURL":"http://folio-snapshot-210.aws.indexdata.com:9130"
}
{
"name":"folio-snapshot-stable",
"message":"FAILED: 'UI Regression Tests failed for Automation/folio-snapshot-test #7-folio-snapshot-test' <https://jenkins url>)",
"okapiURL":" http://folio-snapshot-210.aws.indexdata.com:9130"
}
|
| Comment by Tanuja Gadde [ 15/May/18 ] |
|
John Malconian Thank you again.I am able to see the test data published with the updated format. Just a minor fix,currently the name field is being sent as a url which is a little hard to map as the environment .Is this an easy fix to add name field as Jenkins job name. Currently sent message :
{ "name": "http://folio-testing.aws.indexdata.com", "message": "SUCCESS: 'UI Regression Tests passed for Regression_Tests/folio-testing-ui-tests-MALC #3-folio-testing-ui-tests-MALC. W00t!' (<https://jenkinsurl>)", "okapiUrl": "http://folio-testing-backend01.aws.indexdata.com:9130" }
Can it be updated as:
{ "name": " folio-testing", "message": "SUCCESS: 'UI Regression Tests passed for Regression_Tests/folio-testing-ui-tests-MALC #3-folio-testing-ui-tests-MALC. W00t!' (<https://jenkinsurl|Open>)", "okapiUrl": "http://folio-testing-backend01.aws.indexdata.com:9130" }
|
| Comment by John Malconian [ 15/May/18 ] |
|
Sure. Will make that modification as soon as I can. |
| Comment by Hongwei Ji [ 15/May/18 ] |
|
folio-snapshot-test or folio-testing? Prefer the latter since it is well known. |
| Comment by John Malconian [ 16/May/18 ] |
|
Tanuja Gadde The last two messages sent to SNS include the okapiUrl as well as as the platform instance name e.g 'folio-testing'. Can you copy the output to this issue? I just want to verify that the proper info is passed before I merge my changes. 'okapUrl' for folio-testing should be set to 'unknown' (as we discussed on Slack) and set to 'folio-snapshot-test.aws.indexdata.com:9130' for folio-snapshot. |
| Comment by Tanuja Gadde [ 16/May/18 ] |
|
John Malconian Thank you!! below is the output I received at 3:20PM today .
{ "name": "folio-testing", "message": "FAILED: 'UI Regression Tests failed for Regression_Tests/folio-testing-ui-tests-MALC #5-folio-testing-ui-tests-MALC' (<https://jenkins-aws.indexdata.com/job/Regression_Tests/job/folio-testing-ui-tests-MALC/5/UI_20Regression_20Test_20Report/|Open>)", "okapiUrl": "unknown" }
One other clarification about okapiurl: 'folio-snapshot-test.aws.indexdata.com:9130' does that map to *uiUrl:http://folio-snapshot.aws.indexdata.com/ *? Since i see a different url in the settings page 'http://folio-snapshot-224.aws.indexdata.com:9130' .I just want to be sure I am not missing something. To my knowledge these are the urls/environments the IC's are using: http://folio-snapshot.aws.indexdata.com/ http://folio-snapshot-stable.aws.indexdata.com/ http://folio-testing.aws.indexdata.com/ |
| Comment by John Malconian [ 17/May/18 ] |
|
Hi Tanuja Gadde - In the example above http://folio-snapshot-test.aws.indexdata.com:9130 is the URL to Okapi. In this case, it is the instance of Okapi that the UI at http://folio-snapshot-test.aws.indexdata.com is using. You are correct that you may see something different in the Settings page because http://folio-snapshot-test.aws.indexdata.com:9130 is just an alias to a real host called folio-snapshot-test-224 or whatever. The alias should be just fine. (Please disregard 'folio-snapshot-test', in general. I'm only using that URL for testing these changes). Since it appears these things are working, I will merge my changes this morning and we should be good to go, We can refine things as we go. |
| Comment by Tanuja Gadde [ 17/May/18 ] |
|
John Malconian Thank you again!! |