This is an automated email from the ASF dual-hosted git repository. potiuk pushed a commit to branch ci-image-keyed-cache in repository https://gitbox.apache.org/repos/asf/airflow.git
commit 018b9c04ead97b1178ebc14cf7f0750e29aaf9dd Author: Jarek Potiuk <[email protected]> AuthorDate: Sun Nov 15 16:53:19 2026 +0900 Give the old image versions cleanup time to read every tag Reading what every tag of a large package references takes about 40 minutes, beyond the previous timeout, so runs are spread out to keep the deletions well inside the workflow token's rate limit. Generated-by: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01NyQq9U7i5HhjDgrQ9qd3gq --- .github/workflows/cleanup-old-image-versions.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cleanup-old-image-versions.yml b/.github/workflows/cleanup-old-image-versions.yml index 945b84308f2..81ec2d22c05 100644 --- a/.github/workflows/cleanup-old-image-versions.yml +++ b/.github/workflows/cleanup-old-image-versions.yml @@ -19,10 +19,12 @@ name: Clean up old image versions # Deletes, a few hundred per run from one package in turn, the untagged CI and PROD image versions # older than 30 days that no tag references. Small, spaced-out runs keep it far below the API rate -# limit of the workflow token. See scripts/ci/cleanup_old_image_versions.py. +# limit of the workflow token. Most of a run is reading, anonymously from the registry, what each +# of the package's tags references: about 40 minutes for 18k tags. See +# scripts/ci/cleanup_old_image_versions.py. on: # yamllint disable-line rule:truthy schedule: - - cron: '41 */3 * * *' + - cron: '41 */6 * * *' workflow_dispatch: inputs: dry-run: @@ -42,7 +44,7 @@ jobs: cleanup: name: "Clean up old image versions" runs-on: ["ubuntu-slim"] - timeout-minutes: 30 + timeout-minutes: 90 permissions: contents: read packages: write @@ -60,4 +62,4 @@ jobs: MAX_DELETIONS: ${{ inputs.max-deletions || '300' }} run: > python3 scripts/ci/cleanup_old_image_versions.py - --days 30 --max-deletions "${MAX_DELETIONS}" --pause 1 ${DRY_RUN} + --days 30 --max-deletions "${MAX_DELETIONS}" --pause 3 ${DRY_RUN}
