-
Notifications
You must be signed in to change notification settings - Fork 177
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
Support for Bitbucket, Sonar and Squash #367
Comments
The current supported data sources are described at: https://github.com/chaoss/grimoirelab-perceval/blob/master/README.md There is no support for those data sources. |
http://www.squashtest.org/en squash data source is this one? |
@acs Yes, it's http://www.squashtest.org/en |
Is there any alternative/workaround of using Bitbucket with Grimoire? |
If you're interested only in git repos, you can easily use the git backend. If you're interested in pull requests, they are not supported yet, a Perceval backend would be needed. |
Does this mean interested on using Perceval with Bitbucket without the PRs? |
Yes.
If the repository is public, nothing to do, since Perceval uses git for accessing it, and there are no calls too the Bitbucket API. If the repository is private, if you already have your account configured to access it, it should just work, because Perceval is basically running git clone. Please, let us know if it does not work in either of these cases: to be honest, my experience with analyzing Bitbucket is not that large. |
I'd like to contribute a bitbucket interface for this project. bitbucket has similar APIs to github. |
Hi @aaronnickovich, thank you for your interest! If you need some help don't hesitate to ping us! Feel also free to share your branch and we can work on it together! |
Hello everyone, |
Hi @sarthak0906! You're contribution is more than welcome. Please have a look to the github.py and gitlab.py as reference. You can also have a look at a prototype of the sonarqube backend here. Don't hesitate to share your branch or to write us if you have any questions. Thanks for contributing to GrimoireLab! |
I have a question for the community. I've been working on a bitbucket implementation and the public domain bitbucket uses an API V2. However, enterprise bitbucket is typically using the v1 API. They are very different. |
From my point of view, having a --api (or similar) flag would be the way to go (even if we start with a single API supported). This happens not only in Bitbucket, we have other data sources with different APIs too. Maybe a reason for not having that flag would be that it can be automagically inferred from a simple query to the API which version it is implementing. |
These data sources you refer to appear to be minor changes in how to fetch something with a slightly different server version. For instance, mediawiki and gerrit. When I talk about bitbucket APIs, it's actually two different products offered by Atlassian: Bitbucket SERVER has different versions like 5.10 and 6.7, and the rest interface do not seem to change much even between the major versions. The cloud vs server is, however, so vast it's like trying to combine github and gitlab together. It'd honestly be similar to switch between the two classes like this: What I know absolutely today is this: What I don't know now or in future plans: To begin I thought perceval should have a "bitbucket" data collection implementation for both cloud and server, but it's so different that it's not very nice using if, else to separate them out. With respect to integration with SirMordred, auto-magic is nice to have. |
Hey everyone. |
Hi @sarthak0906, sorry for the late reply. |
I have a doubt. Does data have the same fields and structure depending which version you use? |
Hi @sduenas, The field for 'name' in cloud is 'slug' in bitbucket server. Same goes for 'uuid' vs 'id', respectively. Cloud offers a CI/CD build tool and an issues page which are missing from the server implementation. I haven't worked on ELK but I understand it adds some metadata. I think I see where you're going with this. If these two produce different data, then it should be treated as a different perceval agent. |
That does sound amazing |
Hey, I had a doubt, |
HI @sarthak0906, You can install Perceval with the new backend in a virtual env (see details below) or test it from pycharm (you should create a configuration and pass the params, details about how to run Perceval with Pycharm can be found here: https://github.com/inishchith/chaoss-microtasks/tree/master/microtask-1, an example of configuration is at [1])
We can use the IRC channel ( |
Hi @sarthak0906 and @valeriocos, Once you have run the steps mentioned by valeriocos above to setup your environment:
I like to run tests like this using cli:
the test coverage outputs an index.html where I can browse for covered, missed, or skipped code like this: https://nedbatchelder.com/files/sample_coverage_html/index.html |
Nice pointer @aaronnickovich! I use just
|
I'm still trying to complete the task before I go on to test it, |
Hi @valeriocos. I see no activity regarding this issue, I have also been learning about Bitbucket API for some time. I believe implementing a Bitbucket backend similar to github for retrieving Issues and Pull requests might be of use. I have made some progress in implementing the same. |
Thank you @imnitishng ! Before starting please have a look at the API doc. If I remember correctly there were two different versions of the API, which have some pretty big differences. Thanks! |
Well yes there are different versions, but what I am aiming for as of now is the basic support of retrieving issues and PRs from a bitbucket repository (just like github). |
Great @imnitishng !
This thread is fine, thanks! |
The bitbucket backend created by @imnitishng is ported to a new repository perceval-backends/grimoirelab-perceval-bitbucket. The work is still pending, but you can try the backend. Feel free to contribute if you are interested. |
Closing this because there's no activity on this issue. As @vchrombie said, Bitbucket is already available. |
Is it possible to use perceval with bitbucket, sonar and squash?
The text was updated successfully, but these errors were encountered: