Open Bug 858547 Opened 11 years ago Updated 8 years ago

Please mirror ssh://gitolite3@git.mozilla.org/build/tooltool.git to git@github.com:mozilla/build-tooltool and ssh://hg.mozilla.org/build/tooltool

Categories

(Developer Services :: General, task)

x86_64
Linux
task
Not set
normal

Tracking

(Not tracked)

People

(Reporter: rail, Unassigned)

References

Details

(Whiteboard: [kanban:engops:https://mozilla.kanbanize.com/ctrl_board/6/688] )

See bug 768123 for the details.
Bonus points for setting a description on the hg repo that points back to github as the RoR.
We don't support github as a RoR location (b2g has an exemption).

We can make this the test case for RoR on git.m.o, with conversion to hg.m.o, or we can handle in the traditional manner of RoR on hg.m.o and read only mirror on github.

Let me know which direction you'd like to proceed.
Flags: needinfo?(rail)
Maybe we should use git.m.o instead? Without any mirroring at all... Any objections/concerns?
Flags: needinfo?(rail)
I'll work to get this set up - this will be the first "commit on git.m.o" so there may be some details to work out.

I would recommend that we mirror to hg.m.o for several reasons:
 a) an hg.m.o repo can be indexed by mxr (no such support for git.m.o)
 b) I believe it's good to have a centralized place to see all of our content (personal opinion)
Status: NEW → ASSIGNED
Depends on: 859410
(In reply to Hal Wine [:hwine] from comment #4)
> I'll work to get this set up - this will be the first "commit on git.m.o" so
> there may be some details to work out.

We already use https://git.mozilla.org/?p=build/release-kickoff.git;a=summary as RoR, no mirroring is set up.

> I would recommend that we mirror to hg.m.o for several reasons:
>  a) an hg.m.o repo can be indexed by mxr (no such support for git.m.o)

Good point...

>  b) I believe it's good to have a centralized place to see all of our
> content (personal opinion)

Yup.

Let's use hg.m.o as RoR then?
just double checking we're talking the same plan:
 - convert current github repo to hg, and push to hg.m.o as build/tooltool
 - convert that repo to git
 - switch which repo is RoR by:
   - push the converted git repo to github, overwriting what's there now
   - all future commits go to hg.m.o

Sound right?
Flags: needinfo?(rail)
(In reply to Hal Wine [:hwine] from comment #6)
>    - push the converted git repo to github, overwriting what's there now

Or maybe just recreate it from scratch to simplify the process? Otherwise sounds perfect.
Flags: needinfo?(rail)
Product: mozilla.org → Release Engineering
Component: Tools → Repos and Hooks
I noticed the repo was empty on git.m.o, so I pushed there from github:


pmoore@Elisandra:~/git $ git clone --mirror https://github.com/mozilla/build-tooltool
Cloning into bare repository 'build-tooltool.git'...
remote: Counting objects: 431, done.
remote: Compressing objects: 100% (171/171), done.
remote: Total 431 (delta 251), reused 431 (delta 251)
Receiving objects: 100% (431/431), 189.24 KiB | 348.00 KiB/s, done.
Resolving deltas: 100% (251/251), done.
Checking connectivity... done.
pmoore@Elisandra:~/git $ cd build-tooltool.git/
pmoore@Elisandra:~/git/build-tooltool.git master $ git push --mirror ssh://gitolite3@git.mozilla.org/build/tooltool.git
Counting objects: 431, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (171/171), done.
Writing objects: 100% (431/431), 189.28 KiB | 0 bytes/s, done.
Total 431 (delta 251), reused 431 (delta 251)
To ssh://gitolite3@git.mozilla.org/build/tooltool.git
 * [new branch]      master -> master
pmoore@Elisandra:~/git/build-tooltool.git master $ 


I verified they are the same:

pmoore@Elisandra:~/git/build-tooltool.git master $ git ls-remote ssh://gitolite3@git.mozilla.org/build/tooltool.git
ba1318bf854b303a7a5df93ab8f588b2df30ad8c	HEAD
ba1318bf854b303a7a5df93ab8f588b2df30ad8c	refs/heads/master
pmoore@Elisandra:~/git/build-tooltool.git master $ git ls-remote https://github.com/mozilla/build-tooltool
ba1318bf854b303a7a5df93ab8f588b2df30ad8c	HEAD
ba1318bf854b303a7a5df93ab8f588b2df30ad8c	refs/heads/master
pmoore@Elisandra:~/git/build-tooltool.git master $ 

So now I think we just need to set up the mirroring in vcs sync:

 * ssh://gitolite3@git.mozilla.org/build/tooltool.git to git@github.com:mozilla/build-tooltool
 * ssh://gitolite3@git.mozilla.org/build/tooltool.git to ssh://hg.mozilla.org/build/tooltool

git -> hg mirroring is currently not possible in new vcs sync - so if we want to do this now we should do it in legacy vcs sync

Probably also we need to update the downstream repos:
 * git@github.com:mozilla/build-tooltool
 * ssh://hg.mozilla.org/build/tooltool
to make them writable only by the vcs2vcs user.


Simone - please note from now on, you should push to git@github.com:mozilla/build-tooltool and not git@github.com:mozilla/build-tooltool
Flags: needinfo?(sbruno)
Summary: Please mirror https://github.com/mozilla/build-tooltool to hg.m.o/build/tooltool → Please mirror ssh://gitolite3@git.mozilla.org/build/tooltool.git to git@github.com:mozilla/build-tooltool and ssh://hg.mozilla.org/build/tooltool
Correction, you should push to ssh://gitolite3@git.mozilla.org/build/tooltool.git and not git@github.com:mozilla/build-tooltool !

Sorry :)
pete, wasn't agreed to use hg.m.o as RoR (see comments 5 and 6)?
I think tooltool would be happy to live in a mercurial home, and if we decide to officially move it there I would probably never use any mirrored git repos anyway.
Flags: needinfo?(sbruno)
Product: Release Engineering → Developer Services
Whiteboard: [kanban:engops:https://kanbanize.com/ctrl_board/6/137]
Whiteboard: [kanban:engops:https://kanbanize.com/ctrl_board/6/137] → [kanban:engops:https://mozilla.kanbanize.com/ctrl_board/6/688] [kanban:engops:https://kanbanize.com/ctrl_board/6/137]
Whiteboard: [kanban:engops:https://mozilla.kanbanize.com/ctrl_board/6/688] [kanban:engops:https://kanbanize.com/ctrl_board/6/137] → [kanban:engops:https://mozilla.kanbanize.com/ctrl_board/6/688]
:rail - since you're original requester, can you specify what the request is at this point so we can finish this up, please?
Status: ASSIGNED → NEW
Flags: needinfo?(rail)
Think we can kill this bug and probably the git.m.o repo, because we started using the github repo as RoR.

Would be great to update https://wiki.mozilla.org/ReleaseEngineering/Repositories

302 dustin because he poked tooltool recently.
Flags: needinfo?(rail)
^
Flags: needinfo?(dustin)
Still poking :)

Yeah, dropping gitmo completley sounds fine to me.
Flags: needinfo?(dustin)
Component: Mercurial: hg.mozilla.org → General
QA Contact: hwine
You need to log in before you can comment on or make changes to this bug.