remove debug logs while benchmarking#2750
Conversation
|
Footnotes
|
Ito Test Report ❌3 test cases ran. 1 failed, 2 passed. Across the unified run, 3 test cases executed with 2 passing and 1 failing: mini-sysbench workload iteration and info-level config regeneration behaved as expected, and scans of benchmark logs/comments found no plaintext credential leakage (with local auth-role checks temporarily bypassed for test setup). The primary finding is a medium-severity bug introduced by this PR where missing or unsupported log_level values in dolt-config.yaml are silently treated as info in servercfg/cfgdetails/config.go, making malformed configuration indistinguishable from the intended baseline and weakening diagnostics when benchmarks fail or regress. ❌ Failed (1)
🟠 Malformed log level silently defaults to info
Relevant code:
func (cfg *DoltgresConfig) LogLevel() doltservercfg.LogLevel {
if cfg.LogLevelStr == nil {
return doltservercfg.LogLevel_Info
}
switch *cfg.LogLevelStr {
case LogLevel_Trace:
return doltservercfg.LogLevel_Trace
case LogLevel_Debug:
return doltservercfg.LogLevel_Debug
case LogLevel_Info:
return doltservercfg.LogLevel_Info
default:
return doltservercfg.LogLevel_Info
}
}
for value in "${values[@]}"; do
SYSBENCH_TEST="$value"
cat <<YAML > dolt-config.yaml
log_level: info
behavior:
read_only: false✅ Passed (2)Commit: Tell us how we did: Give Ito Feedback |



No description provided.