Difference between revisions of "RepositoryStructure"

From PaparazziUAV
Jump to navigation Jump to search
 
(15 intermediate revisions by 4 users not shown)
Line 1: Line 1:
'''Repository Structure''' Refers to the way Paparazzi is naming the branches and which one is the right one for you.
'''Repository Structure''' Refers to the way Paparazzi is naming the [[Git]] branches and which one is the right one for you.


== Stable Releases ==
[[Image:RepositoryBranching.png|400px|thumb|Branching Model Diagram]]


These are the branches that are considered stable and ok to be used by everyone. The default branch on github (the one you get when cloning the repository) will always be set to the latest stable release.
== Development branch (master) ==
<span class="plainlinks">[https://travis-ci.org/paparazzi/paparazzi https://travis-ci.org/paparazzi/paparazzi.png?branch=master,?.png]</span>


Releases get even version numbers.
A permanent branch where current the development is based on. For users wanting to test the the bleeding edge, this is the one to use.
It should at least compile, but can have untested new features. New features are being injected into this one from the feature branches.
Needs bench testing and careful flight testing on your end.


* v3.2 (e.g. use the current campaign2010 for that)
== Stable branches ==
* v3.6 (e.g. use the current campaign2011 for that)
* v4.0


The only commits that go into those branches are only bugfixes. No new feature commits are being done directly to those.
These are the branches that are considered stable and ok to be used by everyone.


'''May branch off from:''' ''release preparation branch''<br/>
'''Releases get even minor version numbers.'''
'''Branch naming convention:''' ''v<major>.<even_minor>''


=== Release Preparation Branches ===
The only commits that go into those branches are only bugfixes. No new feature commits are being done directly to those.


Release preparation is done in branches with odd version numbers. When it is ready the branch is renamed to the next even number.
So e.g. stabilization and testing is done in v4.1 and then renamed to v4.2 (and tagged) on release.


'''May branch off from:''' ''development branch''<br/>
'''May branch off from:''' ''release preparation branch''<br/>
'''Must merge back into:''' ''development branch''<br/>
'''Branch naming convention:''' ''v<major>.<even_minor>'', e.g. v4.0
'''Branch naming convention:''' ''v<major>.<odd_minor>''


== Development branch ==
== Feature branches ==
A permanent branch where current the development is based on. For users wanting to test the the bleeding edge, this is the one to use.
It should at least compile, but can have untested new features. New features are being injected into this one from the feature branches.


Here we have come up with different models.
If a bigger new feature is being implemented and is meant for people to test the development branch is being copied into "feature_<description>" and after the implementation of the new feature is completed those branches get merged back into the development branch again.


=== Master branch for development model ===
Use branch "master" for development.


=== dev branch for development model ===
'''May branch off from:''' ''master''<br/>
Like now the branch "dev" is used for development. In this case "master" would always point to the latest stable release.
'''Must merge back into:''' ''master''<br/>
'''Branch naming convention:''' ''<feature_description>''


=== no permanent development branch ===
== Release Preparation Branches ==
Another option could be to not have a permanent development branch at all, but instead immediately start with a new odd version branch after a release where feature branches would be merged into.


=== Votes ===
Release preparation is done in branches with '''odd version numbers'''. When it is ready the branch is renamed to the next even number.
* no permanent development branch (less branches and obvious where development is being done atm) [[User:Esden|Esden]] 21:10, 7 May 2012 (UTC)
So e.g. stabilization and testing is done in v4.1 and then renamed to v4.2 (and tagged) on release.
 
== Feature branches ==
 
If a bigger new feature is being implemented and is meant for people to test the development branch is being copied into "feature_<description>" and after the implementation of the new feature is completed those branches get merged back into the development branch again. For example these branches could have names like:
 
* feature_state_interface
* feature_luftboot_support
* feature_spi_queues


'''May branch off from:''' ''development branch''<br/>
'''Must merge back into:''' ''development branch''<br/>
'''Branch naming convention:''' ''feature_<description>''


Another option could be to name them according to the next preparation branch <major>.<odd_minor>_<feature_name>.
'''May branch off from:''' ''master''<br/>
'''Must merge back into:''' ''master'', ''next stable branch''<br/>
'''Branch naming convention:''' ''v<major>.<odd_minor>'', e.g. v3.9


== Hotfix branches ==
== Hotfix branches ==


If there are bugfixes to certain stable branches that need to be tested before they get merged into stable they get their own branches of the structure: "v<major_nr>.<minor_nr>_fix_<description>". For example:
If there are bugfixes that need to be tested before they get applied/merged to a stable release they get their own (temporary) branch:


* v4.0_fix_b2_v12_mag_signs


'''May branch off from:''' ''stable branch''<br/>
'''May branch off from:''' ''stable branch''<br/>
Line 67: Line 50:
'''Branch naming convention:''' ''<major>.<even_minor>_fix_<description>''
'''Branch naming convention:''' ''<major>.<even_minor>_fix_<description>''


== Old VS new repository structure ==
For example:


This section describes how the old structure will be changed to the new structure.
* v4.0_fix_b2_v12_mag_signs
 
Basically the current "dev" would become the release preparation branch (we can then delete 4.0_beta), the "locm3" branch would become the new development branch.
 
* rename: dev -> v3.9
* rename: campaign2010 -> v3.4
* rename: campaign2011 -> v3.6
* rename: spi_driver -> feature_spi_driver (or v4.1_spi_driver)
 
For the new development branch there are different options (as described above):
#master for development:
#* reset master to current locm3
#dev for development:
#* reset dev -> locm3
#* master: reset to new v3.9 (even if it is not a release, and keep it on the release branches from there on)?

Latest revision as of 06:53, 23 April 2015

Repository Structure Refers to the way Paparazzi is naming the Git branches and which one is the right one for you.

Branching Model Diagram

Development branch (master)

paparazzi.png?branch=master,?.png

A permanent branch where current the development is based on. For users wanting to test the the bleeding edge, this is the one to use. It should at least compile, but can have untested new features. New features are being injected into this one from the feature branches. Needs bench testing and careful flight testing on your end.

Stable branches

These are the branches that are considered stable and ok to be used by everyone.

Releases get even minor version numbers.

The only commits that go into those branches are only bugfixes. No new feature commits are being done directly to those.


May branch off from: release preparation branch
Branch naming convention: v<major>.<even_minor>, e.g. v4.0

Feature branches

If a bigger new feature is being implemented and is meant for people to test the development branch is being copied into "feature_<description>" and after the implementation of the new feature is completed those branches get merged back into the development branch again.


May branch off from: master
Must merge back into: master
Branch naming convention: <feature_description>

Release Preparation Branches

Release preparation is done in branches with odd version numbers. When it is ready the branch is renamed to the next even number. So e.g. stabilization and testing is done in v4.1 and then renamed to v4.2 (and tagged) on release.


May branch off from: master
Must merge back into: master, next stable branch
Branch naming convention: v<major>.<odd_minor>, e.g. v3.9

Hotfix branches

If there are bugfixes that need to be tested before they get applied/merged to a stable release they get their own (temporary) branch:


May branch off from: stable branch
Must merge back into: stable branch
Branch naming convention: <major>.<even_minor>_fix_<description>

For example:

  • v4.0_fix_b2_v12_mag_signs