superset-showtime 0.5.4__py3-none-any.whl → 0.5.7__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.5.4"
7
+ __version__ = "0.5.7"
8
8
  __author__ = "Maxime Beauchemin"
9
9
  __email__ = "maximebeauchemin@gmail.com"
10
10
 
@@ -599,6 +599,11 @@ class PullRequest:
599
599
  for old_pointer in existing_active_pointers:
600
600
  print(f"🎯 Removing old active pointer: {old_pointer}")
601
601
  get_github().remove_label(self.pr_number, old_pointer)
602
+
603
+ # CRITICAL: Refresh after removals before differential calculation
604
+ if existing_active_pointers:
605
+ print("🔄 Refreshing labels after pointer cleanup...")
606
+ self.refresh_labels()
602
607
 
603
608
  # Now do normal differential updates - only for this SHA
604
609
  current_sha_labels = {
@@ -648,9 +653,7 @@ class PullRequest:
648
653
  Returns:
649
654
  Number of environments stopped
650
655
  """
651
- # CRITICAL: Refresh to get current shows including newly created one
652
- self.refresh_labels()
653
-
656
+ # Note: Labels should be fresh from recent _update_show_labels() call
654
657
  stopped_count = 0
655
658
 
656
659
  for show in self.shows:
@@ -659,11 +662,16 @@ class PullRequest:
659
662
  try:
660
663
  show.stop(dry_run_github=dry_run_github, dry_run_aws=dry_run_aws)
661
664
 
662
- # Remove labels for this old environment
665
+ # Remove ONLY existing labels for this old environment (not theoretical ones)
663
666
  if not dry_run_github:
664
- old_labels = show.to_circus_labels()
665
- print(f"🏷️ Removing labels for {show.sha}: {len(old_labels)} labels")
666
- for label in old_labels:
667
+ existing_labels = [
668
+ label for label in self.labels
669
+ if label.startswith(f"🎪 {show.sha} ") or
670
+ label == f"🎪 🎯 {show.sha}" or
671
+ label == f"🎪 🏗️ {show.sha}"
672
+ ]
673
+ print(f"🏷️ Removing existing labels for {show.sha}: {existing_labels}")
674
+ for label in existing_labels:
667
675
  try:
668
676
  get_github().remove_label(self.pr_number, label)
669
677
  except Exception as e:
@@ -67,5 +67,5 @@
67
67
  "FARGATE"
68
68
  ],
69
69
  "cpu": "512",
70
- "memory": "1024"
70
+ "memory": "2048"
71
71
  }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: superset-showtime
3
- Version: 0.5.4
3
+ Version: 0.5.7
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=v4dfA5K-c1pUPNrB3iXwD3jjOyurED35BMm4yRTnJ24,448
1
+ showtime/__init__.py,sha256=lAvOPT8KUJ8XkRdEWPjaQO-B9Koo-Mx_42ac173FZv0,448
2
2
  showtime/__main__.py,sha256=EVaDaTX69yIhCzChg99vqvFSCN4ELstEt7Mpb9FMZX8,109
3
3
  showtime/cli.py,sha256=cQB5kH-XWFX3MhsxRaChVdjVe_I_7kBVyFY4fQrHPWA,30542
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=DMuNkoWZETg55CJuWsyv58UOpgkUWeT-XJbA_97OKjA,27229
10
+ showtime/core/pull_request.py,sha256=vKlPPlIeSNT_WmlZkOekLH_tGYm4pyJUZFHQC9dVCKY,27756
11
11
  showtime/core/show.py,sha256=FpxDm52LASCJvf8UF998AtNiVzfdYIwNEsPAsOAAwL0,9701
12
- showtime/data/ecs-task-definition.json,sha256=2acmqoF-3CxaBJP_VDkMMpG_U2RI4VPk1JvFOprMFyc,2098
13
- superset_showtime-0.5.4.dist-info/METADATA,sha256=vwZMCk_jL9X5_ZBPi8Gy-jYBZKhFkICinHC-eop0qsY,12052
14
- superset_showtime-0.5.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
15
- superset_showtime-0.5.4.dist-info/entry_points.txt,sha256=rDW7oZ57mqyBUS4N_3_R7bZNGVHB-104jwmY-hHC_ck,85
16
- superset_showtime-0.5.4.dist-info/RECORD,,
12
+ showtime/data/ecs-task-definition.json,sha256=P7NQljXZTOPW1fWdehGrwJGAh5vdFK9-LzGT59q1PU0,2098
13
+ superset_showtime-0.5.7.dist-info/METADATA,sha256=yu5OIoXzL0OZIJf8-9Qrd94zCDXLLI0Om8kNBZWZYoY,12052
14
+ superset_showtime-0.5.7.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
15
+ superset_showtime-0.5.7.dist-info/entry_points.txt,sha256=rDW7oZ57mqyBUS4N_3_R7bZNGVHB-104jwmY-hHC_ck,85
16
+ superset_showtime-0.5.7.dist-info/RECORD,,