superset-showtime 0.2.9__py3-none-any.whl → 0.3.1__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 CHANGED
@@ -4,7 +4,7 @@
4
4
  Circus tent emoji state tracking for Apache Superset ephemeral environments.
5
5
  """
6
6
 
7
- __version__ = "0.2.9"
7
+ __version__ = "0.3.1"
8
8
  __author__ = "Maxime Beauchemin"
9
9
  __email__ = "maximebeauchemin@gmail.com"
10
10
 
showtime/cli.py CHANGED
@@ -330,21 +330,36 @@ def _build_docker_image(pr_number: int, sha: str, dry_run: bool = False) -> bool
330
330
 
331
331
  try:
332
332
  console.print(f"🎪 Running: {' '.join(cmd)}")
333
- result = subprocess.run(cmd, capture_output=True, text=True, timeout=1800) # 30 min timeout
333
+ console.print("🎪 Streaming Docker build output...")
334
+
335
+ # Stream output in real-time for better user experience
336
+ process = subprocess.Popen(
337
+ cmd,
338
+ stdout=subprocess.PIPE,
339
+ stderr=subprocess.STDOUT,
340
+ text=True,
341
+ bufsize=1,
342
+ universal_newlines=True,
343
+ )
344
+
345
+ # Stream output line by line
346
+ for line in process.stdout:
347
+ console.print(f"🐳 {line.rstrip()}")
334
348
 
335
- if result.returncode == 0:
349
+ # Wait for completion with timeout
350
+ try:
351
+ return_code = process.wait(timeout=3600) # 60 min timeout
352
+ except subprocess.TimeoutExpired:
353
+ process.kill()
354
+ console.print("🎪 ❌ Docker build timed out after 60 minutes")
355
+ return False
356
+
357
+ if return_code == 0:
336
358
  console.print(f"🎪 ✅ Docker build succeeded: {tag}")
337
359
  return True
338
360
  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}")
361
+ console.print(f"🎪 ❌ Docker build failed with exit code: {return_code}")
343
362
  return False
344
-
345
- except subprocess.TimeoutExpired:
346
- console.print("🎪 ❌ Docker build timed out after 30 minutes")
347
- return False
348
363
  except Exception as e:
349
364
  console.print(f"🎪 ❌ Docker build error: {e}")
350
365
  return False
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: superset-showtime
3
- Version: 0.2.9
3
+ Version: 0.3.1
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=0p_J3NDgjtmHCR4Q_u9hM4sLnLdmAluCY3TKMLybL2w,420
1
+ showtime/__init__.py,sha256=4dJqKn56kFArrqJiEHyLI6UB0dekT9A_ycSW9f-0f30,420
2
2
  showtime/__main__.py,sha256=EVaDaTX69yIhCzChg99vqvFSCN4ELstEt7Mpb9FMZX8,109
3
- showtime/cli.py,sha256=ZBf9-LGfMzA1wzR46Qx4DZyd0Q2hoousYeBMduiUnT4,75469
3
+ showtime/cli.py,sha256=xOyOY55bC1f26uPxDjDsET7lkILZkFQ2x_o-lWDD9eQ,75862
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
@@ -11,7 +11,7 @@ showtime/core/github.py,sha256=HWhM8_Yq4P-AHq0FV3UfrfQHUHXxkhn74vvc_9RguKA,9822
11
11
  showtime/core/github_messages.py,sha256=6NI1c4375XHO64sNQIsQev-0rPLKVZp9Vw4-mIEPwCQ,7537
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.9.dist-info/METADATA,sha256=PR2uktLbkO38HfmDuHzhmyJCgL0nq272qIozcP7mmKw,11616
15
- superset_showtime-0.2.9.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
16
- superset_showtime-0.2.9.dist-info/entry_points.txt,sha256=rDW7oZ57mqyBUS4N_3_R7bZNGVHB-104jwmY-hHC_ck,85
17
- superset_showtime-0.2.9.dist-info/RECORD,,
14
+ superset_showtime-0.3.1.dist-info/METADATA,sha256=ruPEhhznTWhdPeGT0-Yx-bApJL9nETiKaVS7TKUdAeo,11616
15
+ superset_showtime-0.3.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
16
+ superset_showtime-0.3.1.dist-info/entry_points.txt,sha256=rDW7oZ57mqyBUS4N_3_R7bZNGVHB-104jwmY-hHC_ck,85
17
+ superset_showtime-0.3.1.dist-info/RECORD,,