File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,10 +12,28 @@ readonly REPORTS_DIR="${CI_PROJECT_DIR}/reports"
1212readonly TYPE_DIR=" ${REPORTS_DIR} /${BENCHMARK_TYPE} "
1313readonly CANDIDATE_RAW_DIR=" ${TYPE_DIR} /candidate-raw"
1414readonly BASELINE_RAW_DIR=" ${TYPE_DIR} /baseline-raw"
15+ readonly BASELINE_INFO_FILE=" ${TYPE_DIR} /baseline-info.env"
1516
1617mkdir -p " ${TYPE_DIR} " " ${CANDIDATE_RAW_DIR} " " ${BASELINE_RAW_DIR} "
1718
18- source " ${REPORTS_DIR} /baseline-info.env"
19+ # DEBUG LINES
20+ echo " [benchmark-compare] BENCHMARK_TYPE=${BENCHMARK_TYPE} "
21+ echo " [benchmark-compare] CI_PROJECT_DIR=${CI_PROJECT_DIR} "
22+ echo " [benchmark-compare] REPORTS_DIR=${REPORTS_DIR} "
23+ echo " [benchmark-compare] TYPE_DIR=${TYPE_DIR} "
24+ echo " [benchmark-compare] Expecting baseline info at ${BASELINE_INFO_FILE} "
25+
26+ if [[ ! -f " ${BASELINE_INFO_FILE} " ]]; then
27+ echo " [benchmark-compare] ERROR: Missing baseline info file: ${BASELINE_INFO_FILE} " >&2
28+ echo " [benchmark-compare] DEBUG: pwd=$( pwd) " >&2
29+ echo " [benchmark-compare] DEBUG: reports tree (depth 2)" >&2
30+ find " ${REPORTS_DIR} " -maxdepth 2 -type f 2> /dev/null | sort >&2 || true
31+ exit 1
32+ fi
33+
34+ source " ${BASELINE_INFO_FILE} "
35+ echo " [benchmark-compare] Loaded baseline-info.env:"
36+ cat " ${BASELINE_INFO_FILE} "
1937
2038export MD_REPORT_ONLY_CHANGES=1
2139export MD_REPORT_SAMPLE_METRICS=1
You can’t perform that action at this time.
0 commit comments