[Beowulf] Thoughts on git?

Peter Clapham pc7 at sanger.ac.uk
Tue Dec 19 08:47:10 PST 2017


Thank you,

The multi-language component of the link is very useful. One to pass on locally.
Pete

From: Beowulf <beowulf-bounces at beowulf.org> on behalf of Alex Chekholko via Beowulf <beowulf at beowulf.org>
Reply-To: Alex Chekholko <alex at calicolabs.com>
Date: Tuesday, December 19, 2017 at 4:45 PM
To: John Hearns <hearnsj at googlemail.com>
Cc: Beowulf Mailing List <beowulf at beowulf.org>
Subject: Re: [Beowulf] Thoughts on git?

Here is a user-friendly guide that can provide you with some motivation to use git:


http://www-cs-students.stanford.edu/~blynn/gitmagic/


On Tue, Dec 19, 2017 at 8:41 AM John Hearns via Beowulf <beowulf at beowulf.org<mailto:beowulf at beowulf.org>> wrote:
Faraz, I use git every day.
We have Bitbucket here, and have linked the repositories to Jira for our sprint planning and kanban.

Anyway - you say something very relevant  "I have never had a need to go back to an older version of my script."
It is not only about rollback to older versions. If you are workign in a small team, I think you really have to have the production version of scripts defined somewhere.
For instance I work with PBS Hooks, which are Python scripts. I need to know which are the ones in use on our PBS server.
(Yes -you can do a fetch of the script from the PBS server. I know how to do that).
But it is cleaner and easier to point towards the master of that repo and say - these are the PBS hooks we are using right now.
I can then create a branch and go off to implemen tchanges on our test cluster - knowing that the master branch remains untouched.
When we are happy I get a colleague to to a merge.

Regarding the command line of git, I do agree that it can be confusing.
I discovered the Atom editor, which has an in-build GUI for git.
https://webdesign.tutsplus.com/articles/quick-tip-how-to-use-atom-as-a-git-gui--cms-21073

Also now start to think about disaster recovery, and software defined infrastructure.

Firstly, lets us be extreme. Your data centre burns down. Your management are breathing down your neck. They want the service back up and running.
Funds magically appear, and a bunch of servers appears on the loading dock of the new data centre.
Are you confident those scripts can be integrated onto the new setup?

Also the trend now is to software defined infrastructures. You stand up new nodes and configure them using defined rules.
You may want to copy some of those scripts onto the nodes - lets' say they are PBS hooks, or pre job healthchecks.
I admit we are nowhere near doing that effictively, but it is our goal.


































On 19 December 2017 at 17:11, Faraz Hussain <info at feacluster.com<mailto:info at feacluster.com>> wrote:
I am curious what people think of git. On one hand everyone seems to be using it and proclaiming its virtues. On the other hand it seems way overkill for how the majority of people code.

I maintain dozens of scripts to manage various HPC environments . None are more than a few hundred lines long. To do backups of scripts, I just copy them to some backup folder. Occasionally I might tar them up and copy them to a different server. I have never had a need to go back to an older version of my script.

So I tried to learn git but find it very confusing. It seems designed for teams of developers working on some million+ line of code project. For my rinky-dinky scripts it just adds a lot of confusion. It seems I need to "commit" to using git everyday in order for it to be effective. Otherwise, use it or lose it.

Should I force myself to use git everyday? Or maybe find some incrementally better way to manage backups of my scripts?

_______________________________________________
Beowulf mailing list, Beowulf at beowulf.org<mailto:Beowulf at beowulf.org> sponsored by Penguin Computing
To change your subscription (digest mode or unsubscribe) visit http://www.beowulf.org/mailman/listinfo/beowulf

_______________________________________________
Beowulf mailing list, Beowulf at beowulf.org<mailto:Beowulf at beowulf.org> sponsored by Penguin Computing
To change your subscription (digest mode or unsubscribe) visit http://www.beowulf.org/mailman/listinfo/beowulf
--
Sent from a "phone".



-- 
 The Wellcome Trust Sanger Institute is operated by Genome Research 
 Limited, a charity registered in England with number 1021457 and a 
 company registered in England with number 2742969, whose registered 
 office is 215 Euston Road, London, NW1 2BE.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.beowulf.org/pipermail/beowulf/attachments/20171219/d867dbdb/attachment-0001.html>


More information about the Beowulf mailing list