Age | Commit message (Collapse) | Author |
|
Somehow this script didn't get updated for python, so let's
do that now.
Change-Id: Ie4109ec6990fb1b9346f51cb6513d129301d6c66
Signed-off-by: Kelley Spoon <kelley.spoon@linaro.org>
|
|
The way this script was previously working is that
we define several DESTINATIONs with one acting
as a default. The destination for git pushes can
be changed via command line option, but all pushes
are still sent to the same location.
We have a situation with an android mirror where we do
*not* want to push it through gerrit as it is served
only via gitolite. Since the upstream contains around
1060 repos, we prefer to push it straight to disk and
leave gerrit out instead of creating a huge load for
the server.
This change allows us to specify the repo_root variable
in a host section to bypass the default DESTINATION.
Change-Id: Ibbb5470b632e29598f4a8d1e77b1b9d955067755
|
|
In gerrit 2.16 there was a slight behavior change
in the gerrit 'ls-projects' command in that it
does not appear to recurse through parent projects
to list children unless you explicitly request it
with the '--all' object.
This was causing our git-gerrit-mirror script to
attempt to recreate multiple projects that already
existed.
Change-Id: I5e66a860e72303580e9ad577a24831ab2beb6c46
|
|
Revert to previous push command in order to avoid
deleting local branches.
Change-Id: I94de76608bf95e328e9445c8cd38a3457bc63274
|
|
Enable pruning on fetch from origin and push
to miror in order to remove obsolete branches
and prevent unused objects from accumulating.
Change-Id: Id602431834d211655183b630ef0636ac912ffff9
|
|
This is in place to reduce crontab email tag.
|
|
Now name should be just a literal argument.
Change-Id: I8bd56c4beb4b610e42adfb548df98e3d3d7aa071
|
|
Fix faulty detection logical of local vs remote Gerrit vs remote something
from previous commit.
Change-Id: I29807891440754470b50c9e78dc93c9caeed2b0e
|
|
Thus, it resolves issue with where seed manifest comes from, and how to
keep it up to date.
Change-Id: I9e0458a9120d2b72d8d4d405d367037ca180e3d5
|
|
Previously, "create" command worked only if mirroring destination was gerrit.
Allow it to work also for the case of local filesystem repo tree.
Change-Id: I7afbe3374c3c9de1d93e0650e4eae4bf3923dbdc
|
|
Sometimes different downstream projects may need different mirrors of the
same upstream tree. So, just allow to have different mirroring entries for
the same host, differentiated with "#slug".
Change-Id: I8a2edd0a58e22965ab896d3c5839623b0f844840
|
|
Change-Id: Ia03899d2a10741e8af35005ff8a4a15cb6a30e80
|
|
I noticed a bug where a mapping like:
96boards/android_device_linaro_hikey = device/linaro/hikey
would cause an error in the grokmirror logic because it assume the local
repo was named "96boards/android_device_linaro_hikey". This fixes the
problem in a few repos.
Change-Id: I063f9b0d9cc15f190d6e249ee9df3b03dbd51b4c
|
|
Change-Id: I9e74ab5ad21c7ce4dd2a48250eb224d879400982
|
|
Our production code runs from the directory containing this repo, which
means its needs write-access so it can create the cache file. By
changing the cache file location, we are able to clean up our deployment
slightly.
Change-Id: I2555684a7b955728d2ea23e119143233927a8bc5
|
|
Change-Id: Ie81887b970b50ac8fe1d8363e30eb6dce78504d8
|
|
There are tons of pep8 and pyflakes issues in this file, making it a
little hard to do checks against new changes.
Change-Id: Id7137d234c1d6385ba588ad38bef1896f60716b9
|
|
The fact we miss errors from the ssh command were causing us to see tons
of error messages like:
fatal: internal server error
fatal: project "platform/frameworks/multidex" exists
fatal: project "platform/external/eclipse-basebuilder" exists
fatal: project "platform/external/safe-iop" exists
fatal: project "platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8"
exists
The only real error was not knowing what projects gerrit knew about.
This helps us exit when that happens so we can further debug if needed.
Change-Id: I3d41778abff1bc5c9f12753a24b0143c3a5dd2a1
|
|
Seeing an error in our cron job:
Cloning into bare repository 'selinux.git'...
sh: 1: grok-manifest: not found
It seems /usr/local/bin isn't in the path when this is executed,
so lets pass the full path to the grok-manifest script.
Change-Id: I1c102749e60e8d87dcb2bff0c38db989c1ca497e
|
|
This allows us to update the grok manifest file when changes are
made to a repo.
Change-Id: If9a47f3502e1ae0e7fa2b285231f6cc71baf3d5c
|
|
When run with local push, gitolite hooks apparently lack some information
available when run with SSH wrapper, and misbehave (error out, etc.)
Change-Id: Ie182efbdf636e07c7a2cfd9436c04310cdfba3a3
|
|
Progress indicator rendering just contaminates logs.
Change-Id: I51666f2a6305ec465f718db29a3a2218f27a6474
|
|
Change-Id: I964a7691c010e41b2e8e1d08ab624938aff4c860
|
|
Change-Id: I9545117d5b7ff3a40b875818f8e67b6ba58f2cd0
|
|
Actual config is now managed by Ansible in ansible-playbooks.git .
Change-Id: If895fca2b1b6c6b8148a9707ba893fcec01e8f04
|
|
Change-Id: I7167cd3f2768a06dce9b4a8f80e0de8d494293de
|
|
Useful for debugging.
Change-Id: I99297b61d15feeb1b1ccf2742fb947e082f97aa2
|
|
Paths in URLs are now allowed, and will be encoded in top-level mirror dir
name (with slashes replaced by double-underscores).
Change-Id: Ia63bf33f0ebd102932ce0ecb3c4075f27f8c1b98
|
|
Change-Id: Ic657ddd36c0ef0f9ad1dd0c9ff9ae93727d4dee5
|
|
Change-Id: I3e2077d205ae23cccf75eff683167e68f4fc370e
|
|
For example "* = subtree/*" means "mirror all source project under
subtree/ on target (multi-component source paths are preserved of course,
for example foo/bar/baz.git becomes subtree/foo/bar/baz.git on target)".
Change-Id: Ic54605ceeae24e0add70081044e9b3cd6b7b296b
|
|
Manifest is inherently per source tree, so passing it globally was a hack.
Change-Id: I0686c400bddb3c032250065115688f21df841172
|
|
* As per Launchpad bug 1311008.
Change-Id: I5a0492b430ee482d9acf260b9f1c12eaa8bb7589
|
|
Change-Id: I223705a4413c26b43db14996e233132d0d2fbb82
|
|
* Use new mirror directory to store upstream mirrors.
This is the same directory layout used on git.l.o to
store mirrors.
* Added checks if directories exist.
Change-Id: I2cc2093a94c90553dc1946d2505326139b375915
|
|
Change-Id: Ib99911541e04cd9899290ea803e94a756b3a026f
|
|
Change-Id: I16451288176f74a9820ce1a7adca8cec54018d97
|
|
Fixes https://bugs.launchpad.net/linaro-android-infrastructure/+bug/1268903
Change-Id: I184fd61d02bb1e7e658d9ae4aa2026bae81dec0e
|
|
|
|
|
|
|
|
|
|
|
|
https://git.kernel.org/cgit/linux/kernel/git/rostedt/trace-cmd.git
|
|
|
|
|
|
"Useless" in our cronjob, not in a generic reusable tool.
|
|
|
|
|
|
android-review.googlesource.com
It's just not supported (blocked) there.
|