Skip to content

Commit 1972ad5

Browse files
committed
Add debug lines and fix baseline info path
1 parent 40bffac commit 1972ad5

1 file changed

Lines changed: 19 additions & 1 deletion

File tree

.gitlab/scripts/benchmark-compare.sh

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,28 @@ readonly REPORTS_DIR="${CI_PROJECT_DIR}/reports"
1212
readonly TYPE_DIR="${REPORTS_DIR}/${BENCHMARK_TYPE}"
1313
readonly CANDIDATE_RAW_DIR="${TYPE_DIR}/candidate-raw"
1414
readonly BASELINE_RAW_DIR="${TYPE_DIR}/baseline-raw"
15+
readonly BASELINE_INFO_FILE="${TYPE_DIR}/baseline-info.env"
1516

1617
mkdir -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

2038
export MD_REPORT_ONLY_CHANGES=1
2139
export MD_REPORT_SAMPLE_METRICS=1

0 commit comments

Comments
 (0)