superset-showtime 0.5.3__py3-none-any.whl → 0.5.4__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/core/pull_request.py +12 -6
- {superset_showtime-0.5.3.dist-info → superset_showtime-0.5.4.dist-info}/METADATA +1 -1
- {superset_showtime-0.5.3.dist-info → superset_showtime-0.5.4.dist-info}/RECORD +6 -6
- {superset_showtime-0.5.3.dist-info → superset_showtime-0.5.4.dist-info}/WHEEL +0 -0
- {superset_showtime-0.5.3.dist-info → superset_showtime-0.5.4.dist-info}/entry_points.txt +0 -0
showtime/__init__.py
CHANGED
showtime/core/pull_request.py
CHANGED
|
@@ -395,6 +395,9 @@ class PullRequest:
|
|
|
395
395
|
|
|
396
396
|
def _determine_action(self, target_sha: str) -> str:
|
|
397
397
|
"""Determine what sync action is needed based on target SHA state"""
|
|
398
|
+
# CRITICAL: Get fresh labels before any decisions
|
|
399
|
+
self.refresh_labels()
|
|
400
|
+
|
|
398
401
|
target_sha_short = target_sha[:7] # Ensure we're working with short SHA
|
|
399
402
|
|
|
400
403
|
# Get the specific show for the target SHA
|
|
@@ -435,20 +438,20 @@ class PullRequest:
|
|
|
435
438
|
|
|
436
439
|
def _atomic_claim(self, target_sha: str, action: str, dry_run: bool = False) -> bool:
|
|
437
440
|
"""Atomically claim this PR for the current job based on target SHA state"""
|
|
441
|
+
# CRITICAL: Get fresh labels before any decisions
|
|
442
|
+
self.refresh_labels()
|
|
443
|
+
|
|
438
444
|
target_sha_short = target_sha[:7]
|
|
439
445
|
target_show = self.get_show_by_sha(target_sha_short)
|
|
440
446
|
|
|
441
|
-
# 1. Validate current state allows this action for target SHA
|
|
447
|
+
# 1. Validate current state allows this action for target SHA
|
|
442
448
|
if action in ["create_environment", "rolling_update", "auto_sync"]:
|
|
443
449
|
if target_show and target_show.status in [
|
|
444
450
|
"building",
|
|
445
451
|
"built",
|
|
446
|
-
"deploying",
|
|
452
|
+
"deploying",
|
|
447
453
|
]:
|
|
448
|
-
return False # Target SHA already in progress
|
|
449
|
-
|
|
450
|
-
# Allow actions on failed, running, or non-existent target SHAs
|
|
451
|
-
return True
|
|
454
|
+
return False # Target SHA already in progress - ONLY conflict case returns
|
|
452
455
|
|
|
453
456
|
if dry_run:
|
|
454
457
|
print(f"🎪 [DRY-RUN] Would atomically claim PR for {action}")
|
|
@@ -645,6 +648,9 @@ class PullRequest:
|
|
|
645
648
|
Returns:
|
|
646
649
|
Number of environments stopped
|
|
647
650
|
"""
|
|
651
|
+
# CRITICAL: Refresh to get current shows including newly created one
|
|
652
|
+
self.refresh_labels()
|
|
653
|
+
|
|
648
654
|
stopped_count = 0
|
|
649
655
|
|
|
650
656
|
for show in self.shows:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: superset-showtime
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.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/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
showtime/__init__.py,sha256=
|
|
1
|
+
showtime/__init__.py,sha256=v4dfA5K-c1pUPNrB3iXwD3jjOyurED35BMm4yRTnJ24,448
|
|
2
2
|
showtime/__main__.py,sha256=EVaDaTX69yIhCzChg99vqvFSCN4ELstEt7Mpb9FMZX8,109
|
|
3
3
|
showtime/cli.py,sha256=cQB5kH-XWFX3MhsxRaChVdjVe_I_7kBVyFY4fQrHPWA,30542
|
|
4
4
|
showtime/core/__init__.py,sha256=54hbdFNGrzuNMBdraezfjT8Zi6g221pKlJ9mREnKwCw,34
|
|
@@ -7,10 +7,10 @@ showtime/core/emojis.py,sha256=MHEDuPIdfNiop4zbNLuviz3eY05QiftYSHHCVbkfKhw,2129
|
|
|
7
7
|
showtime/core/github.py,sha256=uETvKDO2Yhpqg3fxLtrKaCuZR3b-1LVmgnf5aLcqrAQ,9988
|
|
8
8
|
showtime/core/github_messages.py,sha256=MfgwCukrEsWWesMsuL8saciDgP4nS-gijzu8DXr-Alg,7450
|
|
9
9
|
showtime/core/label_colors.py,sha256=efhbFnz_3nqEnEqmgyF6_hZbxtCu_fmb68BIIUpSsnk,3895
|
|
10
|
-
showtime/core/pull_request.py,sha256=
|
|
10
|
+
showtime/core/pull_request.py,sha256=DMuNkoWZETg55CJuWsyv58UOpgkUWeT-XJbA_97OKjA,27229
|
|
11
11
|
showtime/core/show.py,sha256=FpxDm52LASCJvf8UF998AtNiVzfdYIwNEsPAsOAAwL0,9701
|
|
12
12
|
showtime/data/ecs-task-definition.json,sha256=2acmqoF-3CxaBJP_VDkMMpG_U2RI4VPk1JvFOprMFyc,2098
|
|
13
|
-
superset_showtime-0.5.
|
|
14
|
-
superset_showtime-0.5.
|
|
15
|
-
superset_showtime-0.5.
|
|
16
|
-
superset_showtime-0.5.
|
|
13
|
+
superset_showtime-0.5.4.dist-info/METADATA,sha256=vwZMCk_jL9X5_ZBPi8Gy-jYBZKhFkICinHC-eop0qsY,12052
|
|
14
|
+
superset_showtime-0.5.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
15
|
+
superset_showtime-0.5.4.dist-info/entry_points.txt,sha256=rDW7oZ57mqyBUS4N_3_R7bZNGVHB-104jwmY-hHC_ck,85
|
|
16
|
+
superset_showtime-0.5.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|