Correct local Postgres diagnostics and help - #548
Conversation
|
Carry-over review from PR #509 (old PR for #465). This PR has genuinely better engineering than #509 (sanitized Docker failure causes with no-leak tests vs #509 echoing raw bollard text/paths; structured
|
1f3b100 to
bf62f15
Compare
e7741da to
a1b1a95
Compare
bfb5980 to
27ebeca
Compare
27ebeca to
058150c
Compare
0bf7a6a to
c42857c
Compare
c42857c to
239de49
Compare
9571807 to
ba6d568
Compare
ba6d568 to
70107a9
Compare
f9fbdd7 to
469ae2f
Compare
469ae2f to
1ededb8
Compare
1ededb8 to
46f544b
Compare
46f544b to
83b41fc
Compare
83b41fc to
a47bdda
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 621ab59. Configure here.
| } else if chain.contains("connection refused") { | ||
| DockerFailureKind::ConnectionRefused | ||
| } else if chain.contains("no such file") || chain.contains("not found") { | ||
| DockerFailureKind::MissingSocket |
There was a problem hiding this comment.
Docker errors misclassified as missing socket
Low Severity
The Docker connect fallback treats any error-chain text containing not found as MissingSocket. A TCP DOCKER_HOST with a bad hostname typically surfaces glibc's Name or service not found, so ping failures are reported as a missing Docker socket and the platform guidance then talks about sockets instead of the host lookup.
Reviewed by Cursor Bugbot for commit 621ab59. Configure here.


Summary
Tests
cargo fmt --all --checkcargo build -p clickhousectlcargo check -p clickhousectl --all-targetscargo test -p clickhousectlcargo clippy -p clickhousectl --all-targets -- -D warningsbash -n scripts/test-postgres-integration.shThe full Docker-backed
scripts/test-postgres-integration.shwas not run because the configured OrbStack socket at~/.orbstack/run/docker.sockis unavailable.Closes #465