Skip to content

Commit 1b210c9

Browse files
committed
Put initialization logs in compilations into own log group
1 parent 3313ece commit 1b210c9

File tree

4 files changed

+20
-16
lines changed

4 files changed

+20
-16
lines changed

scripts/reports/compilations/CsvReports.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,15 @@ LOG_GROUP_END=${LOG_GROUP_END:-"::endgroup::"} # Prefix to end a log group. Defa
1717
# CDPATH reduces the scope of the cd command to potentially prevent unintended directory changes.
1818
# This way non-standard tools like readlink aren't needed.
1919
REPORT_COMPILATIONS_SCRIPT_DIR=${REPORT_COMPILATIONS_SCRIPT_DIR:-$( CDPATH=. cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P )}
20-
echo "CsvReports: REPORT_COMPILATIONS_SCRIPT_DIR=${REPORT_COMPILATIONS_SCRIPT_DIR}"
21-
2220
REPORTS_SCRIPT_DIR=${REPORTS_SCRIPT_DIR:-$(dirname -- "${REPORT_COMPILATIONS_SCRIPT_DIR}")}
23-
echo "CsvReports: REPORTS_SCRIPT_DIR=${REPORTS_SCRIPT_DIR}"
24-
2521
# Get the "domains" directory that contains analysis and report scripts by functionality.
2622
DOMAINS_DIRECTORY=${DOMAINS_DIRECTORY:-"${REPORTS_SCRIPT_DIR}/../../domains"}
23+
24+
echo "${LOG_GROUP_START}Initialize CSV Reports";
25+
echo "CsvReports: REPORT_COMPILATIONS_SCRIPT_DIR=${REPORT_COMPILATIONS_SCRIPT_DIR}"
26+
echo "CsvReports: REPORTS_SCRIPT_DIR=${REPORTS_SCRIPT_DIR}"
2727
echo "CsvReports: DOMAINS_DIRECTORY=${DOMAINS_DIRECTORY}"
28+
echo "${LOG_GROUP_END}";
2829

2930
# Run all CSV report scripts (filename ending with Csv.sh) in the REPORTS_SCRIPT_DIR and DOMAINS_DIRECTORY directories.
3031
for directory in "${REPORTS_SCRIPT_DIR}" "${DOMAINS_DIRECTORY}"; do

scripts/reports/compilations/JupyterReports.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,18 @@ LOG_GROUP_END=${LOG_GROUP_END:-"::endgroup::"} # Prefix to end a log group. Defa
2020
# CDPATH reduces the scope of the cd command to potentially prevent unintended directory changes.
2121
# This way non-standard tools like readlink aren't needed.
2222
REPORT_COMPILATIONS_SCRIPT_DIR=${REPORT_COMPILATIONS_SCRIPT_DIR:-$( CDPATH=. cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P )}
23-
echo "JupyterReports: REPORT_COMPILATIONS_SCRIPT_DIR=${REPORT_COMPILATIONS_SCRIPT_DIR}"
24-
2523
REPORTS_SCRIPT_DIR=${REPORTS_SCRIPT_DIR:-$(dirname -- "${REPORT_COMPILATIONS_SCRIPT_DIR}")}
26-
echo "JupyterReports: REPORTS_SCRIPT_DIR=${REPORTS_SCRIPT_DIR}"
27-
2824
# Get the "scripts" directory by taking the scripts report path and going one directory up.
2925
SCRIPTS_DIR=${SCRIPTS_DIR:-$(dirname -- "${REPORTS_SCRIPT_DIR}")}
30-
echo "JupyterReports: SCRIPTS_DIR=${SCRIPTS_DIR}"
31-
3226
# Get the "jupyter" directory by taking the path of the scripts directory, going up one directory and change then into "jupyter".
3327
JUPYTER_NOTEBOOK_DIRECTORY=${JUPYTER_NOTEBOOK_DIRECTORY:-"${SCRIPTS_DIR}/../jupyter"} # Repository directory containing the Jupyter Notebooks
28+
29+
echo "${LOG_GROUP_START}Initialize Jupyter Notebook Reports";
30+
echo "JupyterReports: REPORT_COMPILATIONS_SCRIPT_DIR=${REPORT_COMPILATIONS_SCRIPT_DIR}"
31+
echo "JupyterReports: REPORTS_SCRIPT_DIR=${REPORTS_SCRIPT_DIR}"
32+
echo "JupyterReports: SCRIPTS_DIR=${SCRIPTS_DIR}"
3433
echo "JupyterReports: JUPYTER_NOTEBOOK_DIRECTORY=${JUPYTER_NOTEBOOK_DIRECTORY}"
34+
echo "${LOG_GROUP_END}";
3535

