Compare commits

...

3 Commits

Author SHA1 Message Date
Fedor Dikarev
94f5757450 set different timeouts for debug and release 2024-12-05 20:27:38 +04:00
Fedor Dikarev
46668775eb set timeout to 30s only debug builds 2024-12-05 17:45:21 +04:00
Fedor Dikarev
0e0d8276da Pass start_timeout to the neon_fixtrures.py::NeonEnvBuilder::start() method and set it to 30s 2024-11-28 14:45:16 +01:00

View File

@@ -469,6 +469,7 @@ class NeonEnvBuilder:
default_remote_storage_if_missing: bool = True,
initial_tenant_shard_count: int | None = None,
initial_tenant_shard_stripe_size: int | None = None,
timeout_in_seconds: int | None = None,
) -> NeonEnv:
"""
Default way to create and start NeonEnv. Also creates the initial_tenant with root initial_timeline.
@@ -478,7 +479,13 @@ class NeonEnvBuilder:
Configuring pageserver with remote storage is now the default. There will be a warning if pageserver is created without one.
"""
env = self.init_configs(default_remote_storage_if_missing=default_remote_storage_if_missing)
env.start()
if timeout_in_seconds is None:
if os.getenv("BUILD_TYPE") == "release":
timeout_in_seconds = 15
elif os.getenv("BUILD_TYPE") == "debug":
timeout_in_seconds = 30
env.start(timeout_in_seconds=timeout_in_seconds)
# Prepare the default branch to start the postgres on later.
# Pageserver itself does not create tenants and timelines, until started first and asked via HTTP API.