Repository copies

Added by Knödlseder Jürgen about 8 years ago

I forked the discussion about repository copies to this new topic. Here the last question of Christoph:

I just created two “organisations” on github:
https://github.com/gammalib
https://github.com/ctools

Would it be OK if I put a read-only clone of the gammalib repo here?
https://github.com/gammalib/gammalib
I can also turn off the wiki and issues, which guarantees that no discussion accidentally takes place there instead of at IRAP.


Replies (23)

RE: Repository copies - Added by Knödlseder Jürgen about 8 years ago

If it’s read-only and no wiki and issues it’s okay.

I guess I also should turn-off the wiki and issues and sourceforge, but it’s anyways not really used.

We then have to look into the synchronisation, so that if a user bases his work on this repo, we don’t diverge. Let’s take it as a playground for the moment ...

RE: Repository copies - Added by Deil Christoph about 8 years ago

Jürgen, do you have a github account?

I could then give you admin rights for the gammalib and ctools organisations and maybe you could set up a post-commit hook on the IRAP git repos?

http://stackoverflow.com/questions/3583061/automatically-mirror-a-git-repository

RE: Repository copies - Added by Deil Christoph about 8 years ago

Clone of the gammalib repo is here:
https://github.com/gammalib/gammalib

I used the commands here to create the mirror:
https://help.github.com/articles/importing-an-external-git-repo

git clone --bare https://cta-git.irap.omp.eu/gammalib.git
cd gammalib.git/
git push --mirror https://github.com/gammalib/gammalib.git

If you haven’t used github before, go check it out and compare with this:
https://cta-redmine.irap.omp.eu/projects/gammalib/repository/

RE: Repository copies - Added by Deil Christoph about 8 years ago

I added the github mirror as a code location here:
https://www.ohloh.net/p/GammaLib

The initial Ohloh code analysis is running and should be finished in a few hours.

RE: Repository copies - Added by Deil Christoph about 8 years ago

Check out the gammalib project summary:
https://www.ohloh.net/p/GammaLib

If you read this, you are most likely a gammalib user or even developer.
Please click on the “I use this” button so that we can fill this map:
https://www.ohloh.net/p/GammaLib/map

RE: Repository copies - Added by Knödlseder Jürgen about 8 years ago

Christoph Deil wrote:

Jürgen, do you have a github account?

I just created one: jknodlseder

I could then give you admin rights for the gammalib and ctools organisations and maybe you could set up a post-commit hook on the IRAP git repos?

http://stackoverflow.com/questions/3583061/automatically-mirror-a-git-repository

Great. I’ll put then a post-commit hook on the git repos, but first I have to make sure that there is no firewall problem. Thanks for the link.

RE: Repository copies - Added by Knödlseder Jürgen about 8 years ago

Christoph Deil wrote:

Check out the gammalib project summary:
https://www.ohloh.net/p/GammaLib

If you read this, you are most likely a gammalib user or even developer.
Please click on the “I use this” button so that we can fill this map:
https://www.ohloh.net/p/GammaLib/map

These are really nice graphics. A 100% transparent project!

RE: Repository copies - Added by Deil Christoph about 8 years ago

Jürgen, you’re now an owner of github.com/gammalib and github.com/ctools, so you can push updates (or do whatever you want there)

RE: Repository copies - Added by Knödlseder Jürgen about 8 years ago

Christoph Deil wrote:

Jürgen, you’re now an owner of github.com/gammalib and github.com/ctools, so you can push updates (or do whatever you want there)

Thanks. I tried pushing from our server, but it seem that we again have a firewall problem. I’ll discuss this here with our informatics stuff.

RE: Repository copies - Added by Deil Christoph about 8 years ago

Note that you with github you can use the https or ssh protocol, whichever is easier to get to work with your firewall and storing the password in a secure way on your server.
With ssh there should be a way even if they don’t want to open up the firewall because you can always tunnel through whichever other machine you usually use to ssh out of IRAP.

Github help pages are actually pretty useful sometimes: https://help.github.com

RE: Repository copies - Added by Knödlseder Jürgen about 8 years ago

I managed to push from our server using the https protocol.

I then installed a post-receive hook that pushes to github after each push that is received on the server. This now synchronizes github with our local server.

In principle, github can now be used for GammaLib developers.

RE: Repository copies - Added by Deil Christoph about 8 years ago

