Skip to content

Remove ORAS manifest delete from merge workflow#557

Merged
ianpittwood merged 1 commit into
mainfrom
fix/oras-auto-remove
Jun 1, 2026
Merged

Remove ORAS manifest delete from merge workflow#557
ianpittwood merged 1 commit into
mainfrom
fix/oras-auto-remove

Conversation

@ianpittwood

Copy link
Copy Markdown
Contributor

Summary

The OrasManifestDelete command frequently failed when cleaning up the temporary manifest index after a merge. This removes the command and the in-line cleanup step from OrasMergeWorkflow.

The temporary index is now left in place and cleaned up out-of-band by the clean.yml workflow (bakery clean temp-registry), which each product repo already runs on a schedule.

Changes

  • Removed the OrasManifestDelete class from oras.py.
  • Removed "Step 3" (delete temporary index) from OrasMergeWorkflow.run(); the workflow now only creates the temporary index and copies it to destinations.
  • Updated the workflow docstring/comments to note the temp index is cleaned up by clean.yml.
  • Updated tests: dropped the OrasManifestDelete import, removed TestOrasManifestDelete and test_manifest_delete_with_plain_http, and adjusted test_execute_success's call-count assertion from 4 → 3.

Testing

  • uv run pytest test/plugins/builtin/oras/ → 43 passed
  • uv run ruff check on both modified files → all checks passed

Notes

With the in-line delete gone, temporary indexes now persist until the cleanup job runs (default: removes those older than 3 days) rather than being deleted immediately after each merge.

🤖 Generated with Claude Code

The OrasManifestDelete command frequently failed when cleaning up the
temporary manifest index after a merge. Remove the command and the
in-line cleanup step; the temporary index is now left in place and
cleaned up out-of-band by the clean.yml workflow (bakery clean
temp-registry).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@ianpittwood ianpittwood requested a review from bschwedler as a code owner May 29, 2026 14:17
@github-actions

Copy link
Copy Markdown

Test Results

1 568 tests   1 568 ✅  8m 31s ⏱️
    1 suites      0 💤
    1 files        0 ❌

Results for commit 6c8b7d0.

@bschwedler bschwedler left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any reason we would want to keep this around as a standalone CLI command?

@ianpittwood

Copy link
Copy Markdown
Contributor Author

Is there any reason we would want to keep this around as a standalone CLI command?

I can't think of any. It seems like GHCR is straight up incompatible with OCI deletion commands.

@ianpittwood ianpittwood added this pull request to the merge queue Jun 1, 2026
Merged via the queue into main with commit de05795 Jun 1, 2026
24 checks passed
@ianpittwood ianpittwood deleted the fix/oras-auto-remove branch June 1, 2026 15:52
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