Re: [git-users] Need some advice on git setup -- development files must be run on the server

2015-05-26 Thread Dale R. Worley
Chris Fillmore fillmore.ch...@gmail.com writes:
 I am imagining I putty into the server, checkout my branch, run the code. 
 Is this possible? But what's to stop other team members from doing the 
 same, at the same time? There are only three of us, we can communicate, but 
 in principle I would prefer to have a better solution, if possible.

It sounds to me that this is the crucial problem -- you have only one
test environment, and only one person can use it at a time.  It seems to
me that productivity would be seriously improved if each developer had a
complete test environment.  One way to do that would be VMs, another
would be to buy a bunch of cheap servers.  My guess is that you want the
best duplicate of the production environment you can manage, so as to
minimize the number of surprised when you move code into production.

Dale

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [git-users] Need some advice on git setup -- development files must be run on the server

2015-05-26 Thread Magnus Therning
On 26 May 2015 at 13:34, Dale R. Worley wor...@alum.mit.edu wrote:
 Chris Fillmore fillmore.ch...@gmail.com writes:
 I am imagining I putty into the server, checkout my branch, run the code.
 Is this possible? But what's to stop other team members from doing the
 same, at the same time? There are only three of us, we can communicate, but
 in principle I would prefer to have a better solution, if possible.

 It sounds to me that this is the crucial problem -- you have only one
 test environment, and only one person can use it at a time.  It seems to
 me that productivity would be seriously improved if each developer had a
 complete test environment.  One way to do that would be VMs, another
 would be to buy a bunch of cheap servers.  My guess is that you want the
 best duplicate of the production environment you can manage, so as to
 minimize the number of surprised when you move code into production.

Maybe you should consider setting up a CI server (jenkins), that would
do automatically what you currently do manually?  That would, I think,
remove the risk of stepping on each others' toes...

/M

-- 
Magnus Therning  OpenPGP: 0xAB4DFBA4
email: mag...@therning.org   jabber: mag...@therning.org
twitter: magthe   http://therning.org/magnus

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[git-users] Need some advice on git setup -- development files must be run on the server

2015-05-25 Thread Chris Fillmore
Hello,

I've just started a position where we are not yet using version control at 
all. The team was previously just a single developer, and now there are 
three of us. I've used git before on teams, but not in an environment 
exactly like this, and I need some advice.

The code we are working on is a mix of BASIC and front end web languages. 
It is stored on a Red Hat server running a UniVerse 
http://www.rocketsoftware.com/products/rocket-universe database, and we 
use wIntegrate http://www.rocketsoftware.com/products/rocket-wintegrate 
to access and edit the code. wIntegrate downloads the code to our local 
machine, where we can edit it and then upload the files back to the server 
via FTP. In order to test our changes, the code MUST be running on the 
server -- it can't be run locally on our machines. The server in our office 
is not a production environment, it's a development environment. Testing 
and production servers operate in our clients' offices.

Naturally, we are looking to migrate to a version control platform.

Supposing I initialize a git repo in our development server where the code 
is. I imagine our workflow looking like this:

   - Team members clone the repo to local machines
   - Team members each create a branch and do their work
   - Team members push changes to the development server

Here's where I need advice. How do you go about testing the code in 
different git branches on the server?

I am imagining I putty into the server, checkout my branch, run the code. 
Is this possible? But what's to stop other team members from doing the 
same, at the same time? There are only three of us, we can communicate, but 
in principle I would prefer to have a better solution, if possible.

We debated the option of imaging the server to run on virtual machines 
locally on each team member's computer. But I'm not sure if this is 
feasible.

Any advice is greatly appreciated. Please let me know if I can provide more 
information.

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [git-users] Need some advice on git setup -- development files must be run on the server

2015-05-25 Thread Konstantin Khomoutov
On Mon, 25 May 2015 09:30:17 -0700 (PDT)
Chris Fillmore fillmore.ch...@gmail.com wrote:

[...]
 In order to test our changes, the code MUST be
 running on the server -- it can't be run locally on our machines. The
 server in our office is not a production environment, it's a
 development environment. Testing and production servers operate in
 our clients' offices.
[...]
- Team members push changes to the development server
 
 Here's where I need advice. How do you go about testing the code in 
 different git branches on the server?
 
 I am imagining I putty into the server, checkout my branch, run the
 code. Is this possible?

That depends on how do you define possible.
Supposedly you want to ask if it's possible to do the checkout my
branch, run the code bit, right?
The answer depends on what constraints the thing you're using to test
the code has.  I'm not familiar with neither of the two pieces of
technology you've cited so I can't tell for sure.
Surely if the thing has command-line interface so you can run it in
an SSH session and see its test run results somehow printed back, it is
possible.  If not, we need further details on how the thing is
supposed to be controlled when doing its test runs.

 But what's to stop other team members from
 doing the same, at the same time?

Again, suppose you have checked out some version of the code into some
directory on the server's file system.  Now suppose one of your
colleagues did the same with a *different* directory.  Does the thing
allow to run two tests on these different code bases at the same time?

If yes, the problem is solved.

If not, then, again, we need further info on that tool's constraints.
For instance, if it requires the code to always be located in a certain
directory and only allows a single run at any time, I'd solve the
testing problem using a simple CGI script which would receive
a commit hash as a parameter, create some lock file and flock() it,
check out the indicated version of the code, run the tests, delete the
lock file.  That would prevent any of you from running several tests in
parallel.

Certainly that's a poor man's solution, and you might look at a CI
system?  Sure, picking one and setting it properly so that it obeys
your tool's constraints might be harder than writing a brain-dead
solution I outlined above; YMMV.

[...]
 We debated the option of imaging the server to run on virtual
 machines locally on each team member's computer. But I'm not sure if
 this is feasible.

Uh, why not?  Only low-end x86 CPUs (those targetting fanless micro-ATX
etc) do not have support for hardware virtualization these days, and
you needn't run a server-class OS (you mentioned PuTTY so I suppose
your team's using Windows on your desktops) as there's VirtualBox.

And there's even no need to use virtualization on desktops as you can
just use KVM (or Xen or containers via LXC or Docker or any other
light-weight solution) on your server and SSH to these instances.

TL;DR
Given the description I'd vote for semi-automatic solution using a CGI
script because to me this appears to be the solution with the least
possible cost (both implementation-wise and support-wise).
But I'm just guessing.

1. http://en.wikipedia.org/wiki/Comparison_of_continuous_integration_software

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.