Add repo-config auto-migration workflow#519
Merged
llucax merged 3 commits intofrequenz-floss:v0.x.xfrom Mar 3, 2026
Merged
Conversation
Contributor
Author
|
Draft because we need to merge and release this first, but it is ready for a review: I made the manual tests using this repository as a guinea pig: https://github.com/llucax/frequenz-client-microgrid-python. Here is the latest test PR: And a final test with an upstream repo here: |
Contributor
Author
|
This PR is having an unrelated CI failure because there are some issues with transitive dependencies. It is already fixed upstream but not release yet. I think we can wait on it as |
c6e6aff to
1dd1663
Compare
The original names "Migrate an existing project" and "Update an existing project" are confusing, as it is not clear which refers to updating to a new repo-config version (for a project that already uses it) and which refers to converting a project that doesn't use repo-config to start using it. Specially since a migration script is included, using "migrating" for converting projects is particularly confusing and ambiguous. This commit renames them to "Update to a new version" and "Convert an existing project" to hopefully reduce the confusion. Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
Contributor
Author
|
OK, gh-action-dependabot-migrate is released, this PR is ready for a final review. |
Add a new workflow that automatically runs the migration script when Dependabot opens a PR for the repo-config group. It handles multi-version jumps by running each intermediate migration in sequence, posts the migration output as a PR comment and in the job summary, and auto-approves/merges clean migrations. PRs that need manual intervention fail the job until a human signals resolution via the `tool:repo-config:migration:intervention-done` label (or by removing the `tool:repo-config:migration:intervention-pending` label). Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
Marenz
approved these changes
Mar 3, 2026
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.
Add a new workflow that automatically runs the migration script when Dependabot opens a PR for the repo-config group. It handles multi-version jumps by running each intermediate migration in sequence, posts the migration output as a PR comment and in the job summary, and auto-approves/merges clean migrations.
PRs that need manual intervention fail the job until a human signals resolution via the
tool:repo-config:migration:intervention-donelabel (or by removing thetool:repo-config:migration:intervention-pendinglabel).