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

sbuild (or whatever) integration

From
FWFlorian Weimer <fw@deneb.enyo.de>
Date
May 19, 2007, 13:17 UTC
Message-ID
<87sl9t6jhr.fsf@mid.deneb.enyo.de>

I'd like to build something that integrates a Debian autobuilder (sbuilder probably) with GIT. The intent is to get rid of a designated integrator (our team is of a size where this seems a reasonable thing to do[1]) and ensure predictable builds, independent of what developers happen to have installed on their local workstations.

Basically, what I want to do is this:
  1. Perform a checkout from a specific branch.
  2. Synthesize a new version number that is bigger than the previous
     one.  (This needs to keep a bit of extra-repository state.  At
     this stage, it's probably a good idea to ensure that the previous
     commit built on this branch is an ancestor of the current HEAD.)
  3. Generate a fake Debian changelog entry giving the HEAD commit and
     the branch name, using the generated version number.
  4. Build the whole thing in a controlled environment.
  5. Store the build log for later review.
  6. If the build was successful, transfer the packages to some
     repository (based on the branch that was used).

The GIT repository in step one is a shared one, with an update hook that that ensures fast-forward merges, as in:

<http://www.kernel.org/pub/software/scm/git/docs/howto/update-hook-example.txt>

The idea is that this means that features are monotonic along a branch. Ideally, I would like to have something which can assign meaningful version numbers across two branches, but this is of course impossible to automatically. I hope to work with a single release branch anyway, and use at most two (one for testing, one for production).

Does this sound reasonable?  Has anybody built something similar?
[1] This is for internal development, and due to various constraints,
    we haven't got developer-specific integration testing
    environments.  That's why we need to linearize before actual
    deployment.
Next: Jan Hudec
Message 1 of 4 in “sbuild (or whatever) integration”
  1. Florian WeimerMay 19, 2007
  2. Jan HudecMay 21, 2007
  3. Florian WeimerMay 29, 2007
  4. Jan HudecMay 29, 2007

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.