File tree Expand file tree Collapse file tree
src/instrumentation/libraries/e2e-common Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -266,6 +266,19 @@ if [ "$TRACE_COUNT" -eq 0 ]; then
266266 exit 1
267267fi
268268
269+ # Print focused trace-presence diagnostics for flaky SQL replay mismatches.
270+ # This helps distinguish "not recorded" from "recorded but not matched in replay".
271+ log " Trace SQL presence checks (recorded traces):" " $BLUE "
272+ SQL_PATTERNS=(
273+ " SELECT COUNT\\ (\\ *\\ ) as total FROM test_users"
274+ " SAVEPOINT"
275+ " ROLLBACK"
276+ )
277+ for pattern in " ${SQL_PATTERNS[@]} " ; do
278+ count=$( grep -R -E -c " $pattern " .tusk/traces 2> /dev/null | awk -F: ' {s+=$2} END {print s+0}' )
279+ log " pattern='$pattern ' count=$count " " $BLUE "
280+ done
281+
269282# ============================================================
270283# Phase 3: Run Tusk Tests
271284# ============================================================
You can’t perform that action at this time.
0 commit comments