Page 2 of 3

Re: [INFO] Moving repository to OSDN

Posted: Tue Jun 04, 2019 12:39 pm
by 0x3333
@mobyfab, how often is the official mirror updated? Thanks

Re: [INFO] Moving repository to OSDN

Posted: Tue Jun 04, 2019 2:49 pm
by mobyfab
Every 30 minutes.

I am still syncing tags now so it will take a couple hours before I enable it. (I forgot how horribly slow SVN was...)

Plan is to have all release tags and last 3 stable release branches, basically the ones that are supported.

Re: [INFO] Moving repository to OSDN

Posted: Tue Jun 04, 2019 2:52 pm
by 0x3333
Seems more than enough, I need the latest commits in a week fashion not more than that. Thanks for the clarification.

Re: [INFO] Moving repository to OSDN

Posted: Tue Jun 04, 2019 3:30 pm
by Giovanni
OSDN should be much faster, a rate of 30 minutes should not be a problem.

Giovanni

Re: [INFO] Moving repository to OSDN

Posted: Tue Jun 04, 2019 5:12 pm
by mobyfab
It took about 5 hours to clone all releases tags and 4 branches (all commits individually, to generate git commits) on a 300mb/s server in Paris.
SVN is very dependent on latency because of all the separate network requests for each commit.
I skipped chibistudio and old/deprecated branches because it took too long.

It takes around 14-16 seconds to clone the GIT repo with all branches and commits. (everything)

I've enabled sync every 30mn now that git is up to date.
Let me know if you need other branches or tags.

Re: [INFO] Moving repository to OSDN

Posted: Tue Jun 04, 2019 5:51 pm
by Giovanni
Does it clone the whole repository each time or just new revisions?

I sync the OSDN one with a private subversion every 4 hours for backup and it takes seconds.

Giovanni

Re: [INFO] Moving repository to OSDN

Posted: Tue Jun 04, 2019 6:03 pm
by mobyfab
It only get the newest revisions, then generate new git commits.
I don't expect the update to take more than a few seconds now.

Individual revisions don't take that much time to fetch, but when you have over 15000 of them to get on a server half across the planet...

Re: [INFO] Moving repository to OSDN

Posted: Wed Jun 05, 2019 1:39 pm
by ceremcem
@mobyfab

I'm redirected here from viewtopic.php?p=35538. It's very surprising to come across with a completely new ChibiOS repo suddenly on Github. What is the rationale for this change? Can't we just keep using "old" repo?

Re: [INFO] Moving repository to OSDN

Posted: Wed Jun 05, 2019 6:42 pm
by mobyfab
ceremcem wrote:@mobyfab

I'm redirected here from viewtopic.php?p=35538. It's very surprising to come across with a completely new ChibiOS repo suddenly on Github. What is the rationale for this change? Can't we just keep using "old" repo?


We can't keep it because the official svn changed and git-svn uses the complete svn url + revision to build its history

old:
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12774 27425a3e-05d8-49a3-a47f-9c15f0e5edd8

new:
git-svn-id: https://svn.osdn.net/svnroot/chibios/trunk@12774 27425a3e-05d8-49a3-a47f-9c15f0e5edd8


I'm trying to see what can be done to keep the old one but don't hold your breath ;)

Re: [INFO] Moving repository to OSDN

Posted: Thu Jun 06, 2019 2:09 am
by mobyfab
After battling with git-svn for a few hours and a ton of shady hacks I've managed to update the original mirror, no need to re-fork.