-
Notifications
You must be signed in to change notification settings - Fork 303
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🚚 Update weblate merge-resovling script #6163
Conversation
How are we going to test this? Did you run it locally? Can we prevent automatic merge on the next “real” run so that we can confirm it doesn’t add unwanted files? |
Yes, I ran this locally. I think we agree that if we run Unfortunately, there is not really a way to test this. Next time I have to run the script, I could perform the merge step-by-step and manually check the untracked files. However, this is not an effective testing strategy because I cannot exercise all possible conditions that could lead to untracked files. One way to reduce the risk is to change the scope to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I’m okay to give it a go
Thank you for contributing! Your pull request is now going on the merge train (choo choo! Do not click update from main anymore, and be sure to allow changes to be pushed to your fork). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You know what, I would feel safer if we could scope the add
to specific directories, like trnaslations and content
This pull request has been removed from the queue for the following reason: Pull request #6163 has been dequeued. The pull request rule doesn't match anymore. The following conditions don't match anymore:
You should look at the reason for the failure and decide if the pull request needs to be fixed or if you want to requeue it. If you want to requeue this pull request, you need to post a comment with the text: |
Thank you for contributing! Your pull request is now going on the merge train (choo choo! Do not click update from main anymore, and be sure to allow changes to be pushed to your fork). |
Currently, the merge-weblate-resolving-conflicts script executes a
doit run _autopr
which generates code and then immediately does agit commit
. If a new language is added though, some of the newly generated files remain untracked and are not included in the commit. This causes the following merge command to fail:Evaluate whether adding a
git add .
before the commit would have unwanted side effects.