Skip to content

Add repo-config auto-migration workflow#519

Merged
llucax merged 3 commits intofrequenz-floss:v0.x.xfrom
llucax:auto-migrate
Mar 3, 2026
Merged

Add repo-config auto-migration workflow#519
llucax merged 3 commits intofrequenz-floss:v0.x.xfrom
llucax:auto-migrate

Conversation

@llucax
Copy link
Contributor

@llucax llucax commented Feb 26, 2026

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).

@github-actions github-actions bot added the part:template Affects the cookiecutter template files label Feb 26, 2026
@llucax
Copy link
Contributor Author

llucax commented Feb 26, 2026

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:

@llucax llucax self-assigned this Feb 26, 2026
@llucax llucax requested a review from Marenz February 26, 2026 11:58
@llucax llucax added this to the v0.15.0 milestone Feb 26, 2026
@llucax llucax added type:enhancement New feature or enhancement visitble to users part:ci Affects the GitHub workflow and other parts for running CI labels Feb 26, 2026
@llucax
Copy link
Contributor Author

llucax commented Feb 26, 2026

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 requests is a pretty popular project so I don't think it will take them long to release the bug fix.

@llucax llucax force-pushed the auto-migrate branch 3 times, most recently from c6e6aff to 1dd1663 Compare February 27, 2026 16:30
llucax added 2 commits March 3, 2026 17:30
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>
@llucax llucax marked this pull request as ready for review March 3, 2026 16:34
@llucax llucax requested a review from a team as a code owner March 3, 2026 16:34
@llucax
Copy link
Contributor Author

llucax commented Mar 3, 2026

OK, gh-action-dependabot-migrate is released, this PR is ready for a final review.

@llucax llucax enabled auto-merge March 3, 2026 16:34
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>
@llucax llucax added this pull request to the merge queue Mar 3, 2026
Merged via the queue into frequenz-floss:v0.x.x with commit 7e22b94 Mar 3, 2026
6 checks passed
@llucax llucax deleted the auto-migrate branch March 3, 2026 23:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

part:ci Affects the GitHub workflow and other parts for running CI part:template Affects the cookiecutter template files type:enhancement New feature or enhancement visitble to users

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants