From cc661cf0104923d56a3f75779ce6d115fe958ce6 Mon Sep 17 00:00:00 2001 From: Jiralite <33201955+Jiralite@users.noreply.github.com> Date: Thu, 16 Jul 2026 21:02:08 +0100 Subject: [PATCH] fix(smoke): address postgres default behaviour (#1417) --- tools/dev/src/smoke.rs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/tools/dev/src/smoke.rs b/tools/dev/src/smoke.rs index e356db27f..d288aafcc 100644 --- a/tools/dev/src/smoke.rs +++ b/tools/dev/src/smoke.rs @@ -80,7 +80,9 @@ pub async fn run_smoke(quick: bool, public: bool) -> Result<()> { .await?; wait_s3_api(timeout).await?; if !quick { - verify_schema(None, None).await?; + if cassandra_backend_enabled() { + verify_schema(None, None).await?; + } check_s3_buckets()?; check_config_load()?; } @@ -385,10 +387,16 @@ async fn check_gateway_internal_rpc() -> Result<()> { } pub async fn bootstrap_schema_and_object_store() -> Result<()> { - apply_schema(Some(config_from_env()?)).await?; + if cassandra_backend_enabled() { + apply_schema(Some(config_from_env()?)).await?; + } ensure_s3_buckets() } +fn cassandra_backend_enabled() -> bool { + env::var("FLUXER_DATABASE_BACKEND").as_deref() == Ok("cassandra") +} + pub async fn http_ok(url: &str) -> bool { reqwest::Client::new() .get(url)