Repository navigation
sync prerelease: recreate the pre-release tree on every populate - #204
Merged
Merged
Conversation
A repopulate after a PR update copied over the previous populate, so packages, subprojects or meta the new cut no longer has stayed behind. Delete the existing pre-release project and its subprojects (deepest first) before applying the mirror meta, and refuse to run when the profile root equals the --branch-from root so the delete can never reach a production :releases: project. Signed-off-by: Ricardo Dias <ricardo.dias@percona.com>
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.
Problem
When a release PR is updated,
obs-release-pr.ymlrepopulates the pre-release project withsync prerelease. That copied over the previous populate, so packages, subprojects or project meta the new cut no longer has stayed behind in the pre-release tree.Change
sync prereleasenow deletes the existing pre-release tree (<PR root>:<project>and every subproject under it, deepest first, recursive) before applying the mirror meta, so every populate starts from scratch. Not done on--dry-run, and only after the record / mirror checks pass.rootprjequals the--branch-fromroot, so the delete can never reach a production:releases:project.source_commitmarker, written only after a complete copy).docs/PERCONA_OBS_TOOL.mdand.github/copilot-instructions.md.Tests
pytest tests752 passed; black + pyright clean