Skip to content

Commit cfc4c3e

Browse files
committed
fix: remove unused function
1 parent 9b09600 commit cfc4c3e

1 file changed

Lines changed: 0 additions & 21 deletions

File tree

  • tests/model_explainability/lm_eval

tests/model_explainability/lm_eval/utils.py

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,33 +3,12 @@
33
from ocp_resources.pod import Pod
44

55
from utilities.constants import Timeout
6-
from utilities.infra import check_pod_status_in_time
76
from simple_logger.logger import get_logger
87

98

109
LOGGER = get_logger(name=__name__)
1110

1211

13-
def verify_lmevaljob_running(client: DynamicClient, lmevaljob: LMEvalJob) -> None:
14-
"""
15-
Verifies that an LMEvalJob Pod reaches Running state and maintains Running/Succeeded state.
16-
Waits for Pod to enter Running state, then checks it stays Running or Succeeded for 2 minutes.
17-
18-
Args:
19-
client: DynamicClient instance for interacting with Kubernetes
20-
lmevaljob: LMEvalJob object representing the job to verify
21-
22-
Raises:
23-
TimeoutError: If Pod doesn't reach Running state within 10 minutes
24-
AssertionError: If Pod doesn't stay in one of the desired states for 2 minutes
25-
"""
26-
27-
lmevaljob_pod = Pod(client=client, name=lmevaljob.name, namespace=lmevaljob.namespace, wait_for_resource=True)
28-
lmevaljob_pod.wait_for_status(status=lmevaljob_pod.Status.RUNNING, timeout=Timeout.TIMEOUT_20MIN)
29-
30-
check_pod_status_in_time(pod=lmevaljob_pod, status={lmevaljob_pod.Status.RUNNING, lmevaljob_pod.Status.SUCCEEDED})
31-
32-
3312
def get_lmevaljob_pod(client: DynamicClient, lmevaljob: LMEvalJob, timeout: int = Timeout.TIMEOUT_2MIN) -> Pod:
3413
"""
3514
Gets the pod corresponding to a given LMEvalJob and waits for it to be ready.

0 commit comments

Comments
 (0)