Skip to content

Commit c2c47c3

Browse files
author
Radovan Fuchs
committed
remove optimizations for restarts
1 parent 61f0d36 commit c2c47c3

1 file changed

Lines changed: 9 additions & 10 deletions

File tree

  • tests/e2e/features/steps

tests/e2e/features/steps/tls.py

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,22 +34,23 @@
3434
}
3535

3636
_mock_tls_cluster_deploy_state: dict[str, bool] = {"done": False}
37-
_tls_llama_warm_in_prow: dict[str, bool] = {"done": False}
3837

3938

4039
def reset_tls_prow_restart_optimization_state() -> None:
41-
"""Reset per-feature Prow restart optimizations (call from ``before_feature``)."""
42-
_tls_llama_warm_in_prow["done"] = False
40+
"""Reset per-feature Prow state (call from ``before_feature``)."""
41+
_mock_tls_cluster_deploy_state["done"] = False
4342
os.environ.pop("E2E_LLAMA_RELOAD_CONFIG_ONLY", None)
43+
os.environ.pop("E2E_COPY_MOCK_TLS_CERTS_TO_LLAMA", None)
4444

4545

4646
def _prepare_tls_prow_llama_restart_env() -> None:
47-
"""Set env vars so e2e-ops can reload run.yaml instead of recreating the pod."""
47+
"""Set env vars so e2e-ops always recreates the llama pod (no config-only reload).
48+
49+
TLS scenarios change run.yaml and rely on /certs volume mounts; full pod
50+
restarts are slower but more reliable than ``kill 1`` reload on Konflux.
51+
"""
4852
os.environ["E2E_COPY_MOCK_TLS_CERTS_TO_LLAMA"] = "1"
49-
if _tls_llama_warm_in_prow["done"]:
50-
os.environ["E2E_LLAMA_RELOAD_CONFIG_ONLY"] = "1"
51-
else:
52-
os.environ.pop("E2E_LLAMA_RELOAD_CONFIG_ONLY", None)
53+
os.environ.pop("E2E_LLAMA_RELOAD_CONFIG_ONLY", None)
5354

5455

5556
def _cluster_mock_tls_inference_host() -> str:
@@ -156,8 +157,6 @@ def _configure_tls(tls_config: dict[str, Any], base_url: Optional[str] = None) -
156157
write_llama_config(config)
157158
if is_prow_environment():
158159
_prepare_tls_prow_llama_restart_env()
159-
if not _tls_llama_warm_in_prow["done"]:
160-
_tls_llama_warm_in_prow["done"] = True
161160

162161

163162
# --- Background Steps ---

0 commit comments

Comments
 (0)