-
-
Notifications
You must be signed in to change notification settings - Fork 62
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
[ADD] ocabot migration issue maintainer #97
Conversation
@sbidoul can you take a look and if it looks good for you, deploy it on OCA server for doing real tests? |
I have put the command |
@pedrobaeza thanks for working on this. I'm good with the overall concept. A couple of comments though:
|
Well, I was thinking in being activated manually with this because not all repos follow this milestone way (for example, you with OCA/mis-builder).
Apart from the reason exposed for checking permissions, there are incorrect migration PRs that shouldn't be pointed until a reasonable quality state is got (I did this for example until commit history is preserved at least). The last reason is that almost nobody respect commit message format, so it's almost impossible to deduce module from this title. Editing the title to conform the specs is worse as:
|
@sbidoul what do you think about my replies? |
@pedrobaeza I understand your argument for making it a command. It makes sense. Splitting the setting of the milestone in another PR that is independent of this command sounds important. It can simply work by looking at the target branch and setting the milestone or label if one exist with the same name. Also a couple of unit tests for the inner part of the command will make future maintenance much less stressful :) |
Is it still WIP ? |
My last #97 (comment) is still current. If someone can do this split and add a small test for the inner part that should be good. |
For me the split is not needed and the test is a picky thing. This is working as is. |
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.
Uh, no, asking for a minimal test is definitely not nitpicking.
Same for the part that sets the milestone: it can be done automatically on all PRs and is totally independent of updating the migration issue. This is basic separation of concerns.
I don't know how to make tests of this, and simply the setup of all the needed parts is something I can't afford, so all yours. |
@victoralmau can you please catch this one and finish it? |
efc3950
to
6be0c83
Compare
Hi @sbidoul i have added some test about these new command. |
@victoralmau : could you rebase ? there is a conflict. @sbidoul : could you answer to the last question of @victoralmau ? thanks ! |
6be0c83
to
8d1d270
Compare
@victoralmau I see you started using VCR for the tests, and you have factored out the inner code for easier testing. That sounds like the right approach to me. What problem do you have ? |
8d1d270
to
8506c97
Compare
1ad1ecc
to
5c0fc66
Compare
@pedrobaeza @sbidoul I fixed the tests and I think it should be good now. OTOH, I think the fix from sigmavirus24/github3.py#1048 might be necessary. |
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.
Code review.
Thanks for this great feature.
@sbidoul good for you? The problem is if we can't deploy it without the patch, or maybe deploy that Github patched library? |
New ocabot command for maintaining migration issues: ``/ocabot migration``, followed by the module name, performing the following: * Look for an issue in that repository with the name "Migration to version ``{version}``", where ``{version}`` is the name of the target branch. * Add or edit a line in that issue, linking the module to the pull request (PR) and the author of it. * TODO: When the PR is merged, the line gets ticked. * Put the milestone corresponding to the target branch in the PR. Co-authored-by: Pedro M. Baeza <pedro.baeza@tecnativa.com>
5c0fc66
to
872e3b8
Compare
@pedrobaeza @sbidoul Turns out the patch was not necessary, I was just creating the wrong test It should be green now. |
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.
the yaml files are difficult to review, but LGTM
Thanks for the review 👍 Well, it is hard to work around that with the current test setup... The other option would be to encode the response body to make it more compact, but at the same time unreadable, so IMHO it is still better this way... |
@sbidoul any news about this? It would be very interesting to have it for the migrations to v15 for saving a lot of maintenance work. |
I just deployed this. Thanks for your work! |
New ocabot command for maintaining migration issues:
/ocabot migration
, followed by the module name, performing the following:{version}
", where{version}
is the name of the target branch.cc @Tecnativa TT21199