superset-showtime 0.2.3__py3-none-any.whl → 0.2.5__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/cli.py +21 -12
- showtime/data/ecs-task-definition.json +12 -0
- {superset_showtime-0.2.3.dist-info → superset_showtime-0.2.5.dist-info}/METADATA +1 -1
- {superset_showtime-0.2.3.dist-info → superset_showtime-0.2.5.dist-info}/RECORD +7 -7
- {superset_showtime-0.2.3.dist-info → superset_showtime-0.2.5.dist-info}/WHEEL +0 -0
- {superset_showtime-0.2.3.dist-info → superset_showtime-0.2.5.dist-info}/entry_points.txt +0 -0
showtime/__init__.py
CHANGED
showtime/cli.py
CHANGED
|
@@ -24,7 +24,8 @@ def _get_service_urls(show):
|
|
|
24
24
|
|
|
25
25
|
return {
|
|
26
26
|
"logs": f"https://us-west-2.console.aws.amazon.com/ecs/v2/clusters/superset-ci/services/{service_name}/logs?region=us-west-2",
|
|
27
|
-
"service": f"https://us-west-2.console.aws.amazon.com/ecs/v2/clusters/superset-ci/services/{service_name}",
|
|
27
|
+
"service": f"https://us-west-2.console.aws.amazon.com/ecs/v2/clusters/superset-ci/services/{service_name}?region=us-west-2",
|
|
28
|
+
"health": f"https://us-west-2.console.aws.amazon.com/ecs/v2/clusters/superset-ci/services/{service_name}/health?region=us-west-2",
|
|
28
29
|
}
|
|
29
30
|
|
|
30
31
|
|
|
@@ -173,6 +174,9 @@ def start(
|
|
|
173
174
|
image_tag: Optional[str] = typer.Option(
|
|
174
175
|
None, "--image-tag", help="Override ECR image tag (e.g., pr-34764-ci)"
|
|
175
176
|
),
|
|
177
|
+
docker_tag: Optional[str] = typer.Option(
|
|
178
|
+
None, "--docker-tag", help="Override Docker image tag (e.g., pr-34639-9a82c20-ci, latest)"
|
|
179
|
+
),
|
|
176
180
|
force: bool = typer.Option(
|
|
177
181
|
False, "--force", help="Force re-deployment by deleting existing service"
|
|
178
182
|
),
|
|
@@ -213,7 +217,7 @@ def start(
|
|
|
213
217
|
# Create environment using trigger handler logic
|
|
214
218
|
console.print(f"🎪 [bold blue]Creating environment for PR #{pr_number}...[/bold blue]")
|
|
215
219
|
_handle_start_trigger(
|
|
216
|
-
pr_number, github, dry_run_aws, (dry_run or False), aws_sleep,
|
|
220
|
+
pr_number, github, dry_run_aws, (dry_run or False), aws_sleep, docker_tag, force
|
|
217
221
|
)
|
|
218
222
|
|
|
219
223
|
except GitHubError as e:
|
|
@@ -592,7 +596,7 @@ def test_lifecycle(
|
|
|
592
596
|
github = GitHubInterface()
|
|
593
597
|
|
|
594
598
|
console.print("🎪 [bold]Step 1: Simulate trigger-start[/bold]")
|
|
595
|
-
_handle_start_trigger(pr_number, github, dry_run_aws, dry_run_github, aws_sleep)
|
|
599
|
+
_handle_start_trigger(pr_number, github, dry_run_aws, dry_run_github, aws_sleep, None)
|
|
596
600
|
|
|
597
601
|
console.print()
|
|
598
602
|
console.print("🎪 [bold]Step 2: Simulate config update[/bold]")
|
|
@@ -632,6 +636,9 @@ def sync(
|
|
|
632
636
|
aws_sleep: int = typer.Option(
|
|
633
637
|
0, "--aws-sleep", help="Seconds to sleep during AWS operations (for testing)"
|
|
634
638
|
),
|
|
639
|
+
docker_tag: Optional[str] = typer.Option(
|
|
640
|
+
None, "--docker-tag", help="Override Docker image tag (e.g., pr-34639-9a82c20-ci, latest)"
|
|
641
|
+
),
|
|
635
642
|
):
|
|
636
643
|
"""🎪 Intelligently sync PR to desired state (called by GitHub Actions)"""
|
|
637
644
|
try:
|
|
@@ -700,7 +707,9 @@ def sync(
|
|
|
700
707
|
|
|
701
708
|
# Process the trigger
|
|
702
709
|
if "showtime-trigger-start" in trigger:
|
|
703
|
-
_handle_start_trigger(
|
|
710
|
+
_handle_start_trigger(
|
|
711
|
+
pr_number, github, dry_run_aws, dry_run_github, aws_sleep, docker_tag
|
|
712
|
+
)
|
|
704
713
|
elif "showtime-trigger-stop" in trigger:
|
|
705
714
|
_handle_stop_trigger(pr_number, github, dry_run_aws, dry_run_github)
|
|
706
715
|
|
|
@@ -1028,7 +1037,7 @@ def _handle_start_trigger(
|
|
|
1028
1037
|
dry_run_aws: bool = False,
|
|
1029
1038
|
dry_run_github: bool = False,
|
|
1030
1039
|
aws_sleep: int = 0,
|
|
1031
|
-
|
|
1040
|
+
docker_tag_override: Optional[str] = None,
|
|
1032
1041
|
force: bool = False,
|
|
1033
1042
|
):
|
|
1034
1043
|
"""Handle start trigger"""
|
|
@@ -1160,7 +1169,7 @@ def _handle_start_trigger(
|
|
|
1160
1169
|
sha=latest_sha,
|
|
1161
1170
|
github_user=github_actor,
|
|
1162
1171
|
feature_flags=feature_flags,
|
|
1163
|
-
image_tag_override=
|
|
1172
|
+
image_tag_override=docker_tag_override,
|
|
1164
1173
|
force=force,
|
|
1165
1174
|
)
|
|
1166
1175
|
|
|
@@ -1172,12 +1181,12 @@ def _handle_start_trigger(
|
|
|
1172
1181
|
# Show helpful links for the new service
|
|
1173
1182
|
console.print("\n🎪 [bold blue]Useful Links:[/bold blue]")
|
|
1174
1183
|
console.print(f" 🌐 Environment: http://{result.ip}:8080")
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
)
|
|
1178
|
-
console.print(
|
|
1179
|
-
|
|
1180
|
-
)
|
|
1184
|
+
|
|
1185
|
+
# Use centralized URL generation
|
|
1186
|
+
urls = _get_service_urls(show)
|
|
1187
|
+
console.print(f" 📊 ECS Service: {urls['service']}")
|
|
1188
|
+
console.print(f" 📝 Service Logs: {urls['logs']}")
|
|
1189
|
+
console.print(f" 🏥 Health Checks: {urls['health']}")
|
|
1181
1190
|
console.print(
|
|
1182
1191
|
f" 🔍 GitHub PR: https://github.com/apache/superset/pull/{pr_number}"
|
|
1183
1192
|
)
|
|
@@ -35,6 +35,18 @@
|
|
|
35
35
|
{
|
|
36
36
|
"name": "SUPERSET__SQLALCHEMY_EXAMPLES_URI",
|
|
37
37
|
"value": "duckdb:////app/data/examples.duckdb"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"name": "SUPERSET_LOG_LEVEL",
|
|
41
|
+
"value": "DEBUG"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"name": "PYTHONUNBUFFERED",
|
|
45
|
+
"value": "1"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"name": "PYTHONPATH",
|
|
49
|
+
"value": "/app/docker/pythonpath_dev"
|
|
38
50
|
}
|
|
39
51
|
],
|
|
40
52
|
"mountPoints": [],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: superset-showtime
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.5
|
|
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,6 +1,6 @@
|
|
|
1
|
-
showtime/__init__.py,sha256=
|
|
1
|
+
showtime/__init__.py,sha256=9ZOgVzwj5eIPKyGie6uKT_dDs2gGaQnx1YrbvzAfubc,420
|
|
2
2
|
showtime/__main__.py,sha256=EVaDaTX69yIhCzChg99vqvFSCN4ELstEt7Mpb9FMZX8,109
|
|
3
|
-
showtime/cli.py,sha256=
|
|
3
|
+
showtime/cli.py,sha256=qNfp_U5hRooRjLJkt4wBeRW5ntsNDb87QXPhIW3pjn0,61184
|
|
4
4
|
showtime/commands/__init__.py,sha256=M2wn5hYgwNCryMjLT79ncobvK884r-xk3znkCmINN_0,28
|
|
5
5
|
showtime/commands/start.py,sha256=DPGbgvGPh7I60LK_VioDljUhdmhNFVjEy6BchFv1lCo,1026
|
|
6
6
|
showtime/core/__init__.py,sha256=54hbdFNGrzuNMBdraezfjT8Zi6g221pKlJ9mREnKwCw,34
|
|
@@ -9,8 +9,8 @@ showtime/core/circus.py,sha256=c7eKHZ4CzB03IN2pEuuqcDT_mp_RLqPHl-68pzPbJi8,8770
|
|
|
9
9
|
showtime/core/emojis.py,sha256=MHEDuPIdfNiop4zbNLuviz3eY05QiftYSHHCVbkfKhw,2129
|
|
10
10
|
showtime/core/github.py,sha256=HWhM8_Yq4P-AHq0FV3UfrfQHUHXxkhn74vvc_9RguKA,9822
|
|
11
11
|
showtime/core/label_colors.py,sha256=efhbFnz_3nqEnEqmgyF6_hZbxtCu_fmb68BIIUpSsnk,3895
|
|
12
|
-
showtime/data/ecs-task-definition.json,sha256=
|
|
13
|
-
superset_showtime-0.2.
|
|
14
|
-
superset_showtime-0.2.
|
|
15
|
-
superset_showtime-0.2.
|
|
16
|
-
superset_showtime-0.2.
|
|
12
|
+
showtime/data/ecs-task-definition.json,sha256=0ZaE0FZ8IWduXd2RyscMhXeVgxyym6qtjH02CK9mXBI,2235
|
|
13
|
+
superset_showtime-0.2.5.dist-info/METADATA,sha256=iM2jaBmLiK2A776gXJCf4BVlXDHqrvLnz8nAMMakKIw,14635
|
|
14
|
+
superset_showtime-0.2.5.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
15
|
+
superset_showtime-0.2.5.dist-info/entry_points.txt,sha256=rDW7oZ57mqyBUS4N_3_R7bZNGVHB-104jwmY-hHC_ck,85
|
|
16
|
+
superset_showtime-0.2.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|