DON’T:
- issue a pull request on github, because it would mean discussions and thus project history are in a second place in addition to the Redmine at IRAP.
Unfortunately github doesn’t allow turning off pull requests, I just complained to them about it, but so have many others in the past year and so far they didn’t change it.
For now we just have to ignore github pull requests against github.com:gammalib/gammalib should there ever be one (this is e.g. what Linus or everyone else does https://github.com/torvalds/linux/pulls )

DO:
- use github.com/gammalib/gammalib to browse code, commits, view diffs between branches, ... or what the repo to get notifications for any new commits if you want.
- fork github.com/gammalib/gammalib to github.com/yourname/gammalib and use your repo on github for the 100 new feature branches you have instead of putting them all in the IRAP repo.
- If you think something is ready to be merged in devel, create a Redmine ticket and ask Jürgen to merge your branch, i.e. make a “pull request”. Typically there will be a Redmine ticket already, because we first discuss what we plan to do before actually implementing it.

Jürgen, do you think this is a good way to operate? Or would you prefer to review and eventually merge branches in the IRAP repo only?

I think any links to code in branches from Redmine tickets to help discussions would break anyways as soon as the branch is deleted, so I don’t see the advantage of copying my branch from github to IRAP before asking you to review and pull.
Here’s an example of what a large feature branch with a month of discussion looks like on github in the end, I don’t think we can do something similarly nice with Redmine:
https://github.com/astropy/astropy/pull/471

RE: Repository copies - Added by Deil Christoph about 8 years ago

As soon as ctools is open, I think we should mirror it on github as well (at gammalib/ctools or ctools/ctools).

RE: Repository copies - Added by Deil Christoph almost 8 years ago

Jürgen, is ctools open source now?

Can you create a mirror of the IRAP repo at https://github.com/gammalib/ctools ?

(... having problems again pulling and cloning from the IRAP ctools repo at MPIK because of an issue with git and https on our side ...)

RE: Repository copies - Added by Deil Christoph almost 8 years ago

I know this is a complicated issue, but I wanted to ask again if it would be possible to create the mirror for the ctools repo on github?

Talking to the IRAP repo from my institute doesn’t work (a combination of a git bug and HTTPS proxy settings) and it’s really annoying
having to first clone to a machine outside MPIK and then clone or scp from there to MPIK to update the ctools repo.
I tried hard with our sysadmin, this won’t be fixed, so everyone from MPIK has this issue.
Working with github is fine because they allow git usage via SSH.

Having ctools on github has the extra benefit that there is a nice interface to read the sources and follow the changes in the code base.
Just as an example see
https://github.com/gammalib/gammalib/commit/cea1f984c341eeb6edd69ea09e77b3b2e7489ae7

Thanks for having set up the gammalib Github mirror already!

RE: Repository copies - Added by Knödlseder Jürgen almost 8 years ago

Christoph Deil wrote:

I know this is a complicated issue, but I wanted to ask again if it would be possible to create the mirror for the ctools repo on github?

Talking to the IRAP repo from my institute doesn’t work (a combination of a git bug and HTTPS proxy settings) and it’s really annoying
having to first clone to a machine outside MPIK and then clone or scp from there to MPIK to update the ctools repo.
I tried hard with our sysadmin, this won’t be fixed, so everyone from MPIK has this issue.
Working with github is fine because they allow git usage via SSH.

Having ctools on github has the extra benefit that there is a nice interface to read the sources and follow the changes in the code base.
Just as an example see
https://github.com/gammalib/gammalib/commit/cea1f984c341eeb6edd69ea09e77b3b2e7489ae7

Thanks for having set up the gammalib Github mirror already!

Hi Christoph,

I don’t think it’s really complicated, the only thing people were worrying about were the CTA response functions (which are also in GammaLib .

I just need to find some time to replace the real response functions by dummy functions, and put the real response functions somewhere else.

As I see that this is really an issue, I’ll try to do it quickly ...

Cheers,
Jürgen

RE: Repository copies - Added by Deil Christoph almost 8 years ago

Sounds great! Thank you!

RE: Repository copies - Added by Knödlseder Jürgen almost 8 years ago

Christoph Deil wrote:

Sounds great! Thank you!

I just removed all the CTA response functions from ctools and just left a dummy IRF so that unit tests can run. I think this is a reasonably fair approach so that we can open ctools now.

I pushed the ctools code into GitHub. So you can start working :)

I still have to install the synchronization of the IRAP repo with the GitHub repo ...

RE: Repository copies - Added by Deil Christoph almost 8 years ago

Thank you very much!

I just set the default branch from master to devel under “settings” and turned off the wiki and issue tracker like for the gammalib repo.

RE: Repository copies - Added by Deil Christoph almost 8 years ago

I set the license info at https://www.ohloh.net/p/ctools_ to the same one GammaLib has: GPL-3.0+ “GNU General Public License v3.0 or later”.
Is that correct?

I’ll now add some tags and set the ignore files for the ctools Ohloh code analysis.
I think ctools is probably not 38% html.

RE: Repository copies - Added by Knödlseder Jürgen almost 8 years ago

Christoph Deil wrote:

I set the license info at https://www.ohloh.net/p/ctools_ to the same one GammaLib has: GPL-3.0+ “GNU General Public License v3.0 or later”.
Is that correct?

Yes, thanks.

I’ll now add some tags and set the ignore files for the ctools Ohloh code analysis.
I think ctools is probably not 38% html.

Right. So you’ve seen that I put ctools in Ohloh under “ctools_” (ctools was already taken ...)

(1-23/23)