[U-Boot-Custodians] git access - move to gitlab?

Daniel Schwierzeck daniel.schwierzeck at gmail.com
Wed Mar 27 15:28:12 UTC 2019


Hi Wolfgang,

Am 26.03.19 um 14:53 schrieb Neil Armstrong:
> On 26/03/2019 12:15, Tom Rini wrote:
>> On Tue, Mar 26, 2019 at 11:52:30AM +0100, Wolfgang Denk wrote:
>>> Dear Tom,
>>>
>>> In message <20190325154727.GJ18421 at bill-the-cat> you wrote:
>>>>
>>>>> Yes, I'm aware of this.  I know that redirecting the URL for cloning
>>>>> works, so you will still be able to do - say - 
>>>>>
>>>>> 	git clone git://git.denx.de/u-boot-ti.git
>>>>>  
>>>>> but I don't think your example will work out of the box.
>>>>>
>>>>> But then, even if we upgrade the git server and switch from the old
>>>>> gitweg to cgit (for example) this would break.
>>>>>
>>>>> I'm not even sure we should try to invest the efforts for such a
>>>>> (basically undocumented ?) API.
>>>>
>>>> We're getting out of my general area of expertise but shouldn't you be
>>>> able to tell ngix or similar to rewrite requests for ?p=REPO;... into
>>>> whatever the form the gitlab view is?
>>>
>>> With sufficient effort this is most probably possible, but then -
>>> how complete does such suppot have to be?  There are several
>>> parameters ("p=", "a=", "f=", "h=", "hb=", "s=", "sr=", "st="...).
>>> If we try to support all parameters with all options this becomes
>>> more than some simple address rewriting.
>>
>> My concern is that we have links in ML archives as well as stack
>> overflow and similar pointing to git locations.  While on the one hand,
>> I think covering all of those parameters is a single regex, it'll get
>> complex and maybe long term unmaintainable.  So, some examples I think
>> we really must have still work would be:
>> https://git.denx.de/?p=u-boot.git;a=blob;f=board/nokia/rx51/rx51.c;h=76f6ede38c62d8b9811c717b59762b5d584fb49c;hb=HEAD#l71
>> https://git.denx.de/?p=u-boot.git;a=tree
>> https://git.denx.de/?p=u-boot.git;a=blobdiff;f=include/configs/nokia_rx51.h;h=c9901e52510110ea34bd1ac6bcdc2a90a9bada8d;hp=6312ed737c7104b331c11c8e88808fcc10654718;hb=278b90ce786f73faf29aa522d5d101e1da006378;hpb=7c8f00e484658c673d32d8422c96cb64bb571063
>>
>> Perhaps if this ends up being too hard to rewrite is it worth looking at
>> keeping an r/o copy of gitweb at the state prior to switchover, so old
>> links still work but for anything new people would need to use a gitlab
>> link instead?
> 
> Freedesktop kept the cgit interface to keep the links working, but they mirror
> the gitlab repo with the cgit repos, look at the mesa git :
> https://cgit.freedesktop.org/mesa/mesa/
> 
> With this you would be able to keep the https://git.denx.de valid.
> 
> Here is their migration blog post : https://www.fooishbar.org/blog/gitlab-fdo-introduction/
> 

I also suggest to keep a read-only copy of the mainline tree with
anongit and gitweb because there are likely thousands of CI systems,
wiki articles, stack overflow questions etc. referencing the anongit or
gitweb URLs. Also with a read-only server you could get rid of SSH
access and management to simplify the server setup and maintenance. And
once the traffic volume on git.denx.de is starting to decrease due to
people moving to Gitlab, the performance of the old server doesn't
matter anymore and you could migrate the old server to some container,
VM or new but small server.

-- 
- Daniel


More information about the U-Boot-Custodians mailing list