qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] enabling smart-http git protocol on git.qemu.org
@ 2018-06-18 10:55 Peter Maydell
  2018-06-18 11:26 ` Gerd Hoffmann
  2018-06-18 13:54 ` Jeff Cody
  0 siblings, 2 replies; 5+ messages in thread
From: Peter Maydell @ 2018-06-18 10:55 UTC (permalink / raw)
  To: Daniel P. Berrangé
  Cc: Iliya Dyachenko, QEMU Developers, Jeff Cody, Stefan Hajnoczi

On 18 June 2018 at 10:47, Daniel P. Berrangé <berrange@redhat.com> wrote:
> On Mon, Jun 18, 2018 at 12:32:01PM +0300, Iliya Dyachenko wrote:
>> Signed-off-by: Iliya Dyachenko <gandalfthewhite@mail.ru>
>> ---
>>  .gitmodules | 32 ++++++++++++++++----------------
>>  1 file changed, 16 insertions(+), 16 deletions(-)
>>
>> diff --git a/.gitmodules b/.gitmodules
>> index 49e9c2e3f4..e6bc732d16 100644
>> --- a/.gitmodules
>> +++ b/.gitmodules
>> @@ -1,48 +1,48 @@
>>  [submodule "roms/vgabios"]
>>       path = roms/vgabios
>> -     url = git://git.qemu-project.org/vgabios.git/
>> +     url = https://git.qemu.org/git/vgabios.git
>
> [snip]
>
> This is highly desirable, however, we cannot do it right now.
>
> The git.qemu.org server is still using the dumb git http protocol, so it
> would be a performance regression over git://
>
> We need the server config fixing to use the smart http protocol.
>
> Essentially this just involves configuring apache to add
>
>   <Directory /usr/libexec/git-core>
>     Allow from all
>   </Directory>
>
>   SetEnv GIT_PROJECT_ROOT /data/git
>
>   ScriptAliasMatch "^/git/(.*\.git/(HEAD|info/refs))$" \
>     /usr/libexec/git-core/git-http-backend/$1
>   ScriptAliasMatch "^/git/(.*\.git/git-(upload|receive)-pack)$" \
>     /usr/libexec/git-core/git-http-backend/$1

Sounds like a good idea -- I've cc'd Jeff and Stefan (who
are the people who care for our git server)...

thanks
-- PMM

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] enabling smart-http git protocol on git.qemu.org
  2018-06-18 10:55 [Qemu-devel] enabling smart-http git protocol on git.qemu.org Peter Maydell
@ 2018-06-18 11:26 ` Gerd Hoffmann
  2018-06-18 14:01   ` Jeff Cody
  2018-06-18 13:54 ` Jeff Cody
  1 sibling, 1 reply; 5+ messages in thread
From: Gerd Hoffmann @ 2018-06-18 11:26 UTC (permalink / raw)
  To: Peter Maydell
  Cc: Daniel P. Berrangé, Jeff Cody, Iliya Dyachenko,
	QEMU Developers, Stefan Hajnoczi

  Hi,

> >   ScriptAliasMatch "^/git/(.*\.git/(HEAD|info/refs))$" \
> >     /usr/libexec/git-core/git-http-backend/$1
> >   ScriptAliasMatch "^/git/(.*\.git/git-(upload|receive)-pack)$" \
> >     /usr/libexec/git-core/git-http-backend/$1
> 
> Sounds like a good idea -- I've cc'd Jeff and Stefan (who
> are the people who care for our git server)...

While being at it: seabios git url has changed, can the mirror be
updated please?  New URL is:

https://git.seabios.org/seabios.git

thanks,
  Gerd

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] enabling smart-http git protocol on git.qemu.org
  2018-06-18 10:55 [Qemu-devel] enabling smart-http git protocol on git.qemu.org Peter Maydell
  2018-06-18 11:26 ` Gerd Hoffmann
@ 2018-06-18 13:54 ` Jeff Cody
  2018-06-18 14:02   ` Daniel P. Berrangé
  1 sibling, 1 reply; 5+ messages in thread
From: Jeff Cody @ 2018-06-18 13:54 UTC (permalink / raw)
  To: Peter Maydell
  Cc: Daniel P. Berrangé, Iliya Dyachenko, QEMU Developers,
	Stefan Hajnoczi

On Mon, Jun 18, 2018 at 11:55:05AM +0100, Peter Maydell wrote:
> On 18 June 2018 at 10:47, Daniel P. Berrangé <berrange@redhat.com> wrote:
> > On Mon, Jun 18, 2018 at 12:32:01PM +0300, Iliya Dyachenko wrote:
> >> Signed-off-by: Iliya Dyachenko <gandalfthewhite@mail.ru>
> >> ---
> >>  .gitmodules | 32 ++++++++++++++++----------------
> >>  1 file changed, 16 insertions(+), 16 deletions(-)
> >>
> >> diff --git a/.gitmodules b/.gitmodules
> >> index 49e9c2e3f4..e6bc732d16 100644
> >> --- a/.gitmodules
> >> +++ b/.gitmodules
> >> @@ -1,48 +1,48 @@
> >>  [submodule "roms/vgabios"]
> >>       path = roms/vgabios
> >> -     url = git://git.qemu-project.org/vgabios.git/
> >> +     url = https://git.qemu.org/git/vgabios.git
> >
> > [snip]
> >
> > This is highly desirable, however, we cannot do it right now.
> >
> > The git.qemu.org server is still using the dumb git http protocol, so it
> > would be a performance regression over git://
> >
> > We need the server config fixing to use the smart http protocol.
> >
> > Essentially this just involves configuring apache to add
> >
> >   <Directory /usr/libexec/git-core>
> >     Allow from all
> >   </Directory>
> >
> >   SetEnv GIT_PROJECT_ROOT /data/git
> >
> >   ScriptAliasMatch "^/git/(.*\.git/(HEAD|info/refs))$" \
> >     /usr/libexec/git-core/git-http-backend/$1
> >   ScriptAliasMatch "^/git/(.*\.git/git-(upload|receive)-pack)$" \
> >     /usr/libexec/git-core/git-http-backend/$1
> 
> Sounds like a good idea -- I've cc'd Jeff and Stefan (who
> are the people who care for our git server)...
>

