Matthew Stidham
36400e003d
Making it so that lanforge-scripts can work if the repository isn't named exactly the same way
...
Signed-off-by: Matthew Stidham <stidmatt@gmail.com >
2021-09-17 15:29:15 -07:00
erinnerim
1d7578251c
Updates to import statements:
...
- Import importlib, os, and sys to each python script.
- Append "lanforge-scripts" root directory to the system path, allowing each script to be called from an antecedent directory. e.g.
if 'lanforge-scripts' not in sys.path:
sys.path.append(os.path.join(os.path.abspath(__file__ + "../../../../../")))
- All statements of the form 'from <module> import <class>' replace with:
<module> = importlib.import_module("lanforge-scripts.<directory>.<module>")
<class> = <module>.<class>
2021-09-15 16:17:16 -07:00
Chuck SmileyRekiere
2efbc62842
Revert "Update py_json files to be compatible with pip standards"
...
This reverts commit 0be47c82de .
2021-09-09 05:32:31 -06:00
Chuck SmileyRekiere
8e9909f2d0
Revert "Revert "Update py_json files to be compatible with pip standards""
...
This reverts commit 6b0322cafa .
2021-09-09 05:28:17 -06:00
Chuck SmileyRekiere
6b0322cafa
Revert "Update py_json files to be compatible with pip standards"
...
This reverts commit 0be47c82de .
2021-09-09 05:24:20 -06:00
Matthew Stidham
0be47c82de
Update py_json files to be compatible with pip standards
...
Signed-off-by: Matthew Stidham <stidmatt@gmail.com >
2021-09-08 16:54:45 -07:00
Matthew Stidham
40fde97861
Major Grafana Dashboard script restructuring
...
Signed-off-by: Matthew Stidham <stidmatt@gmail.com >
2021-08-31 15:55:36 -07:00
Matthew Stidham
6a95930a09
Better output when user types in a wrong port in lf_check.py
...
Signed-off-by: Matthew Stidham <stidmatt@gmail.com >
2021-08-06 09:20:50 -07:00
Matthew Stidham
7cbd210253
Error reporting for Influx and Grafana in Ghost posts
...
Signed-off-by: Matthew Stidham <stidmatt@gmail.com >
2021-08-04 15:27:47 -07:00
Matthew Stidham
a0fd568fc6
fix dictionary parsing in ghostrequest.py
...
Signed-off-by: Matthew Stidham <stidmatt@gmail.com >
2021-08-02 16:44:24 -07:00
Matthew Stidham
1c0d6d34b2
Enable better titles in Grafana dashboards with multiple test tags
...
Signed-off-by: Matthew Stidham <stidmatt@gmail.com >
2021-08-02 16:23:42 -07:00
Matthew Stidham
5a0899b41c
Make Ghost Request more versatile as kpi.csv files change so it doesn't break on older lanforge builds, and so we can add in new columns without difficulty.
...
Signed-off-by: Matthew Stidham <stidmatt@gmail.com >
2021-07-30 10:12:47 -07:00
Matthew Stidham
bd10818fc1
Add a try, except condition around the test_tag variable to support older lanforge versions
...
Signed-off-by: Matthew Stidham <stidmatt@gmail.com >
2021-07-28 16:44:08 -07:00
Matthew Stidham
53015a5501
Updating to make better Ghost posts, with more details in the first table, and enabling reading test_tags from the kpi.csv files.
...
Signed-off-by: Matthew Stidham <stidmatt@gmail.com >
2021-07-22 15:27:20 -07:00
Matthew Stidham
2828bd077b
Add failure message when a KPI is not found in a folder for GhostRequest
...
Automatic script to run influx, grafana, and ghost from wifi capacity and dataplane.
Minor fix in csv_to_influx for correcting missing values
Signed-off-by: Matthew Stidham <stidmatt@gmail.com >
2021-07-21 14:19:21 -07:00
Matthew Stidham
478464d302
Remove unncessary files and fix GhostRequest html link
...
Signed-off-by: Matthew Stidham <stidmatt@gmail.com >
2021-07-20 15:17:34 -07:00
Matthew Stidham
f1cb37fe2d
Better text for html links in ghostrequest.py and correct link for html report
...
Signed-off-by: Matthew Stidham <stidmatt@gmail.com >
2021-07-20 14:39:00 -07:00
Matthew Stidham
2f6e6731ea
Better text for html links in ghostrequest.py
...
Signed-off-by: Matthew Stidham <stidmatt@gmail.com >
2021-07-20 14:31:44 -07:00
Matthew Stidham
3def8a94b1
HTML and PDF report links on a single line in the Ghost report
...
Signed-off-by: Matthew Stidham <stidmatt@gmail.com >
2021-07-20 13:28:42 -07:00
Matthew Stidham
6e4c79d947
Adding HTML reports to ghost reports generated by GhostRequest
...
Signed-off-by: Matthew Stidham <stidmatt@gmail.com >
2021-07-20 11:15:40 -07:00
Matthew Stidham
ae2e95723c
CSVReader splits on tabs, not commas, and replace NaN with 0x0 in csv file swhen reporting to influx
...
Signed-off-by: Matthew Stidham <stidmatt@gmail.com >
2021-07-14 16:05:56 -07:00
Matthew Stidham
8cef95962e
Major ghost improvements, create wifi_capacity dataplane, ghost script
...
Signed-off-by: Matthew Stidham <stidmatt@gmail.com >
2021-07-12 15:29:30 -07:00
Matthew Stidham
61b2a70629
Fix dut_table argument
...
Signed-off-by: Matthew Stidham <stidmatt@gmail.com >
2021-07-09 12:03:15 -07:00
Matthew Stidham
18911c1199
Restructure DUT table in ghost report
...
Signed-off-by: Matthew Stidham <stidmatt@gmail.com >
2021-07-09 11:36:03 -07:00
Matthew Stidham
1d639b22fa
Nicer table at the top of the report, including support for multiple devices
...
Signed-off-by: Matthew Stidham <stidmatt@gmail.com >
2021-07-08 17:38:21 -07:00
Matthew Stidham
588c66f7c4
Mostly Ghost table fixes
...
Signed-off-by: Matthew Stidham <stidmatt@gmail.com >
2021-07-08 17:20:43 -07:00
Matthew Stidham
97dff76e8b
ghost column name improvement
...
Signed-off-by: Matthew Stidham <stidmatt@gmail.com >
2021-07-08 15:08:18 -07:00
Matthew Stidham
10d51764dc
Grafana dashboard needs to filter Influx by testbed
...
Signed-off-by: Matthew Stidham <stidmatt@gmail.com >
2021-07-08 13:32:17 -07:00
Matthew Stidham
12536de98d
Grafana times need to be formatted as timezone in order to work properly.
...
Signed-off-by: Matthew Stidham <stidmatt@gmail.com >
2021-07-08 12:45:57 -07:00
Matthew Stidham
87d7e1a8eb
Grafana and Ghost improvements, fixing table columns,fixing title of ghost articles, and pass/fail kpi
...
Signed-off-by: Matthew Stidham <stidmatt@gmail.com >
2021-07-08 11:47:17 -07:00
Matthew Stidham
883fdc9b3b
Fix table
...
Signed-off-by: Matthew Stidham <stidmatt@gmail.com >
2021-07-06 14:39:36 -07:00
Matthew Stidham
8044fc351a
Correct link in Ghost post to PDFs
...
Signed-off-by: Matthew Stidham <stidmatt@gmail.com >
2021-07-06 13:31:40 -07:00
Matthew Stidham
fd4872a689
DUT information from KPI files
...
Signed-off-by: Matthew Stidham <stidmatt@gmail.com >
2021-07-02 15:03:57 -07:00
Matthew Stidham
e100a38c22
Clean up redundant directories and add library to update_dependencies
...
Signed-off-by: Matthew Stidham <stidmatt@gmail.com >
2021-06-29 16:28:43 -07:00
Matthew Stidham
419322bd6f
GhostRequest Copy instead of moving the folders with data
...
Signed-off-by: Matthew Stidham <stidmatt@gmail.com >
2021-06-29 15:16:12 -07:00
Matthew Stidham
8014226b32
Major Ghost script improvements and additions
...
Signed-off-by: Matthew Stidham <stidmatt@gmail.com >
2021-06-29 14:56:54 -07:00
Matthew Stidham
d1e4351b70
test rig command and other improvements to automation
...
Signed-off-by: Matthew Stidham <stidmatt@gmail.com >
2021-06-24 16:59:13 -07:00
Matthew Stidham
9741c326bb
Keep Grafana snapshots for a long time by default
...
Signed-off-by: Matthew Stidham <stidmatt@gmail.com >
2021-06-22 14:48:19 -07:00
Matthew Stidham
68b6ab3cd8
Proper sized grafana snapshots in Ghost
...
Signed-off-by: Matthew Stidham <stidmatt@gmail.com >
2021-06-22 14:48:19 -07:00
Matthew Stidham
c2586f8343
Grafana and Ghost integration updates
...
Signed-off-by: Matthew Stidham <stidmatt@gmail.com >
2021-06-22 14:48:19 -07:00
Matthew Stidham
5b1c188ac2
Include embedded dashboard in ghost page
...
Signed-off-by: Matthew Stidham <stidmatt@gmail.com >
2021-06-15 15:56:58 -07:00
Matthew Stidham
c2e5bfae0a
Improving wifi capacity to ghost function
...
Signed-off-by: Matthew Stidham <stidmatt@gmail.com >
2021-06-09 17:29:59 -07:00
Matthew Stidham
dac45e4edd
Create Ghost Profile python scripts
...
Signed-off-by: Matthew Stidham <stidmatt@gmail.com >
2021-06-03 12:54:29 -07:00
Matthew Stidham
6e7f4e1fb1
Create csv_to_grafana.py and build dependencies
...
Signed-off-by: Matthew Stidham <stidmatt@protonmail.com >
2021-04-22 16:54:58 -07:00
Matthew Stidham
675a039e74
Working create_dashboard from grafana_profile.py
...
Signed-off-by: Matthew Stidham <stidmatt@protonmail.com >
2021-04-20 17:31:54 -07:00
Matthew Stidham
400ceb308f
Fix cv_test_manager.py's Grafana call and correct spacing
...
Signed-off-by: Matthew Stidham <stidmatt@protonmail.com >
2021-04-20 13:56:01 -07:00
Matthew Stidham
b68064028f
Fix influx2.py
...
Signed-off-by: Matthew Stidham <stidmatt@protonmail.com >
2021-04-20 11:45:57 -07:00