Skip to content

Warn on "Package version not found" GHCR delete errors#493

Merged
bschwedler merged 1 commit into
mainfrom
warn-on-version-not-found
Apr 27, 2026
Merged

Warn on "Package version not found" GHCR delete errors#493
bschwedler merged 1 commit into
mainfrom
warn-on-version-not-found

Conversation

@ianpittwood
Copy link
Copy Markdown
Contributor

Summary

  • Treat GHCR Package version not found delete failures as warnings instead of errors, since concurrent cleanup runs can race and delete a version before this run reaches it.
  • Mirrors the existing handling for the flaky 5000 downloads cannot be deleted message and includes a hint that the version may have been deleted by a concurrent cleanup.
  • Adds a unit test covering the new warning path.

Test plan

  • uv run pytest test/registry_management/ghcr/test_api.py

🤖 Generated with Claude Code

Concurrent cleanup runs can race when discovering and deleting package
versions. Treat "Package version not found" responses as a warning so a
losing race doesn't fail CI, mirroring the existing handling of the
flaky 5000-downloads message.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@ianpittwood ianpittwood requested a review from bschwedler as a code owner April 27, 2026 14:32
@github-actions
Copy link
Copy Markdown

Test Results

1 397 tests  +1   1 397 ✅ +1   8m 57s ⏱️ -5s
    1 suites ±0       0 💤 ±0 
    1 files   ±0       0 ❌ ±0 

Results for commit 8fc7c87. ± Comparison against base commit 2a3c000.

@bschwedler bschwedler added this pull request to the merge queue Apr 27, 2026
Merged via the queue into main with commit a31e537 Apr 27, 2026
23 checks passed
@bschwedler bschwedler deleted the warn-on-version-not-found branch April 27, 2026 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants