-
Notifications
You must be signed in to change notification settings - Fork 96
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
Gitlab Pull Requests #458
Gitlab Pull Requests #458
Conversation
Thanks for the PR. Below are my thoughts on the functionality listed in the body rather than comments on the specific implementation, which I haven't looked at in detail yet. I think the two auxiliary features would benefit from separate pull requests as they are features that can be considered independently.
Hopefully GitLab's pull request API doesn't require more than a small handful of https calls. I think it's reasonable create a helper module analogous to github.py to avoid pulling in a heavy dependency for a very narrow subset of its functionality. |
The only concern with a dependency is if there a debian package for it that we can depend on. |
https://packages.debian.org/search?keywords=python-gitlab Does this count? I honestly don't know how this works. |
That's the right package for Debian, and it's in the Ubuntu repositories but only starting from Xenial which means we cannot release it in bloom until we drop support for older distros (trusty, at least). There is also a python3 package, ( The pypi package
There are definitely improvements that could be made in the GitHub logic. I think the fact that it sits in this repository and implements only the functionality required by bloom makes active maintenance of the GitHub functionality easier than it would be if we pulled in a library that managed the GitHub API interactions for us and had to deep dive into that whenever it didn't Just Work for us. How did you install the gitlab dependency locally @DLu? Looking more closely at the gitlab python module itself. This PR adds Assuming that the above availability concerns can be resolved, my general concerns with the addition of these dependencies are:
|
We could introduce this as an optional dependency, adding it in the |
Would this commit address your concerns? |
Just looking at the diff it looks like it would indeed. I've got to get a GitLab rosdistro set up to test the functionality. Out of curiosity have you been using either of these branches with python2 or python3? Just wondering where I should focus my own testing. |
@DLu Thanks for taking a crack at an internal gitlab interaction library. I certainly still think it's the best option for Bloom as it is going to be much easier for us to maintain and distribute. I pulled e13e748 into a local workspace and took it for a spin. There were some issues with the changes including python2/3 compatibility issues and the usage of requests instead of standard library http. Are you interested in resolving those issues or should I pull your patch into a local branch as is and start working on it? Regarding requests, I'm warming on adding it as a dependency. The version spread from Trusty - Bionic is 2.2 - 2.18. As long as we do some testing with bloom on all supported platforms before cutting a final release it could be fine. |
I am happy to work on this further. If you notate the problems you found in PR Review form, I can try to pick them off. |
Can you update the PR branch to base it on the version without the gitlab library dependency and ideally rebase or replay your patches on top of the latest version of master. That will give me a good basis for online review. |
Squashed into a single commit and rebased. |
Closing in favor of #500 |
python-gitlab
library. Not sure ifpython-bloom
minds having that dependency since it doesn't use the github lib.~/.config/bloom
intoget_bloom_config_and_path
open_pull_request