Skip to content

Commit 2216237

Browse files
log currently running sql file in regression
1 parent d3e93e5 commit 2216237

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

build/monitor_memory.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ while true; do
2424
echo "========================================"
2525
printf "\n--- System Memory ---\n"
2626
free -h
27+
28+
if [[ -f "/tmp/current_query.txt" ]]; then
29+
CURRENT_QUERY=$(cat /tmp/current_query.txt)
30+
printf "\n--- Current Query ---\n%s\n" "$CURRENT_QUERY"
31+
fi
2732

2833
printf "\n--- Top 10 Processes by memory ---\n"
2934
PS_OUTPUT=$(ps_by_memory)

build/run_regression_locally.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,10 @@ cleanup() {
4343
}
4444
trap cleanup EXIT
4545

46+
# Strip _ASan/_UBSan suffix for Docker image (keep it for RESULT_PATH)
47+
CLEAN_PLATFORM=$(echo "$PLATFORM" | sed -E 's/_(ASan|UBSan)//i')
4648
# Apply image naming logic from jsonnet: "detravi/" + std.strReplace(platform, "/", "-")
47-
DOCKER_IMAGE="detravi/${PLATFORM}"
49+
DOCKER_IMAGE="detravi/${CLEAN_PLATFORM}"
4850

4951
# Checks
5052
[[ "$EUID" -ne 0 ]] && echo "Run with sudo" && exit 1

0 commit comments

Comments
 (0)