superset-showtime 0.6.3__py3-none-any.whl → 0.6.4__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/core/pull_request.py +18 -12
- {superset_showtime-0.6.3.dist-info → superset_showtime-0.6.4.dist-info}/METADATA +1 -1
- {superset_showtime-0.6.3.dist-info → superset_showtime-0.6.4.dist-info}/RECORD +6 -6
- {superset_showtime-0.6.3.dist-info → superset_showtime-0.6.4.dist-info}/WHEEL +0 -0
- {superset_showtime-0.6.3.dist-info → superset_showtime-0.6.4.dist-info}/entry_points.txt +0 -0
showtime/__init__.py
CHANGED
showtime/core/pull_request.py
CHANGED
|
@@ -411,16 +411,20 @@ class PullRequest:
|
|
|
411
411
|
return SyncResult(success=True, action_taken=action_needed, show=new_show)
|
|
412
412
|
|
|
413
413
|
elif action_needed == "destroy_environment":
|
|
414
|
+
# Stop the current environment if it exists
|
|
414
415
|
if self.current_show:
|
|
415
416
|
print(f"🗑️ Destroying environment {self.current_show.sha}...")
|
|
416
417
|
self.current_show.stop(dry_run_github=dry_run_github, dry_run_aws=dry_run_aws)
|
|
417
418
|
print("☁️ AWS resources deleted")
|
|
418
419
|
self._post_cleanup_comment(self.current_show, dry_run_github)
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
420
|
+
else:
|
|
421
|
+
print("🗑️ No current environment to destroy")
|
|
422
|
+
|
|
423
|
+
# ALWAYS remove all circus labels for stop trigger, regardless of current_show
|
|
424
|
+
if not dry_run_github:
|
|
425
|
+
self.remove_showtime_labels()
|
|
426
|
+
print("🏷️ GitHub labels cleaned up")
|
|
427
|
+
print("✅ Environment destroyed")
|
|
424
428
|
return SyncResult(success=True, action_taken="destroy_environment")
|
|
425
429
|
|
|
426
430
|
else:
|
|
@@ -441,16 +445,18 @@ class PullRequest:
|
|
|
441
445
|
|
|
442
446
|
def stop_environment(self, **kwargs: Any) -> SyncResult:
|
|
443
447
|
"""Stop current environment (CLI stop command logic)"""
|
|
444
|
-
if not self.current_show:
|
|
445
|
-
return SyncResult(
|
|
446
|
-
success=True, action_taken="no_environment", error="No environment to stop"
|
|
447
|
-
)
|
|
448
|
-
|
|
449
448
|
try:
|
|
450
|
-
|
|
451
|
-
|
|
449
|
+
# Stop the current environment if it exists
|
|
450
|
+
if self.current_show:
|
|
451
|
+
self.current_show.stop(**kwargs)
|
|
452
|
+
print("☁️ AWS resources deleted")
|
|
453
|
+
else:
|
|
454
|
+
print("🗑️ No current environment to destroy")
|
|
455
|
+
|
|
456
|
+
# ALWAYS remove all circus labels for stop command, regardless of current_show
|
|
452
457
|
if not kwargs.get("dry_run_github", False):
|
|
453
458
|
self.remove_showtime_labels()
|
|
459
|
+
print("🏷️ GitHub labels cleaned up")
|
|
454
460
|
return SyncResult(success=True, action_taken="stopped")
|
|
455
461
|
except Exception as e:
|
|
456
462
|
return SyncResult(success=False, action_taken="stop_failed", error=str(e))
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: superset-showtime
|
|
3
|
-
Version: 0.6.
|
|
3
|
+
Version: 0.6.4
|
|
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=
|
|
1
|
+
showtime/__init__.py,sha256=O8PG7VEz2VYlezufbPc7zRxajuNxLRaW7XTXnOYSki0,448
|
|
2
2
|
showtime/__main__.py,sha256=EVaDaTX69yIhCzChg99vqvFSCN4ELstEt7Mpb9FMZX8,109
|
|
3
3
|
showtime/cli.py,sha256=TLv9NaqPyewKJi9uCTZKWBijGelqunmsoSo7cyKajV4,31640
|
|
4
4
|
showtime/core/__init__.py,sha256=54hbdFNGrzuNMBdraezfjT8Zi6g221pKlJ9mREnKwCw,34
|
|
@@ -8,10 +8,10 @@ showtime/core/git_validation.py,sha256=3dmSGpMDplDAmKWHUyoUEPgt3__8oTuBZxbfuhocT
|
|
|
8
8
|
showtime/core/github.py,sha256=mSOqRLy2KMDhWUS37V2gJ-CQdeBpEqunBRKL10v5hxU,12268
|
|
9
9
|
showtime/core/github_messages.py,sha256=MfgwCukrEsWWesMsuL8saciDgP4nS-gijzu8DXr-Alg,7450
|
|
10
10
|
showtime/core/label_colors.py,sha256=gSe7EIMl4YjWkIgKHUvuaRSwgEB_B-NYQBxFFlF8Z3s,4065
|
|
11
|
-
showtime/core/pull_request.py,sha256=
|
|
11
|
+
showtime/core/pull_request.py,sha256=DCrTYz3Fu2Oh9FRgYTwncvzX7zy4Wa0BZsBwYa3nTpg,32669
|
|
12
12
|
showtime/core/show.py,sha256=sOgZvGXwdcNDsidF1F_XwPXlSeTb8-Zeqhqb8w1pqAM,9973
|
|
13
13
|
showtime/data/ecs-task-definition.json,sha256=d-NLkIhvr4C6AnwDfDIwUTx-6KFMH9wRkt6pVCbqZY4,2365
|
|
14
|
-
superset_showtime-0.6.
|
|
15
|
-
superset_showtime-0.6.
|
|
16
|
-
superset_showtime-0.6.
|
|
17
|
-
superset_showtime-0.6.
|
|
14
|
+
superset_showtime-0.6.4.dist-info/METADATA,sha256=SqFxH-mmg3jpLnOp2Gkl2AHJjewmga-nNtSe4HHk8bw,12052
|
|
15
|
+
superset_showtime-0.6.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
16
|
+
superset_showtime-0.6.4.dist-info/entry_points.txt,sha256=rDW7oZ57mqyBUS4N_3_R7bZNGVHB-104jwmY-hHC_ck,85
|
|
17
|
+
superset_showtime-0.6.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|