Reject empty clone provisioning sites
Foundation / checks (deploy) (push) Successful in 6s
Foundation / checks (ecs) (push) Successful in 2m5s
Foundation / checks (tsan) (push) Successful in 8m52s
Foundation / checks (client) (push) Failing after 10m51s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (checks) (push) Canceled after 13m58s
Foundation / checks (postgres) (push) Canceled after 13m54s
Foundation / checks (network) (push) Canceled after 13m59s

This commit is contained in:
dingo
2026-10-11 18:09:13 -04:00
parent bc7be354ae
commit a23d45f7df
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -116,6 +116,8 @@ std::optional<std::uint64_t> number(std::string_view text) {
return value;
}
std::optional<server::SpawnSite> site(std::string_view text) {
if (text.empty())
return std::nullopt;
const auto comma = text.find(',');
if (comma == std::string_view::npos || text.find(',', comma + 1) != std::string_view::npos)
return std::nullopt;
+2
View File
@@ -7008,3 +7008,5 @@ CI run #302 compiled that cellular change, then PostgreSQL clang-tidy found thre
CI run #303 stopped at the format gate on the SQLSTATE expression from the preceding fix, before reaching clang-tidy. The continuation is now laid out for clang-format; local clang-format is unavailable, so CI must verify formatting along with the analysis and Harbor publish gates.
CI run #304 rejected both wrapped layouts of the SQLSTATE expression at the formatting gate. The complete statement is now joined onto one line (within the configured 100-column limit); CI must confirm the exact formatter output.
CI run #305 passed formatting and most independent gates, but PostgreSQL clang-tidy rejected `site()` in `apps/evo-world-clone/main.cpp`: `string_view::data()` may be null for an empty view passed to `from_chars`. The parser now rejects an empty site argument before accessing its data. The dependent PostgreSQL tools and server-image/Harbor publication jobs did not run; CI must validate the guard and complete publication.