repo init -u https://android.googlesource.com/platform/manifest -b android-13.0.0_r30 --mirror
repo sync
git push ssh://gerritadmin@localhost:29418/framework/base +refs/heads/android13-qpr* +refs/tags/android-13*
Hi Sriram,
On Thu, 2 Mar 2023 at 08:44, Sriram G <mgs...@gmail.com> wrote:
>
> Hello everybody,
> I am following the steps mentioned in the following thread
>
> https://groups.google.com/g/repo-discuss/c/FS0kXLALrCU/m/bHB8chiSAQAJ
>
> I am facing an issue. The AOSP mirror could be synced using the following command
We use our own script for mirroring but we had to tweak access
settings on gerrit, see below
> repo init -u https://android.googlesource.com/platform/manifest -b android-13.0.0_r30 --mirror
>
> repo sync
>
>
> Since we only want to have the Android 13 as the base, I wanted to push refs corresponding to those only. As a simple test I tried pushing selected refs for frameworks/base (about 4.7GB db size) using the following command. The idea was to get this working before I do a "repo forall"
>
> git push ssh://gerritadmin@localhost:29418/framework/base +refs/heads/android13-qpr* +refs/tags/android-13*
>
>
> I am encountering multiple issues and have been iterating.
>
> 1. android-13.0.0_r20 -> android-13.0.0_r20 (prohibited by Gerrit: not permitted: forge committer) - I worked around this by not pushing the tags and only the heads
we have the following settings for refs/heads/* and refs/tags/*
Allowed for service users:
Create Annotated Tag
Forge Author Identity
Forge Committer Identity
Forge Server Identity
Push Merge Commit
Create Reference
Create Signed Tag
Create Annotated Tag
> 2. android13-qpr1-s1-release (more than 10000 commits, and skip-validation not set - This I could work around by passing an option
> 3. I once again got an error stating the skip-validation is not enabled on Gerrit. I had to enable Forge Server Identity
> 4. And now I am getting a timeout limit
use these git options when pushing:
-o deadline=10m -o skip-validation
We have this setting on gerrit side:
git config -f /path/to/gerrit/etc/gerrit.config receive.timeout 10min
>
> I have the following question:
> 1. Is there a standard Gerrit Configuration available that is recommended for large projects such as AOSP Mirroring
> 2. Does anybody have any experiences / learnings / best practices to share with setting up AOSP mirroring?
> 3. Any suggestions on how the first problem can be addressed. I can confirm that "Forge Committer Identity" is allowed for Administrators
Use a dedicated user that belongs to the "service-users" group.
Grant the permissions above to the service-users group
> I know the approach works as I could do it successfully for simpler repos that I have experimented with.
Our first attempt was to have a full mirror of
https://android.googlesource.com/platform/manifest, 800GB.
Now we do partial mirror, we only mirror a few AOSP branches and their
associated tags.
--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to a topic in the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/repo-discuss/zC4PmfSLoUM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to repo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/0964cab6-9a7f-4f62-a9f5-3b2f68a6675dn%40googlegroups.com.