Differences between revisions 5 and 7 (spanning 2 versions)
Revision 5 as of 2012-07-12 09:23:00
Size: 2175
Editor: NielsThykier
Comment: Britney1 is no longer live
Revision 7 as of 2013-01-12 11:30:50
Size: 2316
Editor: NielsThykier
Comment: Correct checkout paths for britney
Deletions are marked like this. Additions are marked like this.
Line 15: Line 15:
git clone ssh://release.debian.org/org/release.debian.org/britney/code/b1
git clone ssh://release.debian.org/org/release.debian.org/britney/code/b2
git clone ssh://release.debian.org/srv/release.debian.org/git/britney1.git
git clone ssh://release.debian.org/srv/release.debian.org/git/britney2.git
Line 19: Line 19:
 * Make your code changes for one or both versions, have them reviewed by another member of the release team.  * Make your code changes for one or both versions.
 * Test your Britney2 changes against the test suite
   * http://anonscm.debian.org/gitweb/?p=collab-maint/britney2-tests.git
 * H
ave your changes reviewed by another member of the release team.
Line 33: Line 36:
 * Pull the changes from the `master` to `ftp-master` branch. To do that use the live tree at `/org/release.debian.org/britney/code`. For example, to merge the changes for `b1` issue the following commands:  * Pull the changes from the `master` to `ftp-master` branch. To do that use the live tree at `/srv/release.debian.org/britney/code`. For example, to merge the changes for `b2` issue the following commands:
Line 35: Line 38:
cd /org/release.debian.org/britney/code/b1 cd /srv/release.debian.org/britney/code/b2
Line 38: Line 41:
 Repeat the same for `b2`, if necessary. This will merge the changes into `ftp-master` branch, and simultaneously set them live.   Repeat the same for `b1`, if necessary. This will merge the changes into `ftp-master` branch, and simultaneously set them live.

Committing Britney changes

This page describes how to make code changes for Britney (testing migration script) and set them live. It is mostly interesting for the members of release team, performing the changes. Britney2 (b2) is the actual tool making the migrations. There are also some infrastructure scripts related to Britney2 (e.g. the cronjob) which is currently stored in the old Britney repository (b1).

A word on style: right now the Python code for b1 is written without expanding the tabs (bad) while for b2 the tabs are set to 4 positions and expanded (good). Please make sure that you follow this style. For example, if you are using vim to do the code changes, make that you have the following settings in your ~/.vimrc for the b2 code:

set tabstop=4
set softtabstop=4
set expandtab

For the b1 repository you either need to remove set expandtab or turn it off in your session using :set noexpandtab.

  • Clone Britney git repositories (requires ssh access to release.debian.org):

    git clone ssh://release.debian.org/srv/release.debian.org/git/britney1.git
    git clone ssh://release.debian.org/srv/release.debian.org/git/britney2.git

    This will clone the master branch by default, to which all commits should go.

  • Make your code changes for one or both versions.
  • Test your Britney2 changes against the test suite
  • Have your changes reviewed by another member of the release team.
  • Commit the changes to your local repository:
    git commit -a -s
  • Push the changes to the repository on release.debian.org:

    git push
  • Log in to release.debian.org and become a release user:

    sudo -u release bash

    In order to do this, you will need to set your sudo password, which can be done through http://db.debian.org.

  • Pull the changes from the master to ftp-master branch. To do that use the live tree at /srv/release.debian.org/britney/code. For example, to merge the changes for b2 issue the following commands:

    cd /srv/release.debian.org/britney/code/b2
    git pull

    Repeat the same for b1, if necessary. This will merge the changes into ftp-master branch, and simultaneously set them live.