superset-showtime 0.2.9__py3-none-any.whl → 0.3.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of superset-showtime might be problematic. Click here for more details.
- showtime/__init__.py +1 -1
- showtime/cli.py +29 -12
- showtime/core/github_messages.py +1 -8
- {superset_showtime-0.2.9.dist-info → superset_showtime-0.3.2.dist-info}/METADATA +1 -1
- {superset_showtime-0.2.9.dist-info → superset_showtime-0.3.2.dist-info}/RECORD +7 -7
- {superset_showtime-0.2.9.dist-info → superset_showtime-0.3.2.dist-info}/WHEEL +0 -0
- {superset_showtime-0.2.9.dist-info → superset_showtime-0.3.2.dist-info}/entry_points.txt +0 -0
showtime/__init__.py
CHANGED
showtime/cli.py
CHANGED
|
@@ -312,8 +312,10 @@ def _build_docker_image(pr_number: int, sha: str, dry_run: bool = False) -> bool
|
|
|
312
312
|
"linux/amd64",
|
|
313
313
|
"--target",
|
|
314
314
|
"ci",
|
|
315
|
-
"--
|
|
316
|
-
"
|
|
315
|
+
"--cache-from",
|
|
316
|
+
"type=registry,ref=apache/superset-cache:3.10-slim-bookworm",
|
|
317
|
+
"--cache-to",
|
|
318
|
+
"type=registry,mode=max,ref=apache/superset-cache:3.10-slim-bookworm",
|
|
317
319
|
"--build-arg",
|
|
318
320
|
"INCLUDE_CHROMIUM=false",
|
|
319
321
|
"--build-arg",
|
|
@@ -330,21 +332,36 @@ def _build_docker_image(pr_number: int, sha: str, dry_run: bool = False) -> bool
|
|
|
330
332
|
|
|
331
333
|
try:
|
|
332
334
|
console.print(f"🎪 Running: {' '.join(cmd)}")
|
|
333
|
-
|
|
335
|
+
console.print("🎪 Streaming Docker build output...")
|
|
336
|
+
|
|
337
|
+
# Stream output in real-time for better user experience
|
|
338
|
+
process = subprocess.Popen(
|
|
339
|
+
cmd,
|
|
340
|
+
stdout=subprocess.PIPE,
|
|
341
|
+
stderr=subprocess.STDOUT,
|
|
342
|
+
text=True,
|
|
343
|
+
bufsize=1,
|
|
344
|
+
universal_newlines=True,
|
|
345
|
+
)
|
|
346
|
+
|
|
347
|
+
# Stream output line by line
|
|
348
|
+
for line in process.stdout:
|
|
349
|
+
console.print(f"🐳 {line.rstrip()}")
|
|
350
|
+
|
|
351
|
+
# Wait for completion with timeout
|
|
352
|
+
try:
|
|
353
|
+
return_code = process.wait(timeout=3600) # 60 min timeout
|
|
354
|
+
except subprocess.TimeoutExpired:
|
|
355
|
+
process.kill()
|
|
356
|
+
console.print("🎪 ❌ Docker build timed out after 60 minutes")
|
|
357
|
+
return False
|
|
334
358
|
|
|
335
|
-
if
|
|
359
|
+
if return_code == 0:
|
|
336
360
|
console.print(f"🎪 ✅ Docker build succeeded: {tag}")
|
|
337
361
|
return True
|
|
338
362
|
else:
|
|
339
|
-
console.print("🎪 ❌ Docker build failed:")
|
|
340
|
-
console.print(f"Exit code: {result.returncode}")
|
|
341
|
-
console.print(f"STDOUT: {result.stdout}")
|
|
342
|
-
console.print(f"STDERR: {result.stderr}")
|
|
363
|
+
console.print(f"🎪 ❌ Docker build failed with exit code: {return_code}")
|
|
343
364
|
return False
|
|
344
|
-
|
|
345
|
-
except subprocess.TimeoutExpired:
|
|
346
|
-
console.print("🎪 ❌ Docker build timed out after 30 minutes")
|
|
347
|
-
return False
|
|
348
365
|
except Exception as e:
|
|
349
366
|
console.print(f"🎪 ❌ Docker build error: {e}")
|
|
350
367
|
return False
|
showtime/core/github_messages.py
CHANGED
|
@@ -5,7 +5,6 @@ Centralized PR comment functions with type hints and clean formatting.
|
|
|
5
5
|
"""
|
|
6
6
|
|
|
7
7
|
import os
|
|
8
|
-
import textwrap
|
|
9
8
|
from typing import Dict, List, Optional
|
|
10
9
|
|
|
11
10
|
from .circus import Show
|
|
@@ -60,13 +59,7 @@ def _format_comment(header: str, bullets: List[str]) -> str:
|
|
|
60
59
|
bullets: List of bullet point strings (without •)
|
|
61
60
|
"""
|
|
62
61
|
bullet_text = "\n".join(f"• {bullet}" for bullet in bullets)
|
|
63
|
-
return
|
|
64
|
-
f"""
|
|
65
|
-
{header}
|
|
66
|
-
|
|
67
|
-
{bullet_text}
|
|
68
|
-
"""
|
|
69
|
-
).strip()
|
|
62
|
+
return f"{header}\n\n{bullet_text}"
|
|
70
63
|
|
|
71
64
|
|
|
72
65
|
def get_commit_url(repo_path: str, sha: str) -> str:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: superset-showtime
|
|
3
|
-
Version: 0.2
|
|
3
|
+
Version: 0.3.2
|
|
4
4
|
Summary: 🎪 Apache Superset ephemeral environment management with circus tent emoji state tracking
|
|
5
5
|
Project-URL: Homepage, https://github.com/apache/superset-showtime
|
|
6
6
|
Project-URL: Documentation, https://superset-showtime.readthedocs.io/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
showtime/__init__.py,sha256=
|
|
1
|
+
showtime/__init__.py,sha256=4ZIHRCKHmluvtr0Vv2mGhNIbLs79PoGCF4dsuIiCpDg,420
|
|
2
2
|
showtime/__main__.py,sha256=EVaDaTX69yIhCzChg99vqvFSCN4ELstEt7Mpb9FMZX8,109
|
|
3
|
-
showtime/cli.py,sha256=
|
|
3
|
+
showtime/cli.py,sha256=WgM-VP7TPGFuLYUqCG8U_MrAL1hMdeYYS06dwoBCIGE,75997
|
|
4
4
|
showtime/commands/__init__.py,sha256=M2wn5hYgwNCryMjLT79ncobvK884r-xk3znkCmINN_0,28
|
|
5
5
|
showtime/commands/start.py,sha256=DPGbgvGPh7I60LK_VioDljUhdmhNFVjEy6BchFv1lCo,1026
|
|
6
6
|
showtime/core/__init__.py,sha256=54hbdFNGrzuNMBdraezfjT8Zi6g221pKlJ9mREnKwCw,34
|
|
@@ -8,10 +8,10 @@ showtime/core/aws.py,sha256=xWrje3MS3LpFeilH6jloWy_VgE9Wky_G5VkRCOB0ZNw,32535
|
|
|
8
8
|
showtime/core/circus.py,sha256=VHEWPpL8xLrrVm7tIF58QSDutA5gCS60gE3lZt3Lk5E,9378
|
|
9
9
|
showtime/core/emojis.py,sha256=MHEDuPIdfNiop4zbNLuviz3eY05QiftYSHHCVbkfKhw,2129
|
|
10
10
|
showtime/core/github.py,sha256=HWhM8_Yq4P-AHq0FV3UfrfQHUHXxkhn74vvc_9RguKA,9822
|
|
11
|
-
showtime/core/github_messages.py,sha256=
|
|
11
|
+
showtime/core/github_messages.py,sha256=g4yOaJvsOtVKSQCyG-mHD-kjBRaaQFUvC-Nu_yfW5f4,7458
|
|
12
12
|
showtime/core/label_colors.py,sha256=efhbFnz_3nqEnEqmgyF6_hZbxtCu_fmb68BIIUpSsnk,3895
|
|
13
13
|
showtime/data/ecs-task-definition.json,sha256=0ZaE0FZ8IWduXd2RyscMhXeVgxyym6qtjH02CK9mXBI,2235
|
|
14
|
-
superset_showtime-0.2.
|
|
15
|
-
superset_showtime-0.2.
|
|
16
|
-
superset_showtime-0.2.
|
|
17
|
-
superset_showtime-0.2.
|
|
14
|
+
superset_showtime-0.3.2.dist-info/METADATA,sha256=HpcCaQd5P8T2u-nj1m-zMk8d0YMBWQ44HVeaYU77HAs,11616
|
|
15
|
+
superset_showtime-0.3.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
16
|
+
superset_showtime-0.3.2.dist-info/entry_points.txt,sha256=rDW7oZ57mqyBUS4N_3_R7bZNGVHB-104jwmY-hHC_ck,85
|
|
17
|
+
superset_showtime-0.3.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|