•  
     
    story #1447 Autosync a Tuleap repo with its Gerrit clone
Summary
Tuleap Gerrit user
Autosync a Tuleap repo with its Gerrit clone
it stays in sync
For creation see 1434

Given that a Tuleap repo was just transformed to a Gerrit repo

= A hook is set up on Gerrit to push to the tuleap repo, on every change =
Given I transform the repo Firefox/mobile to a gerrit repo
Then a hook is deployed to gerrit.tuleap.net so that updates to
| refs/heads/* |
| refs/changes/* |
| refs/tags/* |
are pushed Firefox/mobile

= All activity in Gerrit is visible in the Tuleap repo =
Given I submit a patch to Gerrit to refs/for/master
And Gerrit assigns that to refs/changes/71/1
When I browse the commits in Tuleap I can see the commits to the branch refs/changes/71/1



= Gerrit replication =
As an alternative, we could use gerrit replication.
So far it's a plugin for gerrit 2.5 and requires a build of the package (not distributed): https://groups.google.com/d/topic/repo-discuss/n6u1xEjFGxU/discussion

-> in any cases, it requires a specific gerrit configuration to works.

= Fetch gerrit content on Tuleap side =
On Tuleap
$> git remote add gerrit "ext::ssh -p 29418 -i $HOME/.ssh/id_rsa-gerrit admin-shunt.cro.enalean.com@gerrit-shunt.cro.enalean.com %S shunt.cro.enalean.com-gerrit-devs/funky"
$> git fetch gerrit -q
$> git update-ref refs/heads/master refs/remotes/gerrit/master

Reference: http://stackoverflow.com/questions/5559321/fetch-all-in-a-git-bare-repository-doesnt-synchronize-local-branches-to-the/5559586#5559586

Alternative with gitolite v3: https://github.com/sitaramc/gitolite/blob/master/src/triggers/upstream

-> what about Tuleap specific things
--> Extract of references, email notification, CI trigger


Empty
Empty
Status
Empty
Done
Development
  • [ ] Does it involves User Interface? 
  • [ ] Are there any mockups?
  • [ ] Are permissions checked?
  • [ ] Does it need Javascript development?
  • [ ] Does it need a forge upgrade bucket?
  • [ ] Does it need to execute things in system events?
  • [ ] Does it impact project creation (templates)?
  • [ ] Is it exploratory?
Empty
Details
#1447
Johan Martinsson (johan)
2013-01-22 10:11
2012-09-19 12:02
710

References
Referencing story #1447
Referenced by story #1447

Artifact

art #1434

Follow-ups

User avatar
  • Status changed from Ready (stalled) to Done
  • Checklist set to
  • Permissions set to all_users
  • Category set to
User avatar
  • Acceptance criteria
    Something went wrong, the follow up content couldn't be loaded
    Only formatting have been changed, you should switch to markup to see the changes
User avatar
  • Acceptance criteria
    Something went wrong, the follow up content couldn't be loaded
    Only formatting have been changed, you should switch to markup to see the changes
User avatar
  • Acceptance criteria
    Something went wrong, the follow up content couldn't be loaded
    Only formatting have been changed, you should switch to markup to see the changes
User avatar
  • Acceptance criteria
    Something went wrong, the follow up content couldn't be loaded
    Only formatting have been changed, you should switch to markup to see the changes
User avatar
  • I want to
    -Setup a new Gerrit repo from an existing Tuleap repo 
    +Autosync a Tuleap repo with its Gerrit clone 
  • So that
    Something went wrong, the follow up content couldn't be loaded
    Only formatting have been changed, you should switch to markup to see the changes
  • Acceptance criteria
    Something went wrong, the follow up content couldn't be loaded
    Only formatting have been changed, you should switch to markup to see the changes
User avatar
  • Acceptance criteria
    Something went wrong, the follow up content couldn't be loaded
    Only formatting have been changed, you should switch to markup to see the changes
User avatar
I don't understand the diffrence between "transform a tuleap repo into a gerrit project (art #1434) and setup a new gerrit repo from an existing tuleap repo". To me, it means the very same thing.

What is an "interactive user" ?

Please don't use Tuleap as an example, it's confusing (we don't know if you are talking about an example or feature of tuleap)

  • Acceptance criteria
    Something went wrong, the follow up content couldn't be loaded
    Only formatting have been changed, you should switch to markup to see the changes