superset-showtime 0.5.8__tar.gz → 0.5.9__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.
- {superset_showtime-0.5.8 → superset_showtime-0.5.9}/PKG-INFO +1 -1
- {superset_showtime-0.5.8 → superset_showtime-0.5.9}/showtime/__init__.py +1 -1
- {superset_showtime-0.5.8 → superset_showtime-0.5.9}/showtime/cli.py +25 -0
- {superset_showtime-0.5.8 → superset_showtime-0.5.9}/showtime/core/git_validation.py +8 -18
- {superset_showtime-0.5.8 → superset_showtime-0.5.9}/.claude/settings.local.json +0 -0
- {superset_showtime-0.5.8 → superset_showtime-0.5.9}/.gitignore +0 -0
- {superset_showtime-0.5.8 → superset_showtime-0.5.9}/.pre-commit-config.yaml +0 -0
- {superset_showtime-0.5.8 → superset_showtime-0.5.9}/CLAUDE.md +0 -0
- {superset_showtime-0.5.8 → superset_showtime-0.5.9}/Makefile +0 -0
- {superset_showtime-0.5.8 → superset_showtime-0.5.9}/README.md +0 -0
- {superset_showtime-0.5.8 → superset_showtime-0.5.9}/dev-setup.sh +0 -0
- {superset_showtime-0.5.8 → superset_showtime-0.5.9}/pypi-push.sh +0 -0
- {superset_showtime-0.5.8 → superset_showtime-0.5.9}/pyproject.toml +0 -0
- {superset_showtime-0.5.8 → superset_showtime-0.5.9}/requirements-dev.txt +0 -0
- {superset_showtime-0.5.8 → superset_showtime-0.5.9}/requirements.txt +0 -0
- {superset_showtime-0.5.8 → superset_showtime-0.5.9}/showtime/__main__.py +0 -0
- {superset_showtime-0.5.8 → superset_showtime-0.5.9}/showtime/core/__init__.py +0 -0
- {superset_showtime-0.5.8 → superset_showtime-0.5.9}/showtime/core/aws.py +0 -0
- {superset_showtime-0.5.8 → superset_showtime-0.5.9}/showtime/core/emojis.py +0 -0
- {superset_showtime-0.5.8 → superset_showtime-0.5.9}/showtime/core/github.py +0 -0
- {superset_showtime-0.5.8 → superset_showtime-0.5.9}/showtime/core/github_messages.py +0 -0
- {superset_showtime-0.5.8 → superset_showtime-0.5.9}/showtime/core/label_colors.py +0 -0
- {superset_showtime-0.5.8 → superset_showtime-0.5.9}/showtime/core/pull_request.py +0 -0
- {superset_showtime-0.5.8 → superset_showtime-0.5.9}/showtime/core/show.py +0 -0
- {superset_showtime-0.5.8 → superset_showtime-0.5.9}/showtime/data/ecs-task-definition.json +0 -0
- {superset_showtime-0.5.8 → superset_showtime-0.5.9}/tests/__init__.py +0 -0
- {superset_showtime-0.5.8 → superset_showtime-0.5.9}/tests/unit/__init__.py +0 -0
- {superset_showtime-0.5.8 → superset_showtime-0.5.9}/tests/unit/test_label_transitions.py +0 -0
- {superset_showtime-0.5.8 → superset_showtime-0.5.9}/tests/unit/test_pull_request.py +0 -0
- {superset_showtime-0.5.8 → superset_showtime-0.5.9}/tests/unit/test_sha_specific_logic.py +0 -0
- {superset_showtime-0.5.8 → superset_showtime-0.5.9}/tests/unit/test_show.py +0 -0
- {superset_showtime-0.5.8 → superset_showtime-0.5.9}/uv.lock +0 -0
- {superset_showtime-0.5.8 → superset_showtime-0.5.9}/workflows-reference/showtime-cleanup.yml +0 -0
- {superset_showtime-0.5.8 → superset_showtime-0.5.9}/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.5.
|
|
3
|
+
Version: 0.5.9
|
|
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/
|
|
@@ -815,6 +815,31 @@ def cleanup(
|
|
|
815
815
|
p(f"❌ Cleanup failed: {e}")
|
|
816
816
|
|
|
817
817
|
|
|
818
|
+
@app.command()
|
|
819
|
+
def git_check() -> None:
|
|
820
|
+
"""🔍 Test Git SHA validation locally"""
|
|
821
|
+
from rich import print as p
|
|
822
|
+
|
|
823
|
+
from .core.git_validation import REQUIRED_SHA, validate_required_sha
|
|
824
|
+
|
|
825
|
+
p("🔍 [bold blue]Testing Git SHA Validation[/bold blue]")
|
|
826
|
+
p(f"Required SHA: [cyan]{REQUIRED_SHA}[/cyan]")
|
|
827
|
+
|
|
828
|
+
try:
|
|
829
|
+
is_valid, error_msg = validate_required_sha()
|
|
830
|
+
|
|
831
|
+
if is_valid:
|
|
832
|
+
p(
|
|
833
|
+
"✅ [bold green]Validation PASSED[/bold green] - Required commit found in Git history"
|
|
834
|
+
)
|
|
835
|
+
else:
|
|
836
|
+
p("❌ [bold red]Validation FAILED[/bold red]")
|
|
837
|
+
p(f"Error: {error_msg}")
|
|
838
|
+
|
|
839
|
+
except Exception as e:
|
|
840
|
+
p(f"❌ [bold red]Validation ERROR[/bold red]: {e}")
|
|
841
|
+
|
|
842
|
+
|
|
818
843
|
def main() -> None:
|
|
819
844
|
"""Main entry point for the CLI"""
|
|
820
845
|
app()
|
|
@@ -68,28 +68,18 @@ def validate_required_sha(required_sha: Optional[str] = None) -> Tuple[bool, Opt
|
|
|
68
68
|
try:
|
|
69
69
|
repo = Repo(".")
|
|
70
70
|
|
|
71
|
-
#
|
|
71
|
+
# Search for SHA in git log (has to work in shallow clones where merge_base fails)
|
|
72
72
|
try:
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
# Check if SHA is reachable from current HEAD
|
|
76
|
-
# This ensures the required commit is in our branch history
|
|
77
|
-
try:
|
|
78
|
-
repo.merge_base(commit, repo.head.commit)
|
|
73
|
+
log_output = repo.git.log("--oneline", "--all")
|
|
74
|
+
if sha_to_check in log_output or sha_to_check[:7] in log_output:
|
|
79
75
|
return True, None
|
|
80
|
-
|
|
81
|
-
# SHA exists but not in current branch history
|
|
76
|
+
else:
|
|
82
77
|
return False, (
|
|
83
|
-
f"Required commit {sha_to_check}
|
|
84
|
-
f"Please
|
|
78
|
+
f"Required commit {sha_to_check} not found in Git history. "
|
|
79
|
+
f"Please update to a branch that includes this commit."
|
|
85
80
|
)
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
# SHA doesn't exist in repository
|
|
89
|
-
return False, (
|
|
90
|
-
f"Required commit {sha_to_check} not found in repository. "
|
|
91
|
-
f"Please update to a branch that includes this commit."
|
|
92
|
-
)
|
|
81
|
+
except Exception as e:
|
|
82
|
+
return False, f"Git log search failed: {e}"
|
|
93
83
|
|
|
94
84
|
except InvalidGitRepositoryError:
|
|
95
85
|
return False, "Current directory is not a Git repository"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{superset_showtime-0.5.8 → superset_showtime-0.5.9}/workflows-reference/showtime-cleanup.yml
RENAMED
|
File without changes
|
{superset_showtime-0.5.8 → superset_showtime-0.5.9}/workflows-reference/showtime-trigger.yml
RENAMED
|
File without changes
|