Thanks, it is a good idea.  I think Peter also brought this up once before,
if I am not mistaken.  I'll work on implementing that today.

-Jeff

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] enabling smart-http git protocol on git.qemu.org
  2018-06-18 11:26 ` Gerd Hoffmann
@ 2018-06-18 14:01   ` Jeff Cody
  0 siblings, 0 replies; 5+ messages in thread
From: Jeff Cody @ 2018-06-18 14:01 UTC (permalink / raw)
  To: Gerd Hoffmann
  Cc: Peter Maydell, Daniel P. Berrangé, Iliya Dyachenko,
	QEMU Developers, Stefan Hajnoczi

On Mon, Jun 18, 2018 at 01:26:22PM +0200, Gerd Hoffmann wrote:
>   Hi,
> 
> > >   ScriptAliasMatch "^/git/(.*\.git/(HEAD|info/refs))$" \
> > >     /usr/libexec/git-core/git-http-backend/$1
> > >   ScriptAliasMatch "^/git/(.*\.git/git-(upload|receive)-pack)$" \
> > >     /usr/libexec/git-core/git-http-backend/$1
> > 
> > Sounds like a good idea -- I've cc'd Jeff and Stefan (who
> > are the people who care for our git server)...
> 
> While being at it: seabios git url has changed, can the mirror be
> updated please?  New URL is:
> 
> https://git.seabios.org/seabios.git
> 
> thanks,
>   Gerd
> 

Thanks Gerd.

The seabios upstream url has been updated.  Let me know if there are any
issues.


-Jeff

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] enabling smart-http git protocol on git.qemu.org
  2018-06-18 13:54 ` Jeff Cody
@ 2018-06-18 14:02   ` Daniel P. Berrangé
  0 siblings, 0 replies; 5+ messages in thread
From: Daniel P. Berrangé @ 2018-06-18 14:02 UTC (permalink / raw)
  To: Jeff Cody
  Cc: Peter Maydell, Iliya Dyachenko, QEMU Developers, Stefan Hajnoczi

On Mon, Jun 18, 2018 at 09:54:10AM -0400, Jeff Cody wrote:
> On Mon, Jun 18, 2018 at 11:55:05AM +0100, Peter Maydell wrote:
> > On 18 June 2018 at 10:47, Daniel P. Berrangé <berrange@redhat.com> wrote:
> > > On Mon, Jun 18, 2018 at 12:32:01PM +0300, Iliya Dyachenko wrote:
> > >> Signed-off-by: Iliya Dyachenko <gandalfthewhite@mail.ru>
> > >> ---
> > >>  .gitmodules | 32 ++++++++++++++++----------------
> > >>  1 file changed, 16 insertions(+), 16 deletions(-)
> > >>
> > >> diff --git a/.gitmodules b/.gitmodules
> > >> index 49e9c2e3f4..e6bc732d16 100644
> > >> --- a/.gitmodules
> > >> +++ b/.gitmodules
> > >> @@ -1,48 +1,48 @@
> > >>  [submodule "roms/vgabios"]
> > >>       path = roms/vgabios
> > >> -     url = git://git.qemu-project.org/vgabios.git/
> > >> +     url = https://git.qemu.org/git/vgabios.git
> > >
> > > [snip]
> > >
> > > This is highly desirable, however, we cannot do it right now.
> > >
> > > The git.qemu.org server is still using the dumb git http protocol, so it
> > > would be a performance regression over git://
> > >
> > > We need the server config fixing to use the smart http protocol.
> > >
> > > Essentially this just involves configuring apache to add
> > >
> > >   <Directory /usr/libexec/git-core>
> > >     Allow from all
> > >   </Directory>
> > >
> > >   SetEnv GIT_PROJECT_ROOT /data/git
> > >
> > >   ScriptAliasMatch "^/git/(.*\.git/(HEAD|info/refs))$" \
> > >     /usr/libexec/git-core/git-http-backend/$1
> > >   ScriptAliasMatch "^/git/(.*\.git/git-(upload|receive)-pack)$" \
> > >     /usr/libexec/git-core/git-http-backend/$1
> > 
> > Sounds like a good idea -- I've cc'd Jeff and Stefan (who
> > are the people who care for our git server)...
> >
> 
> Thanks, it is a good idea.  I think Peter also brought this up once before,
> if I am not mistaken.  I'll work on implementing that today.

To check it is working correctly once configured, use the following:

  $ curl -si https://git.qemu.org/git/capstone.git/info/refs?service=git-upload-pack | grep --binary-files=text '^Content-Type'


Once configured correctly that should display:

   Content-Type: application/x-git-upload-pack-advertisement

Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-06-18 14:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-18 10:55 [Qemu-devel] enabling smart-http git protocol on git.qemu.org Peter Maydell
2018-06-18 11:26 ` Gerd Hoffmann
2018-06-18 14:01   ` Jeff Cody
2018-06-18 13:54 ` Jeff Cody
2018-06-18 14:02   ` Daniel P. Berrangé

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).