Skip to content

Commit 9eb2c89

Browse files
author
jc
committed
checkpoint
1 parent 3e918a9 commit 9eb2c89

1 file changed

Lines changed: 31 additions & 7 deletions

File tree

tests/e2e/test_copier_to_deployment.py

Lines changed: 31 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1097,13 +1097,37 @@ def test_08_kubernetes_deployment(self):
10971097
if key.startswith("POSTGRES_"):
10981098
create_env.pop(key, None)
10991099

1100-
self.run_command(
1101-
["uv", "run", "api-forge-cli", "k8s", "db", "create", "--bundled"],
1102-
cwd=project_dir,
1103-
timeout=600, # 10 minutes - includes image build + Helm deployment
1104-
env=create_env,
1105-
)
1106-
print("✅ PostgreSQL database created and initialized")
1100+
print("\n🗄️ Creating bundled PostgreSQL database...")
1101+
try:
1102+
self.run_command(
1103+
["uv", "run", "api-forge-cli", "k8s", "db", "create", "--bundled"],
1104+
cwd=project_dir,
1105+
timeout=600, # 10 minutes - includes image build + Helm deployment
1106+
env=create_env,
1107+
)
1108+
print("✅ PostgreSQL database created and initialized")
1109+
except Exception as e:
1110+
print(f"\n❌ PostgreSQL database creation failed: {e}")
1111+
# Show additional debugging info
1112+
print("\n📋 Checking Kubernetes resources...")
1113+
self.run_command(
1114+
["kubectl", "get", "all", "-n", "api-forge-prod"],
1115+
cwd=project_dir,
1116+
check=False,
1117+
)
1118+
print("\n📋 Checking pods...")
1119+
self.run_command(
1120+
["kubectl", "get", "pods", "-n", "api-forge-prod", "-o", "wide"],
1121+
cwd=project_dir,
1122+
check=False,
1123+
)
1124+
print("\n📋 Checking StatefulSets...")
1125+
self.run_command(
1126+
["kubectl", "get", "statefulsets", "-n", "api-forge-prod"],
1127+
cwd=project_dir,
1128+
check=False,
1129+
)
1130+
raise
11071131

11081132
# Deploy to Kubernetes (with real-time output streaming)
11091133
print("🚀 Starting K8s deployment with real-time output...")

0 commit comments

Comments
 (0)