Repository navigation
Read test mirror tags from mirror.yaml when deleting - #188
Draft
PerfectSlayer wants to merge 1 commit into
Draft
PerfectSlayer wants to merge 1 commit into
PerfectSlayer wants to merge 1 commit into
Conversation
The delete workflow always runs the script from the default branch, but the group may have been created with a different variant list (e.g. before or after an EA JDK was added or removed). Rebuilding the group from the hard-coded CI_VARIANTS made the deletion fail in that case. Discover the group's tags from mirror.yaml instead and remove whatever is there. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PerfectSlayer
temporarily deployed
to
ci-build
November 19, 2026 16:02 — with
GitHub Actions
Inactive
PerfectSlayer
temporarily deployed
to
ci-build
November 19, 2026 16:02 — with
GitHub Actions
Inactive
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
scripts/delete-test-mirror-entries.shno longer relies on a hard-codedCI_VARIANTSlist. It now finds the{PR_NUMBER}_merge-*group inmirror.yaml, reads its tags from there, and removes that group and the matchingmirror.lock.yamlentries.Why
The Delete test image mirror PR workflow always runs the script from the default branch, while the group being deleted may have been created with a different variant list. Whenever a variant is added or removed (e.g. EA JDK 27 in #168 / #182, EA JDK 28 in #186), deletion fails:
Missing mirror.yaml tag ...:N_merge-28);This was raised in the review of #186.
Details
source_prefix/dest_repo, every tag starting with"N_merge-. The leading quote anchors the prefix, so deleting12does not touch123.mirror.lock.yamlentry. Nothing is modified in that case.Testing
Ran the script locally against sample
mirror.yaml/mirror.lock.yamlfiles:28tag, alongsideci-*entries and other PR groups (including12vs123): only the target group and its lock entries are removed;Note: #186 also edits the
CI_VARIANTSline in this file, so whichever merges second needs a trivial rebase (drop that line).🤖 Generated with Claude Code