Skip to content

amygutierrez/regression_dashboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Regression Dashboard

This Github repo develops a report dashbaord on the automated regression tests from the repo slurm_testing. This automated regression testing repo is specifically made for testing C-PAC. Currently, the regression test only runs default pipeline.

Scripts

create_yml.py

This script parses through C-PAC output directories to find log, output, and working directories. These paths are written in a YAML file, which will get used in the following script for correlating.

Arguments:

--pipeline1 {/path/to/CPAC/output}                CPAC output directory for correlating against `pipeline2`.
                                                  Its following subdirectory should be `log`, `output`
                                                  and `working`

--pipeline2 {/path/to/CPAC/output}                CPAC output directory for correlating against `pipeline1`.
                                                  Its following subdirectory should be `log`, `output`
                                                  and `working`.

--workspace $GITHUB_WORKSPACE                     Github workspace. Ensure that all files get saved here
                                                  for easy accessibility. 

--branch $GITHUB_BRANCH                           Developer's branch name. This ensures that all files created
                                                  have a unique name (no overwriting in cluster).

--data_source Site_Name                           Name of Site data comes from. Will be HNU_1, Site-CBIC, and Site-SI

Output:

{branch_name}.yml                                 YAML file that contains the file paths of CPAC output directories.

calculate_correlations.py

This script calculates correlations of the files from the YAML file created above. These file paths contains images from the C-PAC output directories in which we want to correlate against. These JSON files are created in the cluster and must be sent back to Github Actions from the cluster when completed.

Arguments:

input_yaml {/path/to/branch_name.yml}             This is a positional argument!! Meaning there is no flag
                                                  so first argument must be the YAML file that was output
                                                  from `create_yml.py` 

--branch $GITHUB_BRANCH                           Developer's branch name. This ensures that all files created
                                                  have a unique name (no overwriting in cluster).

--data_source Site_Name                           Name of Site data comes from. Will be HNU_1, Site-CBIC, and Site-SI

Output:

{data_source}_{branch}.json                       The  output are JSON files with correlations of every file in the C-PAC
                                                  output directories.

build_dashboard.py

This script builds the dashboard based on the correlations calculated above. Currently, the dashboard is saved onto a temporary HTML file that automatically opens up in a browser.

Arguments:

--json_files                                      JSON files created from `calculate_correlations.py` script.
                                                  If multiple JSON files, can separate then by a comma (NO SPACES).
                                                  --json_files HNU_1_{branch}.json,Site-SI_{branch}.json,Site-CBIC_{branch}.json

--branch $GITHUB_BRANCH                           Developer's branch name. This ensures that all files created
                                                  have a unique name (no overwriting in cluster).

Output:

temp.html                                         Temporary HTML file that automatically opens in browser. Tempoary
                                                  because it does not get saved to computer unless you save it.
                                                  If you exit browser, will need to build again.

Flowchart of Scripts

image

Dashboard Overview

The dashboard is a heat map where value < 0.98 will be red and value ≥ 0.98 will be green. Y-Axis: File names X-Axis: Data Source (data Site name)

Top part of Dashboard:

Screen Shot 2023-07-24 at 9 56 09 PM

Bottom X-Axis of Dashboard:

Screen Shot 2023-07-24 at 9 56 38 PM

Interactive:
If you hover over each block, it will also highlight the file name, Site name, and correlation value.

Screen Shot 2023-07-24 at 9 56 27 PM

GIF!

dashboard

About

Dashboard for regression suite correlations

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages