Skip to content

Commit 2784494

Browse files
committed
lint
1 parent 7a87c92 commit 2784494

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

tests/e2e/rayjob_existing_cluster_kind_test.py

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,31 +108,37 @@ def assert_rayjob_submit_against_existing_cluster(
108108
# Debug: Check if RayJob resource was actually created
109109
import subprocess
110110
import time
111-
111+
112112
print("🔍 Checking if RayJob resource exists in Kubernetes...")
113113
for attempt in range(6): # Check for 30 seconds
114114
try:
115115
# Check if RayJob resource exists
116116
result = subprocess.run(
117117
["kubectl", "get", "rayjobs", "-n", self.namespace, job_name],
118-
capture_output=True, text=True, timeout=10
118+
capture_output=True,
119+
text=True,
120+
timeout=10,
119121
)
120122
if result.returncode == 0:
121123
print(f"✅ RayJob resource '{job_name}' found in Kubernetes!")
122124
print(f"RayJob details:\n{result.stdout}")
123125
break
124126
else:
125-
print(f"❌ Attempt {attempt + 1}: RayJob resource '{job_name}' not found")
127+
print(
128+
f"❌ Attempt {attempt + 1}: RayJob resource '{job_name}' not found"
129+
)
126130
if attempt < 5:
127131
time.sleep(5)
128132
except Exception as e:
129133
print(f"❌ Error checking RayJob: {e}")
130-
134+
131135
# Also check what RayJob resources exist in the namespace
132136
try:
133137
result = subprocess.run(
134138
["kubectl", "get", "rayjobs", "-n", self.namespace],
135-
capture_output=True, text=True, timeout=10
139+
capture_output=True,
140+
text=True,
141+
timeout=10,
136142
)
137143
print(f"📋 All RayJobs in namespace '{self.namespace}':\n{result.stdout}")
138144
except Exception as e:

0 commit comments

Comments
 (0)