superset-showtime 0.6.3__tar.gz → 0.6.4__tar.gz

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.

Files changed (34) hide show
  1. {superset_showtime-0.6.3 → superset_showtime-0.6.4}/PKG-INFO +1 -1
  2. {superset_showtime-0.6.3 → superset_showtime-0.6.4}/showtime/__init__.py +1 -1
  3. {superset_showtime-0.6.3 → superset_showtime-0.6.4}/showtime/core/pull_request.py +18 -12
  4. {superset_showtime-0.6.3 → superset_showtime-0.6.4}/.claude/settings.local.json +0 -0
  5. {superset_showtime-0.6.3 → superset_showtime-0.6.4}/.gitignore +0 -0
  6. {superset_showtime-0.6.3 → superset_showtime-0.6.4}/.pre-commit-config.yaml +0 -0
  7. {superset_showtime-0.6.3 → superset_showtime-0.6.4}/CLAUDE.md +0 -0
  8. {superset_showtime-0.6.3 → superset_showtime-0.6.4}/Makefile +0 -0
  9. {superset_showtime-0.6.3 → superset_showtime-0.6.4}/README.md +0 -0
  10. {superset_showtime-0.6.3 → superset_showtime-0.6.4}/dev-setup.sh +0 -0
  11. {superset_showtime-0.6.3 → superset_showtime-0.6.4}/pypi-push.sh +0 -0
  12. {superset_showtime-0.6.3 → superset_showtime-0.6.4}/pyproject.toml +0 -0
  13. {superset_showtime-0.6.3 → superset_showtime-0.6.4}/requirements-dev.txt +0 -0
  14. {superset_showtime-0.6.3 → superset_showtime-0.6.4}/requirements.txt +0 -0
  15. {superset_showtime-0.6.3 → superset_showtime-0.6.4}/showtime/__main__.py +0 -0
  16. {superset_showtime-0.6.3 → superset_showtime-0.6.4}/showtime/cli.py +0 -0
  17. {superset_showtime-0.6.3 → superset_showtime-0.6.4}/showtime/core/__init__.py +0 -0
  18. {superset_showtime-0.6.3 → superset_showtime-0.6.4}/showtime/core/aws.py +0 -0
  19. {superset_showtime-0.6.3 → superset_showtime-0.6.4}/showtime/core/emojis.py +0 -0
  20. {superset_showtime-0.6.3 → superset_showtime-0.6.4}/showtime/core/git_validation.py +0 -0
  21. {superset_showtime-0.6.3 → superset_showtime-0.6.4}/showtime/core/github.py +0 -0
  22. {superset_showtime-0.6.3 → superset_showtime-0.6.4}/showtime/core/github_messages.py +0 -0
  23. {superset_showtime-0.6.3 → superset_showtime-0.6.4}/showtime/core/label_colors.py +0 -0
  24. {superset_showtime-0.6.3 → superset_showtime-0.6.4}/showtime/core/show.py +0 -0
  25. {superset_showtime-0.6.3 → superset_showtime-0.6.4}/showtime/data/ecs-task-definition.json +0 -0
  26. {superset_showtime-0.6.3 → superset_showtime-0.6.4}/tests/__init__.py +0 -0
  27. {superset_showtime-0.6.3 → superset_showtime-0.6.4}/tests/unit/__init__.py +0 -0
  28. {superset_showtime-0.6.3 → superset_showtime-0.6.4}/tests/unit/test_label_transitions.py +0 -0
  29. {superset_showtime-0.6.3 → superset_showtime-0.6.4}/tests/unit/test_pull_request.py +0 -0
  30. {superset_showtime-0.6.3 → superset_showtime-0.6.4}/tests/unit/test_sha_specific_logic.py +0 -0
  31. {superset_showtime-0.6.3 → superset_showtime-0.6.4}/tests/unit/test_show.py +0 -0
  32. {superset_showtime-0.6.3 → superset_showtime-0.6.4}/uv.lock +0 -0
  33. {superset_showtime-0.6.3 → superset_showtime-0.6.4}/workflows-reference/showtime-cleanup.yml +0 -0
  34. {superset_showtime-0.6.3 → superset_showtime-0.6.4}/workflows-reference/showtime-trigger.yml +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: superset-showtime
3
- Version: 0.6.3
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/
@@ -4,7 +4,7 @@
4
4
  Circus tent emoji state tracking for Apache Superset ephemeral environments.
5
5
  """
6
6
 
7
- __version__ = "0.6.3"
7
+ __version__ = "0.6.4"
8
8
  __author__ = "Maxime Beauchemin"
9
9
  __email__ = "maximebeauchemin@gmail.com"
10
10
 
@@ -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
- # Remove all circus labels after successful stop
420
- if not dry_run_github:
421
- self.remove_showtime_labels()
422
- print("🏷️ GitHub labels cleaned up")
423
- print("✅ Environment destroyed")
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
- self.current_show.stop(**kwargs)
451
- # Remove all circus labels after successful stop
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))