git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Solve continuous integration (pending head / commit queue) problem using git

From
JKJan Koprowski <jan.koprowski@gmail.com>
Date
Feb 12, 2010, 16:37 UTC
Message-ID
<c41cd75d1002120837t20f2a47fi41e8c67245c4284c@mail.gmail.com>
Hi !
  This is my first mail on the list so hello everyone :)
  I'am currently write my MA. Part of my thesis is looking for some
way to stay "master" stable.
  First assumption is simple: Control version system make all dirty
job - programmers can't "stop" or "break" all procedure and work in
natural ways. We can't assume that programmer use some custom hooks on
their side or add some addition parameters to git commands.
  Second assumption  is that programmer can't compile source code one
their machine for some reasons. Only way to compile is some other way
- for example use CruiseControl or Hudson or some CI tools. This isn't
really matter in my question now.
  Third assumption: Code cloned from repository is stable = compiling
well and pass all tests.
  Forth assumption: compiling is testing are very very very fast.

What I meen "natural way of work" by programmer. They *clone* repository (or *pull* changes) from some central repository. Then do some stuff with code on their working copy and *push* their changes. Ok but - their don't know is code working well. And this is a problem. I know there is some options: XP pair programming, automated static code analysis, code review and others ... but this is not the point. In my "configuration" there are some frequently scheduled build of system automated by some tool. Tool just get all stuff from repo, compile all stuff, running tests (if compiling successes) and if sending e-mail. But SCM should "somehow" distinct unstable commits from stable commits (after compiling).

Now. My idea. There is some revision tagged as "stable". *Clone* and *pull* operations is somehow "overloaded" from server side and always! return last revision tagged as stable. After compiling external tool just move tag to another revision which pass all tests. Of course there is some additional parameter (for example --last or --unstable) which can clone fine way of repository.

Two questions.
1) Maybe I try to invent the wheel again. Is there any way to take the
effect without overloading standard git behaviours.
2) If not how overload git behaviors on git "server side" repo?
Thanks in advance!
-- 
><> Jan Koprowski [696775174] GSM
Next: Avery Pennarun
Message 1 of 5 in “Solve continuous integration (pending head / commit queue) problem using git”
  1. Jan KoprowskiFeb 12, 2010
  2. Avery PennarunFeb 12, 2010
  3. Jan KoprowskiFeb 12, 2010
  4. Jan KoprowskiFeb 13, 2010
  5. Daniel BarkalowFeb 13, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.