Project

General

Profile

Misc #14632

[ANN] git.ruby-lang.org

Added by hsbt (Hiroshi SHIBATA) 6 months ago. Updated 12 days ago.

Status:
Assigned
Priority:
Normal
[ruby-core:86304]

Description

I prepared git.ruby-lang.org. It's official ruby repository of Git.

https://git.ruby-lang.org/ruby.git/

This repository is read-only yet. I start to migrate svn to git step by step.

  1. Migrate toolchain like tool/make-snapshot to git.ruby-lang.org from svn.ruby-lang.org.
  2. Improve cgit and access configuration.
  3. To support git repository for bug.ruby-lang.org. PS. redmine could not support remote git repository.
  4. Make write-access mode to git.ruby-lang.org. and make the read-only mode to svn.ruby-lang.org.

Related issues

Related to Ruby trunk - Misc #10547: How to move the ruby project to gitFeedback

History

#1 Updated by hsbt (Hiroshi SHIBATA) 6 months ago

  • Related to Misc #10547: How to move the ruby project to git added

#2 [ruby-core:86312] Updated by vo.x (Vit Ondruch) 6 months ago

Wonderful. Thx for working on this.

Have you considered to use Pagure 1 as git fronted instead of cgit?

#3 [ruby-core:86313] Updated by normalperson (Eric Wong) 6 months ago

hsbt@ruby-lang.org wrote:

I prepared git.ruby-lang.org. It's official ruby repository of Git.

Thank you!

  1. To support git repository for bug.ruby-lang.org. PS. redmine could not support remote git repository.

I guess you will need to keep a mirror on the redmine server?
Sorry, I'm not familiar with redmine setup; but I know git :)

#4 [ruby-core:86314] Updated by normalperson (Eric Wong) 6 months ago

v.ondruch@tiscali.cz wrote:

Have you considered to use Pagure [1] as git fronted instead of cgit?

[1]: https://pagure.io/pagure

Pagure would be more a replacement for redmine than a replacement
for cgit, I think. In any case, I prefer loose coupling between
version control and messaging platform.

#5 [ruby-core:86321] Updated by Anonymous 6 months ago

Dne 26.3.2018 v 23:30 Eric Wong napsal(a):

v.ondruch@tiscali.cz wrote:

Have you considered to use Pagure [1] as git fronted instead of cgit?

[1]: https://pagure.io/pagure
Pagure would be more a replacement for redmine than a replacement
for cgit, I think.

It might be of course. It depends which features you enable. But for
example for Fedora sources [1], Pagure is used as git frontend allowing
browsing and accepting PR, managing users, etc, but Bugzilla is used as
a bug tracker. I can imagine similar setup for Ruby, where Redmine is
still used for bug reporting.

Vít

[1] https://src.fedoraproject.org/rpms/ruby
[2] https://bugzilla.redhat.com/

#6 [ruby-core:86351] Updated by shevegen (Robert A. Heiler) 6 months ago

\o/

Hiroshi for president as well!

\o~

~o/

\o/

#7 [ruby-core:86418] Updated by Anonymous 6 months ago

hello,

On 2018-03-26 11:47:38 +0000, hsbt@ruby-lang.org wrote:

Issue #14632 has been reported by hsbt (Hiroshi SHIBATA).


Misc #14632: [ANN] git.ruby-lang.org
https://bugs.ruby-lang.org/issues/14632
[…]
I prepared git.ruby-lang.org. It's official ruby repository of Git.

https://git.ruby-lang.org/ruby.git/

Thanks a lot for this, I'm learning SVN, but still more comfortable
with git.

I had a few issues to retrieve the new repository:

$ git clone git://git.ruby-lang.org/ruby
Cloning into 'ruby'...
load: 0.18 cmd: git 61356 [connec] 4.90r 0.00u 0.01s 0% 3872k
fatal: unable to connect to git.ruby-lang.org:
git.ruby-lang.org[0: 52.192.80.219]: errno=Operation timed out
zsh: exit 128 git clone git://git.ruby-lang.org/ruby

$ nc -v git.ruby-lang.org 9418
nc: connect to git.ruby-lang.org port 9418 (tcp) failed: Operation timed out
zsh: exit 1 nc -v git.ruby-lang.org 9418

I could not connect using git protocol, but maybe it's normal and it
won't be supported? I then attempted HTTPS, but it was a bit slow:

$ time git clone https://git.ruby-lang.org/ruby.git ruby
Cloning into 'ruby'...
load: 0.36 cmd: git-remote-https 61502 [select] 20.97r 0.45u 0.67s 3% 12512k
load: 0.22 cmd: git-remote-https 61502 [select] 51.96r 0.97u 1.41s 2% 15456k
load: 0.96 cmd: git 61525 [running] 60.56r 84.08u 6.33s 100% 178776k
load: 0.96 cmd: git-remote-https 61502 [running] 193.68r 2.17u 2.95s 1% 15996k
load: 0.25 cmd: git-remote-https 61502 [select] 308.69r 6.26u 5.17s 5% 121764k
Checking connectivity: 396310, done.
git clone https://git.ruby-lang.org/ruby.git ruby 108.45s user 14.47s system 26% cpu 7:46.62 total

I'm not complaining, I can of course wait and won't clone it
everyday. But this surprised me a little, am I doing something wrong?
Is it the correct way to fetch this new repository?

Thanks again.

--
Thibault Jouan

#8 [ruby-core:86427] Updated by hsbt (Hiroshi SHIBATA) 6 months ago

I could not connect using git protocol, but maybe it's normal and it
won't be supported? I then attempted HTTPS, but it was a bit slow:

git.r-l.o only supports https protocol now. And I try to improve it clone speed.

#9 [ruby-core:86428] Updated by hsbt (Hiroshi SHIBATA) 6 months ago

Hi all.

I added git.ruby-lang.org to this redmine project.

You can refer git ref like https://bugs.ruby-lang.org/projects/ruby-trunk/repository/ruby-git/revisions/5896936f2ca0c16a68edb557a122125653fa89a7
Redmine expand commit:ruby-git|5896936f2ca0c16a68edb557a122125653fa89a7 to above URL now. (This long syntax is not necessary when git repository was promoted default repository. )

I may change repository identifier (ruby-git ) until completing git migration.

#10 [ruby-core:86431] Updated by normalperson (Eric Wong) 6 months ago

hsbt@ruby-lang.org wrote:

git.r-l.o only supports https protocol now. And I try to
improve it clone speed.

If you haven't already, enable repack.writeBitmaps (and repack)
to speed up the counting objects phase.

#11 [ruby-core:86941] Updated by hsbt (Hiroshi SHIBATA) 5 months ago

If you haven't already, enable repack.writeBitmaps (and repack)

Thanks Eric. I invoked repack and set repack.writeBitmaps to enable on git.r-l.o.

#12 [ruby-core:88988] Updated by hsbt (Hiroshi SHIBATA) 12 days ago

Current status is here:

  1. Migrate toolchain like tool/make-snapshot to git.ruby-lang.org from svn.ruby-lang.org.

Not yet, We need to update make-snapshot and backport tool for stable branches.

  1. Improve cgit and access configuration.

Done.

  1. To support git repository for bug.ruby-lang.org. PS. redmine could not support remote git repository.

Done.

  1. Make write-access mode to git.ruby-lang.org. and make the read-only mode to svn.ruby-lang.org.

Not yet.

And We need to configure git-hook for auto-style by svn bot and github sync tool.

Also available in: Atom PDF