You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ma...@apache.org on 2025/12/15 22:36:24 UTC
(superset) branch showtime-ttl created (now 7eac06b029)
This is an automated email from the ASF dual-hosted git repository.
maximebeauchemin pushed a change to branch showtime-ttl
in repository https://gitbox.apache.org/repos/asf/superset.git
at 7eac06b029 feat(ci): use TTL labels for showtime cleanup
This branch includes the following new commits:
new 7eac06b029 feat(ci): use TTL labels for showtime cleanup
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(superset) 01/01: feat(ci): use TTL labels for showtime cleanup
Posted by ma...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
maximebeauchemin pushed a commit to branch showtime-ttl
in repository https://gitbox.apache.org/repos/asf/superset.git
commit 7eac06b0295ca829a55541be0decc689879b1b2c
Author: Maxime Beauchemin <ma...@gmail.com>
AuthorDate: Mon Dec 15 22:36:09 2025 +0000
feat(ci): use TTL labels for showtime cleanup
Switch from fixed 48h cleanup to respecting per-PR TTL labels.
This allows contributors to extend environment lifetime using labels
like "🎪 ⌛ 1w" for longer-running reviews.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <no...@anthropic.com>
---
.github/workflows/showtime-cleanup.yml | 18 ++----------------
1 file changed, 2 insertions(+), 16 deletions(-)
diff --git a/.github/workflows/showtime-cleanup.yml b/.github/workflows/showtime-cleanup.yml
index c0404bc101..3aad462398 100644
--- a/.github/workflows/showtime-cleanup.yml
+++ b/.github/workflows/showtime-cleanup.yml
@@ -7,12 +7,6 @@ on:
# Manual trigger for testing
workflow_dispatch:
- inputs:
- max_age_hours:
- description: 'Maximum age in hours before cleanup'
- required: false
- default: '48'
- type: string
# Common environment variables
env:
@@ -38,13 +32,5 @@ jobs:
- name: Cleanup expired environments
run: |
- MAX_AGE="${{ github.event.inputs.max_age_hours || '48' }}"
-
- # Validate max_age is numeric
- if [[ ! "$MAX_AGE" =~ ^[0-9]+$ ]]; then
- echo "❌ Invalid max_age_hours format: $MAX_AGE (must be numeric)"
- exit 1
- fi
-
- echo "Cleaning up environments older than ${MAX_AGE}h"
- python -m showtime cleanup --older-than "${MAX_AGE}h"
+ echo "Cleaning up environments respecting TTL labels"
+ python -m showtime cleanup --respect-ttl