Skip to content

Commit 667522e

Browse files
committed
Run report groups in order with visualizations last
1 parent 5de2779 commit 667522e

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

scripts/reports/compilations/AllReports.sh

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,10 @@ set -o errexit -o pipefail
1515
REPORT_COMPILATIONS_SCRIPT_DIR=${REPORT_COMPILATIONS_SCRIPT_DIR:-$( CDPATH=. cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P )}
1616
echo "AllReports: REPORT_COMPILATIONS_SCRIPT_DIR=${REPORT_COMPILATIONS_SCRIPT_DIR}"
1717

18-
REPORTS_SCRIPT_DIR=${REPORTS_SCRIPT_DIR:-$(dirname -- "${REPORT_COMPILATIONS_SCRIPT_DIR}")}
19-
echo "AllReports: REPORTS_SCRIPT_DIR=${REPORTS_SCRIPT_DIR}"
20-
21-
# Run all report scripts
22-
for report_script_file in "${REPORTS_SCRIPT_DIR}"/*.sh; do
23-
echo "AllReports: Starting ${report_script_file}...";
24-
source "${report_script_file}"
25-
done
18+
# The reports will not be generically searched as files anymore
19+
# but will be processed in order. Especially the visualization
20+
# needs to be done as a last step to be able to use properties
21+
# and data written to the Graph in the CsvReports.
22+
source "${REPORT_COMPILATIONS_SCRIPT_DIR}/CsvReports.sh"
23+
source "${REPORT_COMPILATIONS_SCRIPT_DIR}/JupyterReports.sh"
24+
source "${REPORT_COMPILATIONS_SCRIPT_DIR}/VisualizationReports.sh"

scripts/reports/compilations/VisualizationReports.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
# Therefore these reports will take longer and require more ressources than just plain database queries/procedures.
77

88
# Requires reports/*.sh
9+
# Needs to run after reports/TopologySortCsv.sh that provides the property "topologicalSortIndex" to be queried.
910

1011
# Fail on any error ("-e" = exit on first error, "-o pipefail" exist on errors within piped commands)
1112
set -o errexit -o pipefail

0 commit comments

Comments
 (0)