Emit structured local runtime errors - #556
Conversation
|
Carry-over review from PR #510 (old PR for #475). This PR's error model is better than #510's (typed engine-agnostic variants like
CI note: postgres edge-cases failures are pre-existing on the stack base (from #547's script drift), not this PR. |
092ece4 to
2d7e62f
Compare
2d7e62f to
56b6c6b
Compare
56b6c6b to
44d5d3a
Compare
4dd00ec to
cb3f27c
Compare
cb3f27c to
90e3caa
Compare
d6d2761 to
fc109d0
Compare
fc109d0 to
7566c25
Compare
cc04039 to
7ffe3b4
Compare
7ffe3b4 to
4a22a29
Compare
4a22a29 to
3aa3abe
Compare
948bf34 to
8606b47
Compare
8606b47 to
8a98f5b
Compare
8a98f5b to
1fbe18f
Compare
1fbe18f to
c76b867
Compare
c76b867 to
57af65c
Compare
57af65c to
1227c2f
Compare
1227c2f to
1833011
Compare
b66fa8f to
ca115e1
Compare
ca115e1 to
c506753
Compare
3618e55 to
d2c7018
Compare
d2c7018 to
c79bf76
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit c79bf76. Configure here.
| } else { | ||
| version_in_use_by_running_server(version) | ||
| } | ||
| }, |
There was a problem hiding this comment.
JSON install skips running-server check
Medium Severity
When structured_output is set, the commit callback always returns Ok(false) instead of calling version_in_use_by_running_server. JSON/agent master reinstalls then skip metadata recovery and can commit even when human mode would fail, and they never surface the running-server note.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit c79bf76. Configure here.


Summary
Tests
cargo test -p clickhousectl -- --test-threads=1cargo test -p clickhousectl --test local_structured_errors_test -- --test-threads=1cargo test -p clickhousectl --test telemetry_test -- --test-threads=1cargo clippy -p clickhousectl --all-targets -- -D warningscargo fmt --all --checkcargo check -p clickhousectl --no-default-featuresCloses #475