superset-showtime 0.5.8__py3-none-any.whl → 0.5.9__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.8"
7
+ __version__ = "0.5.9"
8
8
  __author__ = "Maxime Beauchemin"
9
9
  __email__ = "maximebeauchemin@gmail.com"
10
10
 
showtime/cli.py CHANGED
@@ -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
- # Check if SHA exists in repository
71
+ # Search for SHA in git log (has to work in shallow clones where merge_base fails)
72
72
  try:
73
- commit = repo.commit(sha_to_check)
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
- except Exception:
81
- # SHA exists but not in current branch history
76
+ else:
82
77
  return False, (
83
- f"Required commit {sha_to_check} exists but is not reachable from current HEAD. "
84
- f"Please ensure your branch includes the required commit."
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
- except Exception:
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"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: superset-showtime
3
- Version: 0.5.8
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/
@@ -1,17 +1,17 @@
1
- showtime/__init__.py,sha256=BG1XZS3HxkBt1uX9xaRqgw4rRho6Q6Yy3aTxcQxcPeA,448
1
+ showtime/__init__.py,sha256=nkDFZ9YjYJmUAv_wwmEs6-AmwAPVjlS9C5IzexoRcs8,448
2
2
  showtime/__main__.py,sha256=EVaDaTX69yIhCzChg99vqvFSCN4ELstEt7Mpb9FMZX8,109
3
- showtime/cli.py,sha256=eWu6MBPo0ERc_3rYRGwg_95ZZN8uqlqORBiRAbvbCpg,30933
3
+ showtime/cli.py,sha256=8vIJT5TiqXuHDGxRBg6jV3oNv5nKrmDOs5OgltycPeI,31664
4
4
  showtime/core/__init__.py,sha256=54hbdFNGrzuNMBdraezfjT8Zi6g221pKlJ9mREnKwCw,34
5
5
  showtime/core/aws.py,sha256=uTjJAvEBQMyTccS93WZeNPhfeKQhJgOQQ0BJdnQjvCU,35007
6
6
  showtime/core/emojis.py,sha256=MHEDuPIdfNiop4zbNLuviz3eY05QiftYSHHCVbkfKhw,2129
7
- showtime/core/git_validation.py,sha256=h4MZPIaJB1KN6aO5sXf5j4IKOu5__nmZZSDRjWRoEpA,4127
7
+ showtime/core/git_validation.py,sha256=XnY43ubNV10a6EfeJNAHAvmRMOE-gjVAPBhDTBgB1_Y,3783
8
8
  showtime/core/github.py,sha256=uETvKDO2Yhpqg3fxLtrKaCuZR3b-1LVmgnf5aLcqrAQ,9988
9
9
  showtime/core/github_messages.py,sha256=MfgwCukrEsWWesMsuL8saciDgP4nS-gijzu8DXr-Alg,7450
10
10
  showtime/core/label_colors.py,sha256=efhbFnz_3nqEnEqmgyF6_hZbxtCu_fmb68BIIUpSsnk,3895
11
11
  showtime/core/pull_request.py,sha256=vKlPPlIeSNT_WmlZkOekLH_tGYm4pyJUZFHQC9dVCKY,27756
12
12
  showtime/core/show.py,sha256=FpxDm52LASCJvf8UF998AtNiVzfdYIwNEsPAsOAAwL0,9701
13
13
  showtime/data/ecs-task-definition.json,sha256=Y8ZbAAXdIDMnM-8zzfdUTlwp5RpWSyhe1gtfygKkqW8,2343
14
- superset_showtime-0.5.8.dist-info/METADATA,sha256=pQD1Wr9BmGSgYwSyr17GwYpsh7QGUyFNKDmioltw08M,12052
15
- superset_showtime-0.5.8.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
16
- superset_showtime-0.5.8.dist-info/entry_points.txt,sha256=rDW7oZ57mqyBUS4N_3_R7bZNGVHB-104jwmY-hHC_ck,85
17
- superset_showtime-0.5.8.dist-info/RECORD,,
14
+ superset_showtime-0.5.9.dist-info/METADATA,sha256=Gua1XFm4eEZ4zCvbN4eO1sHGPV1KM3wWWVe_Pql5LiI,12052
15
+ superset_showtime-0.5.9.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
16
+ superset_showtime-0.5.9.dist-info/entry_points.txt,sha256=rDW7oZ57mqyBUS4N_3_R7bZNGVHB-104jwmY-hHC_ck,85
17
+ superset_showtime-0.5.9.dist-info/RECORD,,