superset-showtime 0.4.2__py3-none-any.whl → 0.4.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 CHANGED
@@ -4,7 +4,7 @@
4
4
  Circus tent emoji state tracking for Apache Superset ephemeral environments.
5
5
  """
6
6
 
7
- __version__ = "0.4.2"
7
+ __version__ = "0.4.5"
8
8
  __author__ = "Maxime Beauchemin"
9
9
  __email__ = "maximebeauchemin@gmail.com"
10
10
 
@@ -507,6 +507,9 @@ class PullRequest:
507
507
  if dry_run:
508
508
  return
509
509
 
510
+ # Refresh labels to get current state (atomic claim may have changed them)
511
+ self.refresh_labels()
512
+
510
513
  # First, remove any existing status labels for this SHA to ensure clean transitions
511
514
  sha_status_labels = [
512
515
  label for label in self.labels
@@ -515,22 +518,29 @@ class PullRequest:
515
518
  for old_status_label in sha_status_labels:
516
519
  get_github().remove_label(self.pr_number, old_status_label)
517
520
 
518
- # Now do normal differential updates
519
- current_labels = {label for label in self.labels if label.startswith("🎪")}
521
+ # Now do normal differential updates - only for this SHA
522
+ current_sha_labels = {
523
+ label for label in self.labels
524
+ if label.startswith("🎪") and (
525
+ label.startswith(f"🎪 {show.sha} ") or # SHA-first format: 🎪 abc123f 📅 ...
526
+ label.startswith(f"🎪 🎯 {show.sha}") or # Pointer format: 🎪 🎯 abc123f
527
+ label.startswith(f"🎪 🏗️ {show.sha}") # Building pointer: 🎪 🏗️ abc123f
528
+ )
529
+ }
520
530
  desired_labels = set(show.to_circus_labels())
521
531
 
522
532
  # Remove the status labels we already cleaned up from the differential
523
- current_labels = current_labels - set(sha_status_labels)
533
+ current_sha_labels = current_sha_labels - set(sha_status_labels)
524
534
 
525
535
  # Only add labels that don't exist
526
- labels_to_add = desired_labels - current_labels
536
+ labels_to_add = desired_labels - current_sha_labels
527
537
  for label in labels_to_add:
528
538
  get_github().add_label(self.pr_number, label)
529
539
 
530
540
  # Only remove labels that shouldn't exist (excluding status labels already handled)
531
- labels_to_remove = current_labels - desired_labels
541
+ labels_to_remove = current_sha_labels - desired_labels
532
542
  for label in labels_to_remove:
533
543
  get_github().remove_label(self.pr_number, label)
534
544
 
535
- # Refresh our label cache
545
+ # Final refresh to update cache with all changes
536
546
  self.refresh_labels()
showtime/core/show.py CHANGED
@@ -166,10 +166,10 @@ class Show:
166
166
  # Detect if running in CI environment
167
167
  is_ci = bool(os.getenv("GITHUB_ACTIONS") or os.getenv("CI"))
168
168
 
169
- # Base command
169
+ # Build command without final path
170
170
  cmd = [
171
171
  "docker",
172
- "buildx",
172
+ "buildx",
173
173
  "build",
174
174
  "--push",
175
175
  "--platform",
@@ -182,7 +182,6 @@ class Show:
182
182
  "LOAD_EXAMPLES_DUCKDB=true",
183
183
  "-t",
184
184
  tag,
185
- ".",
186
185
  ]
187
186
 
188
187
  # Add caching based on environment
@@ -209,12 +208,16 @@ class Show:
209
208
  force_load = os.getenv("DOCKER_LOAD", "false").lower() == "true"
210
209
 
211
210
  if native_x86 or force_load:
212
- cmd.insert(-1, "--load") # Insert before the "." argument
211
+ cmd.append("--load")
213
212
  print("🐳 Will load image to local Docker daemon (native x86_64 platform)")
214
213
  else:
215
214
  print("🐳 Cross-platform build - pushing to registry only (no local load)")
216
215
 
216
+ # Add build context path last
217
+ cmd.append(".")
218
+
217
219
  print(f"🐳 Building Docker image: {tag}")
220
+ print(f"🐳 Command: {' '.join(cmd)}")
218
221
 
219
222
  # Stream output in real-time
220
223
  process = subprocess.Popen(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: superset-showtime
3
- Version: 0.4.2
3
+ Version: 0.4.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,4 +1,4 @@
1
- showtime/__init__.py,sha256=jzoTTK9K3uRo5GuAPaej-89Ny35OFYmHBR3FTQ7MiVk,448
1
+ showtime/__init__.py,sha256=manqzOJIZh483MCnfTgP6iNIgWk5zbK0bCgteMjNY30,448
2
2
  showtime/__main__.py,sha256=EVaDaTX69yIhCzChg99vqvFSCN4ELstEt7Mpb9FMZX8,109
3
3
  showtime/cli.py,sha256=faFM6pe3gz49_1KrzUeri7dQffqz4WP92JmGxPaIOC0,25249
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=Yxc7Oy0dkvQQm3DbwUKbiCAW0wEivM8U2j5vSRwIDxE,20475
11
- showtime/core/show.py,sha256=BRMH_Z53UfK0VXAMHfzS0u7_s0h634VKTMzWMniRNsg,9759
10
+ showtime/core/pull_request.py,sha256=429ploGtbqnFjy0k7Nij6tYgCgSy3Ue8D9j2lJiWmz8,21010
11
+ showtime/core/show.py,sha256=b6ABVSFvLH2jBHxAsP1ZjbHUlmxuhR2831phbsfpprA,9836
12
12
  showtime/data/ecs-task-definition.json,sha256=0ZaE0FZ8IWduXd2RyscMhXeVgxyym6qtjH02CK9mXBI,2235
13
- superset_showtime-0.4.2.dist-info/METADATA,sha256=h_RweT3LG7UW7HLTx49Gv26ulSJUV2c-YVULpYm_gw8,12052
14
- superset_showtime-0.4.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
15
- superset_showtime-0.4.2.dist-info/entry_points.txt,sha256=rDW7oZ57mqyBUS4N_3_R7bZNGVHB-104jwmY-hHC_ck,85
16
- superset_showtime-0.4.2.dist-info/RECORD,,
13
+ superset_showtime-0.4.5.dist-info/METADATA,sha256=9sgmsSojME9VSyn0JrowuHfMNBu9nNdHBVkJx9A91b8,12052
14
+ superset_showtime-0.4.5.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
15
+ superset_showtime-0.4.5.dist-info/entry_points.txt,sha256=rDW7oZ57mqyBUS4N_3_R7bZNGVHB-104jwmY-hHC_ck,85
16
+ superset_showtime-0.4.5.dist-info/RECORD,,