we are a group of students who want to analyse Gerrit data for a university project in order to gain some insights in the code reviewing process of OSS projects.
Currently, we are trying to retrieve all data from Android's Gerrit repo but we ran into the following error:
"cannot exceed 10000 results (after filtering for visibility)"
We request 500 changes/page, usually around the 7th page we receive this error - which is of course much fewer than 10000 results.
Our script works on other Gerrit repos.
Is the access to older reviews restricted?
How can we solve that?
Can the Gerrit admins maybe directly provide us with Android's Gerrit data?
We are looking forward to every help we can get.
Thank you already in advance,
Johannes
--
--
To unsubscribe, email repo-discuss+unsubscribe@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
> How can we solve that?
Gerrit has a second, perhaps less documented, API which is based on git.You can list all the codereviews by listing refs in the refs/changes/... namespace, e.g.:$ git ls-remote https://chromium.googlesource.com/chromium/src.git | grep refs/changes/...478c6ea91d36d63d32b6cc913cd187c048fd7533 refs/changes/00/453300/1cab5badec41bc502f8688e3607f08b24aa80a389 refs/changes/00/453300/26ce03c4a04d938a210a15040b95f0347d37c42bb refs/changes/00/453300/meta59c9215c00d64d99f312a8c8e2a22651739c5f2b refs/changes/00/455000/1e47ad8ecb6a3ea2299efe049a2ccf6b3fe09457c refs/changes/00/455000/25039cb03dd576cb52f1a8fc8bb7c60787225119e refs/changes/00/455000/metaFor each CL there are going to be 1 + num_patchsets refs.As the name suggests refs/changes/00/453300/meta refers to some metadata that describes the history of the CL crrev.com/c/00453300. For instance$ git fetch origin refs/changes/00/453300/meta$ git log -p FETCH_HEADcommit 6ce03c4a04d938a210a15040b95f0347d37c42bbAuthor: Jeff Carpenter <1168241@3ce6091f-6c88-37e8-8c75-72f92ae8dfba>Date: Thu Apr 13 20:12:26 2017Update patch set 2AbandonedPatch-set: 2Status: abandonedTag: autogenerated:gerrit:abandoncommit d1e1d1340ce2eb7045c15e556528330318fffc9dAuthor: Jeff Carpenter <1168241@3ce6091f-6c88-37e8-8c75-72f92ae8dfba>Date: Mon Apr 3 21:51:29 2017Update patch set 2RestoredPatch-set: 2Status: newTag: autogenerated:gerrit:restoreWhile refs/changes/00/453300/1, refs/changes/00/453300/2 and so on are the actual patchsets.Depending on what you need you can either use purely the git interface (just pull all the refs and analyze locally) or mix the git interface to list CLs and some top-level metadata, and once you have the CL number use the REST api to get the rest.Hope it helps,Primiano
On Wed, Oct 18, 2017 at 10:33 AM <johann...@gmail.com> wrote:
Hi everyone,
we are a group of students who want to analyse Gerrit data for a university project in order to gain some insights in the code reviewing process of OSS projects.
Currently, we are trying to retrieve all data from Chromium's Gerrit repo but we ran into the following error:
"cannot exceed 10000 results (after filtering for visibility)"
We request 500 changes/page, usually around the 7th page we receive this error - which is of course much fewer than 10000 results.
Our script works on other Gerrit repos.
Is the access to older reviews restricted?
How can we solve that?
Can the Gerrit admins maybe directly provide us with Chromium's Gerrit data?
We are looking forward to every help we can get.
Thank you already in advance,
Johannes
----
You received this message because you are subscribed to the Google Groups "infra-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to infra-dev+...@chromium.org.
To post to this group, send email to infr...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/infra-dev/f4263098-ff09-4c6f-8911-be96675c8ae9%40chromium.org.
You received this message because you are subscribed to the Google Groups "infra-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to infra-dev+...@chromium.org.
To post to this group, send email to infr...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/infra-dev/CA%2ByH71e_Z13Ny_dX4zScQeefzGzVvvi1RBY6aMtKDnhQL%3Dq%3Dgw%40mail.gmail.com.