3636
# Run all jupiter notebooks
3737
for jupyter_notebook_file in "${JUPYTER_NOTEBOOK_DIRECTORY}"/*.ipynb; do

scripts/reports/compilations/PythonReports.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,15 @@ LOG_GROUP_END=${LOG_GROUP_END:-"::endgroup::"} # Prefix to end a log group. Defa
1717
# CDPATH reduces the scope of the cd command to potentially prevent unintended directory changes.
1818
# This way non-standard tools like readlink aren't needed.
1919
REPORT_COMPILATIONS_SCRIPT_DIR=${REPORT_COMPILATIONS_SCRIPT_DIR:-$( CDPATH=. cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P )}
20-
echo "PythonReports: REPORT_COMPILATIONS_SCRIPT_DIR=${REPORT_COMPILATIONS_SCRIPT_DIR}"
21-
2220
REPORTS_SCRIPT_DIR=${REPORTS_SCRIPT_DIR:-$(dirname -- "${REPORT_COMPILATIONS_SCRIPT_DIR}")}
23-
echo "PythonReports: REPORTS_SCRIPT_DIR=${REPORTS_SCRIPT_DIR}"
24-
2521
# Get the "domains" directory that contains analysis and report scripts by functionality.
2622
DOMAINS_DIRECTORY=${DOMAINS_DIRECTORY:-"${REPORTS_SCRIPT_DIR}/../../domains"}
23+
24+
echo "${LOG_GROUP_START}Initialize Python Reports";
25+
echo "PythonReports: REPORT_COMPILATIONS_SCRIPT_DIR=${REPORT_COMPILATIONS_SCRIPT_DIR}"
26+
echo "PythonReports: REPORTS_SCRIPT_DIR=${REPORTS_SCRIPT_DIR}"
2727
echo "PythonReports: DOMAINS_DIRECTORY=${DOMAINS_DIRECTORY}"
28+
echo "${LOG_GROUP_END}";
2829

2930
# Run all Python report scripts (filename ending with Csv.sh) in the REPORTS_SCRIPT_DIR and DOMAINS_DIRECTORY directories.
3031
for directory in "${REPORTS_SCRIPT_DIR}" "${DOMAINS_DIRECTORY}"; do

scripts/reports/compilations/VisualizationReports.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,12 @@ LOG_GROUP_END=${LOG_GROUP_END:-"::endgroup::"} # Prefix to end a log group. Defa
2020
# CDPATH reduces the scope of the cd command to potentially prevent unintended directory changes.
2121
# This way non-standard tools like readlink aren't needed.
2222
REPORT_COMPILATIONS_SCRIPT_DIR=${REPORT_COMPILATIONS_SCRIPT_DIR:-$( CDPATH=. cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P )}
23-
echo "VisualizationReports: REPORT_COMPILATIONS_SCRIPT_DIR=${REPORT_COMPILATIONS_SCRIPT_DIR}"
24-
2523
REPORTS_SCRIPT_DIR=${REPORTS_SCRIPT_DIR:-$(dirname -- "${REPORT_COMPILATIONS_SCRIPT_DIR}")}
24+
25+
echo "${LOG_GROUP_START}Initialize Visualization Reports";
26+
echo "VisualizationReports: REPORT_COMPILATIONS_SCRIPT_DIR=${REPORT_COMPILATIONS_SCRIPT_DIR}"
2627
echo "VisualizationReports: REPORTS_SCRIPT_DIR=${REPORTS_SCRIPT_DIR}"
28+
echo "${LOG_GROUP_END}";
2729

2830
# Run all visualization scripts
2931
for visualization_script_file in "${REPORTS_SCRIPT_DIR}"/*Visualization.sh; do

0 commit comments

Comments
 (0)