superset-showtime 0.4.5__py3-none-any.whl → 0.4.8__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.4.5"
7
+ __version__ = "0.4.8"
8
8
  __author__ = "Maxime Beauchemin"
9
9
  __email__ = "maximebeauchemin@gmail.com"
10
10
 
@@ -4,6 +4,7 @@
4
4
  Handles atomic transactions, trigger processing, and environment orchestration.
5
5
  """
6
6
 
7
+ import os
7
8
  from dataclasses import dataclass
8
9
  from datetime import datetime
9
10
  from typing import Any, List, Optional
@@ -244,6 +245,9 @@ class PullRequest:
244
245
  show.status = "running"
245
246
  print(f"✅ Deployment completed - environment running at {show.ip}:8080")
246
247
  self._update_show_labels(show, dry_run_github)
248
+
249
+ # Show AWS console URLs for monitoring
250
+ self._show_service_urls(show)
247
251
 
248
252
  self._post_success_comment(show, dry_run_github)
249
253
  return SyncResult(success=True, action_taken="create_environment", show=show)
@@ -273,6 +277,9 @@ class PullRequest:
273
277
  new_show.status = "running"
274
278
  print(f"✅ Rolling update completed - new environment at {new_show.ip}:8080")
275
279
  self._update_show_labels(new_show, dry_run_github)
280
+
281
+ # Show AWS console URLs for monitoring
282
+ self._show_service_urls(new_show)
276
283
 
277
284
  self._post_rolling_success_comment(old_show, new_show, dry_run_github)
278
285
  return SyncResult(success=True, action_taken=action_needed, show=new_show)
@@ -424,7 +431,7 @@ class PullRequest:
424
431
  status="building",
425
432
  created_at=datetime.utcnow().strftime("%Y-%m-%dT%H-%M"),
426
433
  ttl="24h",
427
- requested_by="github_actor", # TODO: Get from context
434
+ requested_by=os.getenv("GITHUB_ACTOR", "unknown"),
428
435
  )
429
436
 
430
437
  def _post_building_comment(self, show: Show, dry_run: bool = False) -> None:
@@ -544,3 +551,13 @@ class PullRequest:
544
551
 
545
552
  # Final refresh to update cache with all changes
546
553
  self.refresh_labels()
554
+
555
+ def _show_service_urls(self, show: Show) -> None:
556
+ """Show AWS console URLs for monitoring deployment"""
557
+ from .github_messages import get_aws_console_urls
558
+
559
+ urls = get_aws_console_urls(show.ecs_service_name)
560
+ print(f"\n🎪 Monitor deployment progress:")
561
+ print(f"📝 Logs: {urls['logs']}")
562
+ print(f"📊 Service: {urls['service']}")
563
+ print("")
showtime/core/show.py CHANGED
@@ -189,16 +189,16 @@ class Show:
189
189
  # Full registry caching in CI (Docker driver supports it)
190
190
  cmd.extend([
191
191
  "--cache-from",
192
- "type=registry,ref=apache/superset-cache:3.10-slim-bookworm",
192
+ "type=registry,ref=apache/superset-cache:showtime",
193
193
  "--cache-to",
194
- "type=registry,mode=max,ref=apache/superset-cache:3.10-slim-bookworm",
194
+ "type=registry,mode=max,ref=apache/superset-cache:showtime",
195
195
  ])
196
196
  print("🐳 CI environment: Using full registry caching")
197
197
  else:
198
198
  # Local build: cache-from only (no cache export)
199
199
  cmd.extend([
200
200
  "--cache-from",
201
- "type=registry,ref=apache/superset-cache:3.10-slim-bookworm",
201
+ "type=registry,ref=apache/superset-cache:showtime",
202
202
  ])
203
203
  print("🐳 Local environment: Using cache-from only (no export)")
204
204
 
@@ -43,10 +43,6 @@
43
43
  {
44
44
  "name": "PYTHONUNBUFFERED",
45
45
  "value": "1"
46
- },
47
- {
48
- "name": "PYTHONPATH",
49
- "value": "/app/docker/pythonpath_dev"
50
46
  }
51
47
  ],
52
48
  "mountPoints": [],
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: superset-showtime
3
- Version: 0.4.5
3
+ Version: 0.4.8
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,4 +1,4 @@
1
- showtime/__init__.py,sha256=manqzOJIZh483MCnfTgP6iNIgWk5zbK0bCgteMjNY30,448
1
+ showtime/__init__.py,sha256=fYCOH7lhPuP2SN1kHK5U4MGhM6I1uFSOs31oG5B8L40,448
2
2
  showtime/__main__.py,sha256=EVaDaTX69yIhCzChg99vqvFSCN4ELstEt7Mpb9FMZX8,109
3
3
  showtime/cli.py,sha256=faFM6pe3gz49_1KrzUeri7dQffqz4WP92JmGxPaIOC0,25249
4
4
  showtime/core/__init__.py,sha256=54hbdFNGrzuNMBdraezfjT8Zi6g221pKlJ9mREnKwCw,34
@@ -7,10 +7,10 @@ showtime/core/emojis.py,sha256=MHEDuPIdfNiop4zbNLuviz3eY05QiftYSHHCVbkfKhw,2129
7
7
  showtime/core/github.py,sha256=uETvKDO2Yhpqg3fxLtrKaCuZR3b-1LVmgnf5aLcqrAQ,9988
8
8
  showtime/core/github_messages.py,sha256=MfgwCukrEsWWesMsuL8saciDgP4nS-gijzu8DXr-Alg,7450
9
9
  showtime/core/label_colors.py,sha256=efhbFnz_3nqEnEqmgyF6_hZbxtCu_fmb68BIIUpSsnk,3895
10
- showtime/core/pull_request.py,sha256=429ploGtbqnFjy0k7Nij6tYgCgSy3Ue8D9j2lJiWmz8,21010
11
- showtime/core/show.py,sha256=b6ABVSFvLH2jBHxAsP1ZjbHUlmxuhR2831phbsfpprA,9836
12
- showtime/data/ecs-task-definition.json,sha256=0ZaE0FZ8IWduXd2RyscMhXeVgxyym6qtjH02CK9mXBI,2235
13
- superset_showtime-0.4.5.dist-info/METADATA,sha256=9sgmsSojME9VSyn0JrowuHfMNBu9nNdHBVkJx9A91b8,12052
14
- superset_showtime-0.4.5.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
15
- superset_showtime-0.4.5.dist-info/entry_points.txt,sha256=rDW7oZ57mqyBUS4N_3_R7bZNGVHB-104jwmY-hHC_ck,85
16
- superset_showtime-0.4.5.dist-info/RECORD,,
10
+ showtime/core/pull_request.py,sha256=GE88HO6KnqgnOgNdVOlFsn--T7oR1Tl6wYhah0luJbQ,21665
11
+ showtime/core/show.py,sha256=-nMRShKWTjXGVuxuxrc0WK6l8ON-8iYm5QA8uvGoMOk,9806
12
+ showtime/data/ecs-task-definition.json,sha256=2acmqoF-3CxaBJP_VDkMMpG_U2RI4VPk1JvFOprMFyc,2098
13
+ superset_showtime-0.4.8.dist-info/METADATA,sha256=zYs12JPPFHfLVNmC39bzABgmt_BW3mu2XZ79ZzJ32Yc,12052
14
+ superset_showtime-0.4.8.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
15
+ superset_showtime-0.4.8.dist-info/entry_points.txt,sha256=rDW7oZ57mqyBUS4N_3_R7bZNGVHB-104jwmY-hHC_ck,85
16
+ superset_showtime-0.4.8.dist-info/RECORD,,