Format clone SQLSTATE check
Foundation / checks (deploy) (push) Successful in 4s
Foundation / checks (ecs) (push) Successful in 2m3s
Foundation / checks (checks) (push) Failing after 4m9s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (client) (push) Canceled after 5m27s
Foundation / checks (tsan) (push) Canceled after 5m23s
Foundation / checks (network) (push) Canceled after 5m29s
Foundation / checks (postgres) (push) Canceled after 5m28s

This commit is contained in:
dingo
2026-10-11 17:37:55 -04:00
parent a0b60cc35c
commit c488bf293f
2 changed files with 4 additions and 2 deletions
+2 -2
View File
@@ -668,8 +668,8 @@ int check_store(const Options& o) {
std::printf("database version=%s user=%s ssl=%s\n", row[0].value_or("?").c_str(),
row[1].value_or("?").c_str(), row[2].value_or("?").c_str());
auto tables = (*db)->query("SELECT 1 FROM evolution.region_heads LIMIT 1", {}, timeout);
const bool denied = !tables &&
std::string_view(tables.error().sqlstate.data(), 5) == "42501";
const bool denied =
!tables && std::string_view(tables.error().sqlstate.data(), 5) == "42501";
auto head = persistence::load_region_head(**db, o.source.key, timeout);
const bool reachable =
head || head.error().kind == persistence::LeaseStoreError::not_provisioned;