superset-showtime 0.4.0__tar.gz → 0.4.2__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 (31) hide show
  1. {superset_showtime-0.4.0 → superset_showtime-0.4.2}/PKG-INFO +1 -1
  2. {superset_showtime-0.4.0 → superset_showtime-0.4.2}/showtime/__init__.py +1 -1
  3. {superset_showtime-0.4.0 → superset_showtime-0.4.2}/showtime/cli.py +6 -0
  4. {superset_showtime-0.4.0 → superset_showtime-0.4.2}/showtime/core/pull_request.py +4 -2
  5. {superset_showtime-0.4.0 → superset_showtime-0.4.2}/.claude/settings.local.json +0 -0
  6. {superset_showtime-0.4.0 → superset_showtime-0.4.2}/.gitignore +0 -0
  7. {superset_showtime-0.4.0 → superset_showtime-0.4.2}/.pre-commit-config.yaml +0 -0
  8. {superset_showtime-0.4.0 → superset_showtime-0.4.2}/CLAUDE.md +0 -0
  9. {superset_showtime-0.4.0 → superset_showtime-0.4.2}/Makefile +0 -0
  10. {superset_showtime-0.4.0 → superset_showtime-0.4.2}/README.md +0 -0
  11. {superset_showtime-0.4.0 → superset_showtime-0.4.2}/dev-setup.sh +0 -0
  12. {superset_showtime-0.4.0 → superset_showtime-0.4.2}/pypi-push.sh +0 -0
  13. {superset_showtime-0.4.0 → superset_showtime-0.4.2}/pyproject.toml +0 -0
  14. {superset_showtime-0.4.0 → superset_showtime-0.4.2}/requirements-dev.txt +0 -0
  15. {superset_showtime-0.4.0 → superset_showtime-0.4.2}/requirements.txt +0 -0
  16. {superset_showtime-0.4.0 → superset_showtime-0.4.2}/showtime/__main__.py +0 -0
  17. {superset_showtime-0.4.0 → superset_showtime-0.4.2}/showtime/core/__init__.py +0 -0
  18. {superset_showtime-0.4.0 → superset_showtime-0.4.2}/showtime/core/aws.py +0 -0
  19. {superset_showtime-0.4.0 → superset_showtime-0.4.2}/showtime/core/emojis.py +0 -0
  20. {superset_showtime-0.4.0 → superset_showtime-0.4.2}/showtime/core/github.py +0 -0
  21. {superset_showtime-0.4.0 → superset_showtime-0.4.2}/showtime/core/github_messages.py +0 -0
  22. {superset_showtime-0.4.0 → superset_showtime-0.4.2}/showtime/core/label_colors.py +0 -0
  23. {superset_showtime-0.4.0 → superset_showtime-0.4.2}/showtime/core/show.py +0 -0
  24. {superset_showtime-0.4.0 → superset_showtime-0.4.2}/showtime/data/ecs-task-definition.json +0 -0
  25. {superset_showtime-0.4.0 → superset_showtime-0.4.2}/tests/__init__.py +0 -0
  26. {superset_showtime-0.4.0 → superset_showtime-0.4.2}/tests/unit/__init__.py +0 -0
  27. {superset_showtime-0.4.0 → superset_showtime-0.4.2}/tests/unit/test_pull_request.py +0 -0
  28. {superset_showtime-0.4.0 → superset_showtime-0.4.2}/tests/unit/test_show.py +0 -0
  29. {superset_showtime-0.4.0 → superset_showtime-0.4.2}/uv.lock +0 -0
  30. {superset_showtime-0.4.0 → superset_showtime-0.4.2}/workflows-reference/showtime-cleanup.yml +0 -0
  31. {superset_showtime-0.4.0 → superset_showtime-0.4.2}/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.4.0
3
+ Version: 0.4.2
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.4.0"
7
+ __version__ = "0.4.2"
8
8
  __author__ = "Maxime Beauchemin"
9
9
  __email__ = "maximebeauchemin@gmail.com"
10
10
 
@@ -206,6 +206,12 @@ def status(
206
206
  if show_data["requested_by"]:
207
207
  table.add_row("Requested by", f"@{show_data['requested_by']}")
208
208
 
209
+ # Show active triggers
210
+ trigger_labels = [label for label in pr.labels if "showtime-trigger-" in label]
211
+ if trigger_labels:
212
+ trigger_display = ", ".join(trigger_labels)
213
+ table.add_row("Active Triggers", trigger_display)
214
+
209
215
  if verbose:
210
216
  table.add_row("All Labels", ", ".join(pr.circus_labels))
211
217
 
@@ -364,10 +364,12 @@ class PullRequest:
364
364
  if trigger_labels:
365
365
  for trigger in trigger_labels:
366
366
  if "showtime-trigger-start" in trigger:
367
- if self.current_show and self.current_show.needs_update(target_sha):
367
+ if self.current_show and self.current_show.status == "failed":
368
+ return "create_environment" # Replace failed environment
369
+ elif self.current_show and self.current_show.needs_update(target_sha):
368
370
  return "rolling_update"
369
371
  elif self.current_show:
370
- return "no_action" # Same commit
372
+ return "no_action" # Same commit, healthy environment
371
373
  else:
372
374
  return "create_environment"
373
375
  elif "showtime-trigger-stop" in trigger: