-
-
Notifications
You must be signed in to change notification settings - Fork 61
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
Automatic backward/forward porting? #55
Comments
It's a good idea, but the best one is the automatic migration try for all the modules. For the forward-port/backport, this is now simpler: as the version bumping is now done by the bot, it's way easier to just cherry-pick the PR commit without conflicts and push directly for a qualified maintainer, or create the pull request. Any way, an instruction in the original PR like: /ocabot cherry-pick is very feasible, that performs:
And then, the usual review or For the mass migration, it looks like more a tool for maintainer-tools than something for the bot IMO. |
This comment has been minimized.
This comment has been minimized.
No, I mean that you instruct the bot to make the forward-port/backport for you. |
On which repo would we create the source branch for the back/forward port PR? If we create it on the OCA repo, contributors that are not PSC members will not be able to work on it. |
I like the way that Odoo chose. The fw port bot pings reviewers, mergers and contributors from original PR. Then if something goes wrong with the port, he notifies them every now and then. The original contributor can:
Maybe the bot should display instructions on how to do any of those. I guess it's a matter of time until github allows adding permissions to specific PR branches. |
I made myself this little tool to facilitate back/forward porting or PRs. |
Cool, although this should be a bot job IMHO. |
This was discussed long ago at OCA/maintainer-tools#381 but it seems that today the part of version bumping is solved by the bot and... well, we have a bot; so it might be a good moment to reopen the discussion.
One of the worst parts about code maintenance here in OCA is the presence of several versions of the same code across different git branches, and I know it won't change, but today we have this bot, which is a good foundation to finally attack this problem without altering current workflow.
Odoo itself uses the same system, but they actually have a combination of bot and humans to perform the merge+forwardport loop sanely, and a different product and policy to offer, which helps their maintenance.
It would be great if the bot could handle forward ports (backward would be awesome too). To avoid the dangers of automatic code ports, all the bot should do is:
The same for backward ports (that could be left for the future).
A cool thing to have in mind would be massive version migrations. This again can be left for the future, but imagine a scenario where Odoo 13.0 is released, then the 13.0 branches are opened, and then the bot does by itself the commit and code forward ports and opens a PR per module.
This would let humans focus in the corner cases, increasing speed of development and reducing repetitive maintenance tasks 💪, which often get undone due to their nature. 😊
The text was updated successfully, but these errors were encountered: