Skip to contentSkip to conversation

Proposal for the branching policy of meta-arm

DISCUSSION Jon Mason 4 participants 6 messages Jun 5, 2020 – Jun 9, 2020

lore
Share & tools
lore

Jon Mason

author
#0 lore raw

Problem

The Yocto Project releases twice a year (April and October): "stable" releases are made every six months and have a lifetime of seven months to allow for migration, while "long term support" (LTS) releases are picked every two years starting from Dunfell in April 2020. The standard practice for all Yocto Compatible layers is to create a "named" branch consistent with the code name of that release.   For example, the “dunfell” release of Yocto will have a branch named “dunfell” in the official git repository, and layers compatible with dunfell will have a branch named “dunfell”.  Thus, a customer can easily organise a collection of appropriate layers to make a product.

In Yocto, these named branches are “stable”, and only take bug fixes or security-critical upgrades.  Active development occurs on the master branch.  However, this methodology can be problematic if mimicked with the compatible layers.  Companies or open source projects may not wish to release a snapshot of the relevant “master” branches under active development, due to the amount of testing, fixing, and hardening necessary to make a product from a non-stable release.  Also, changes to keep the master branch of a layer working with the upstream master branch of Yocto may result in that branch no longer being compatible with named branches (e.g., it might not be possible to mix and match master and dunfell).  So, a decision must be made on the branching policy of meta-arm.

Proposal

There are many different ways to resolve this issue.  After some discussion, the best solution for us is to allow new features and hardware enablement to be included in named branches (not just bug fixes).  This will allow for a more stable software platform for software to be developed, tested, and released.  Also, the single branch allows for focused testing (limiting the amount of resources needed for CI/CD), lessens/eliminates code diverging on various branches, and lessens confusion on which branch to use. The risk of making this choice is a potentially non-stable branch which will require more frequent testing to lessen the risk, and not following the “stable” methodology of the core Yocto layers (though it is not uncommon for BSP layers to behave as we are recommending).

Process

The process for patches intended on being integrated into only the master branch is the normal process of pushing to meta-arm mailing list for community review, approval and integration into upstream meta-arm master branch.  For patches intended on being included in a named branch are also the normal internal process of pushing to mailing list for community review, approval and integration into meta-arm named branch.  However, any patches intended on being included on a named branch must also be sent for inclusion in the master branch in a timely fashion (no more than 1 week after inclusion into the named branch).

Branching strategy

Named branches for meta-arm will be released as close as possible to the release of the YP LTS release.  Meta-arm named branches will be created from the meta-arm master branch.

To minimize the additional work of maintaining multiple branches it is assumed that there will only be two active branches at any given time: master and the most recent Long Term Stable (LTS) as the named branch.  All previous named will be EOLed when a new LTS has been released.   Any branches that are EOLed will still exist in the meta-arm, but patches will not be accepted.

Branch transitions

When an upcoming YP LTS is approaching release, meta-arm will attempt to stabilize master so that the releases can coincide.

T-6 weeks - Email is sent to meta-arm mailing list notifying of upcoming code freeze of features to meta-arm

T-4 weeks - Code freeze to meta-arm.  Only bug fixes are taken at this point.

T-0 - All bugs are fixed and layer is stable, new named branch is created based on master and no new patches accepted to any previous named branches.  Master branch will start accepting patches again.

#1 lore raw

Thanks for this! It all looks reasonable to me. I have a few comments below, but they are just clarifications and observations.

Quoted 7 lines · Jon Mason

Problem

The Yocto Project releases twice a year (April and October): "stable" releases are made every six months and have a lifetime of seven months to allow for migration, while "long term support" (LTS) releases are picked every two years starting from Dunfell in April 2020. The standard practice for all Yocto Compatible layers is to create a "named" branch consistent with the code name of that release.   For example, the “dunfell” release of Yocto will have a branch named “dunfell” in the official git repository, and layers compatible with dunfell will have a branch named “dunfell”.  Thus, a customer can easily organise a collection of appropriate layers to make a product.

In Yocto, these named branches are “stable”, and only take bug fixes or security-critical upgrades.  Active development occurs on the master branch.  However, this methodology can be problematic if mimicked with the compatible layers.  Companies or open source projects may not wish to release a snapshot of the relevant “master” branches under active development, due to the amount of testing, fixing, and hardening necessary to make a product from a non-stable release.  Also, changes to keep the master branch of a layer working with the upstream master branch of Yocto may result in that branch no longer being compatible with named branches (e.g., it might not be possible to mix and match master and dunfell).  So, a decision must be made on the branching policy of meta-arm.

Quoted 8 lines

Proposal

There are many different ways to resolve this issue.  After some discussion, the best solution for us is to allow new features and hardware enablement to be included in named branches (not just bug fixes).  This will allow for a more stable software platform for software to be developed, tested, and released.  Also, the single branch allows for focused testing (limiting the amount of resources needed for CI/CD), lessens/eliminates code diverging on various branches, and lessens confusion on which branch to use. The risk of making this choice is a potentially non-stable branch which will require more frequent testing to lessen the risk, and not following the “stable” methodology of the core Yocto layers (though it is not uncommon for BSP layers to behave as we are recommending).

Process

The process for patches intended on being integrated into only the master branch is the normal process of pushing to meta-arm mailing list for community review, approval and integration into upstream meta-arm master branch.  For patches intended on being included in a named branch are also the normal internal process of pushing to mailing list for community review, approval and integration into meta-arm named branch.  However, any patches intended on being included on a named branch must also be sent for inclusion in the master branch in a timely fashion (no more than 1 week after inclusion into the named branch).

Just as a note, this is opposite of most other layers where it's required to be in master (or shown to be inappropriate for some reason) before it's backported to the release branch

Quoted 11 lines

Branching strategy

Named branches for meta-arm will be released as close as possible to the release of the YP LTS release.  Meta-arm named branches will be created from the meta-arm master branch.

To minimize the additional work of maintaining multiple branches it is assumed that there will only be two active branches at any given time: master and the most recent Long Term Stable (LTS) as the named branch.  All previous named will be EOLed when a new LTS has been released.   Any branches that are EOLed will still exist in the meta-arm, but patches will not be accepted.

Branch transitions

Quoted 7 lines

When an upcoming YP LTS is approaching release, meta-arm will attempt to stabilize master so that the releases can coincide.

T-6 weeks - Email is sent to meta-arm mailing list notifying of upcoming code freeze of features to meta-arm

T-4 weeks - Code freeze to meta-arm.  Only bug fixes are taken at this point.

T-0 - All bugs are fixed and layer is stable, new named branch is created based on master and no new patches accepted to any previous named branches.  Master branch will start accepting patches again.

You might clarify the reference point here... is T - 0 the date the upstream release is approved for consumption?

Also, upstream OE-core makes a named release branch before the actual release so it can start accept patches to master before the actual release date (I think in particular because there is an amount of time were the release is undergoing QA and they don't want to block patches while waiting). I don't think you necessarily need to do this, but you might want to mention it because there will be an amount of time where "master" of meta-arm will actually pair with the release branch in OE-core (instead of master), which might be confusing. Finally, some might misconstrue T - 0 with the creation of branch in OE-core (hence the first comment).

Quoted 3 lines
#2 lore raw
Quoted 59 lines · Joshua Watt

Thanks for this! It all looks reasonable to me. I have a few comments below, but they are just clarifications and observations.

Quoted 45 lines · Jon Mason

Problem

The Yocto Project releases twice a year (April and October): "stable" releases are made every six months and have a lifetime of seven months to allow for migration, while "long term support" (LTS) releases are picked every two years starting from Dunfell in April 2020. The standard practice for all Yocto Compatible layers is to create a "named" branch consistent with the code name of that release.   For example, the “dunfell” release of Yocto will have a branch named “dunfell” in the official git repository, and layers compatible with dunfell will have a branch named “dunfell”.  Thus, a customer can easily organise a collection of appropriate layers to make a product.

In Yocto, these named branches are “stable”, and only take bug fixes or security-critical upgrades.  Active development occurs on the master branch.  However, this methodology can be problematic if mimicked with the compatible layers.  Companies or open source projects may not wish to release a snapshot of the relevant “master” branches under active development, due to the amount of testing, fixing, and hardening necessary to make a product from a non-stable release.  Also, changes to keep the master branch of a layer working with the upstream master branch of Yocto may result in that branch no longer being compatible with named branches (e.g., it might not be possible to mix and match master and dunfell).  So, a decision must be made on the branching policy of meta-arm.

Proposal

There are many different ways to resolve this issue.  After some discussion, the best solution for us is to allow new features and hardware enablement to be included in named branches (not just bug fixes).  This will allow for a more stable software platform for software to be developed, tested, and released.  Also, the single branch allows for focused testing (limiting the amount of resources needed for CI/CD), lessens/eliminates code diverging on various branches, and lessens confusion on which branch to use. The risk of making this choice is a potentially non-stable branch which will require more frequent testing to lessen the risk, and not following the “stable” methodology of the core Yocto layers (though it is not uncommon for BSP layers to behave as we are recommending).

Process

Quoted 9 lines

The process for patches intended on being integrated into only the master branch is the normal process of pushing to meta-arm mailing list for community review, approval and integration into upstream meta-arm master branch.  For patches intended on being included in a named branch are also the normal internal process of pushing to mailing list for community review, approval and integration into meta-arm named branch. However, any patches intended on being included on a named branch must also be sent for inclusion in the master branch in a timely fashion (no more than 1 week after inclusion into the named branch).

Quoted 3 lines

Just as a note, this is opposite of most other layers where it's required to be in master (or shown to be inappropriate for some reason) before it's backported to the release branch

Yes, this was a request by our platforms team. It is my EXTREME preference that everything go into master first. However, if there is a deadline where it is only possible to do one, then it is acceptable to do the named branch first.

If it becomes a problem of people not pushing into master in a timely fashion, expect this to be revisited (and reversed to the master first).

Quoted 27 lines
Quoted 27 lines

Branching strategy

Named branches for meta-arm will be released as close as possible to the release of the YP LTS release.  Meta-arm named branches will be created from the meta-arm master branch.

To minimize the additional work of maintaining multiple branches it is assumed that there will only be two active branches at any given time:
master and the most recent Long Term Stable (LTS) as the named branch. All previous named will be EOLed when a new LTS has been released.   Any branches that are EOLed will still exist in the meta-arm, but patches will not be accepted.

Branch transitions

When an upcoming YP LTS is approaching release, meta-arm will attempt to stabilize master so that the releases can coincide.

T-6 weeks - Email is sent to meta-arm mailing list notifying of upcoming code freeze of features to meta-arm

T-4 weeks - Code freeze to meta-arm.  Only bug fixes are taken at this point.

Quoted 6 lines
Quoted 3 lines

T-0 - All bugs are fixed and layer is stable, new named branch is created based on master and no new patches accepted to any previous named branches.  Master branch will start accepting patches again.

You might clarify the reference point here... is T - 0 the date the upstream release is approved for consumption?

Yes, this is my intention, but couldn't think of how best to word it. T-0 is the upstream release (barring instablity in meta-arm). I'll reword this to make it more clear.

Quoted 9 lines

Also, upstream OE-core makes a named release branch before the actual release so it can start accept patches to master before the actual release date (I think in particular because there is an amount of time were the release is undergoing QA and they don't want to block patches while waiting). I don't think you necessarily need to do this, but you might want to mention it because there will be an amount of time where "master" of meta-arm will actually pair with the release branch in OE-core (instead of master), which might be confusing. Finally, some might misconstrue T - 0 with the creation of branch in OE-core (hence the first comment).

Thanks, I'll reword this in our internal documentation.

Thanks,
Jon

Quoted 7 lines
Quoted 5 lines
#3 lore raw
In reply to Jon Mason
Quoted 29 lines · Jon Mason

Problem

The Yocto Project releases twice a year (April and October): "stable" releases are made every six months and have a lifetime of seven months to allow for migration, while "long term support" (LTS) releases are picked every two years starting from Dunfell in April 2020. The standard practice for all Yocto Compatible layers is to create a "named" branch
consistent with the code name of that release. For example, the
“dunfell” release of Yocto will have a branch named “dunfell” in the official git repository, and layers compatible with dunfell will have a branch named “dunfell”. Thus, a customer can easily organise a collection of appropriate layers to make a product.

In Yocto, these named branches are “stable”, and only take bug fixes or security-critical upgrades. Active development occurs on the master branch. However, this methodology can be problematic if mimicked with the compatible layers. Companies or open source projects may not wish to release a snapshot of the relevant “master” branches under active development, due to the amount of testing, fixing, and hardening necessary to make a product from a non-stable release. Also, changes to keep the master branch of a layer working with the upstream master branch of Yocto may result in that branch no longer being compatible with named branches (e.g., it might not be possible to mix and match master and dunfell). So, a decision must be made on the branching policy of meta-arm.

Proposal

Quoted 13 lines

There are many different ways to resolve this issue. After some discussion, the best solution for us is to allow new features and hardware enablement to be included in named branches (not just bug fixes). This will allow for a more stable software platform for software to be developed, tested, and released. Also, the single branch allows for focused testing (limiting the amount of resources needed for CI/CD), lessens/eliminates code diverging on various branches, and lessens confusion on which branch to use. The risk of making this choice is a potentially non-stable branch which will require more frequent testing to lessen the risk, and not following the “stable” methodology of the core Yocto layers (though it is not uncommon for BSP layers to behave as we are recommending).

thanks for the clarifications. I believe it makes sense, and I agree that BSP layers tend to follow a similar process (even though it's not always documented).

Quoted 14 lines

Process

The process for patches intended on being integrated into only the master branch is the normal process of pushing to meta-arm mailing list for community review, approval and integration into upstream meta-arm master branch. For patches intended on being included in a named branch are also the normal internal process of pushing to mailing list for community review, approval and integration into meta-arm named branch. However, any patches intended on being included on a named branch must also be sent for inclusion in the master branch in a timely fashion (no more than 1 week after inclusion into the named branch).

Quoted 6 lines

Branching strategy

Named branches for meta-arm will be released as close as possible to the release of the YP LTS release. Meta-arm named branches will be created from the meta-arm master branch.

Why only LTS releases? Are you not planning to have named branches for stable (e.g. non LTS) releases as well?

Quoted 8 lines

To minimize the additional work of maintaining multiple branches it is assumed that there will only be two active branches at any given time:
master and the most recent Long Term Stable (LTS) as the named branch.
All previous named will be EOLed when a new LTS has been released. Any
branches that are EOLed will still exist in the meta-arm, but patches will not be accepted.

I believe users will need a branch for non LTS stable releases as well. It might not be an 'active' product/development branch for you of course, but it should exist and be opened to accept community patches at least. With the new LTS process we now expect 3 types of OE/YP users:
1. active developers on master
2. stable users on current stable, who can switch every 6 month
3. LTS users

Quoted 19 lines

Branch transitions

When an upcoming YP LTS is approaching release, meta-arm will attempt to stabilize master so that the releases can coincide.

T-6 weeks - Email is sent to meta-arm mailing list notifying of upcoming code freeze of features to meta-arm

T-4 weeks - Code freeze to meta-arm. Only bug fixes are taken at this point.

T-0 - All bugs are fixed and layer is stable, new named branch is created based on master and no new patches accepted to any previous named branches. Master branch will start accepting patches again.

#4 lore raw
Quoted 84 lines · Nicolas Dechesne
Quoted 29 lines · Jon Mason

Problem

The Yocto Project releases twice a year (April and October): "stable" releases are made every six months and have a lifetime of seven months to allow for migration, while "long term support" (LTS) releases are picked every two years starting from Dunfell in April 2020. The standard practice for all Yocto Compatible layers is to create a "named" branch
consistent with the code name of that release. For example, the
“dunfell” release of Yocto will have a branch named “dunfell” in the official git repository, and layers compatible with dunfell will have a branch named “dunfell”. Thus, a customer can easily organise a collection of appropriate layers to make a product.

In Yocto, these named branches are “stable”, and only take bug fixes or security-critical upgrades. Active development occurs on the master branch. However, this methodology can be problematic if mimicked with the compatible layers. Companies or open source projects may not wish to release a snapshot of the relevant “master” branches under active development, due to the amount of testing, fixing, and hardening necessary to make a product from a non-stable release. Also, changes to keep the master branch of a layer working with the upstream master branch of Yocto may result in that branch no longer being compatible with named branches (e.g., it might not be possible to mix and match master and dunfell). So, a decision must be made on the branching policy of meta-arm.

Proposal

Quoted 13 lines

There are many different ways to resolve this issue. After some discussion, the best solution for us is to allow new features and hardware enablement to be included in named branches (not just bug fixes). This will allow for a more stable software platform for software to be developed, tested, and released. Also, the single branch allows for focused testing (limiting the amount of resources needed for CI/CD), lessens/eliminates code diverging on various branches, and lessens confusion on which branch to use. The risk of making this choice is a potentially non-stable branch which will require more frequent testing to lessen the risk, and not following the “stable” methodology of the core Yocto layers (though it is not uncommon for BSP layers to behave as we are recommending).

thanks for the clarifications. I believe it makes sense, and I agree that BSP layers tend to follow a similar process (even though it's not always documented).

Quoted 14 lines

Process

The process for patches intended on being integrated into only the master branch is the normal process of pushing to meta-arm mailing list for community review, approval and integration into upstream meta-arm master branch. For patches intended on being included in a named branch are also the normal internal process of pushing to mailing list for community review, approval and integration into meta-arm named branch. However, any patches intended on being included on a named branch must also be sent for inclusion in the master branch in a timely fashion (no more than 1 week after inclusion into the named branch).

Quoted 6 lines

Branching strategy

Named branches for meta-arm will be released as close as possible to the release of the YP LTS release. Meta-arm named branches will be created from the meta-arm master branch.

Why only LTS releases? Are you not planning to have named branches for stable (e.g. non LTS) releases as well?

Quoted 8 lines

To minimize the additional work of maintaining multiple branches it is assumed that there will only be two active branches at any given time:
master and the most recent Long Term Stable (LTS) as the named branch.
All previous named will be EOLed when a new LTS has been released. Any
branches that are EOLed will still exist in the meta-arm, but patches will not be accepted.

Quoted 7 lines

I believe users will need a branch for non LTS stable releases as well. It might not be an 'active' product/development branch for you of course, but it should exist and be opened to accept community patches at least. With the new LTS process we now expect 3 types of OE/YP users:
1. active developers on master
2. stable users on current stable, who can switch every 6 month
3. LTS users

This is more of setting internal expectations on what they can submit things to. My major concern is the overhead of maintaining multiple branches, specifically testing. I would be happy to cut a release every cycle, and, based on master CI, it should be stable. Then just take bug fixes for these branches. Would this be sufficient?

Thanks,
Jon

Quoted 23 lines
Quoted 21 lines

Branch transitions

When an upcoming YP LTS is approaching release, meta-arm will attempt to stabilize master so that the releases can coincide.

T-6 weeks - Email is sent to meta-arm mailing list notifying of upcoming code freeze of features to meta-arm

T-4 weeks - Code freeze to meta-arm. Only bug fixes are taken at this point.

T-0 - All bugs are fixed and layer is stable, new named branch is created based on master and no new patches accepted to any previous named branches. Master branch will start accepting patches again.

#5 lore raw
Quoted 103 lines · Jon Mason
Quoted 8 lines · Nicolas Dechesne
Quoted 6 lines · Jon Mason

Problem

The Yocto Project releases twice a year (April and October): "stable" releases are made every six months and have a lifetime of seven months to allow for migration, while "long term support" (LTS) releases are picked every two years starting from Dunfell in April 2020. The

standard

Quoted 7 lines
Quoted 7 lines

practice for all Yocto Compatible layers is to create a "named" branch
consistent with the code name of that release. For example, the
“dunfell” release of Yocto will have a branch named “dunfell” in the official git repository, and layers compatible with dunfell will have a branch named “dunfell”. Thus, a customer can easily organise a collection of appropriate layers to make a product.

Quoted 7 lines
Quoted 7 lines

In Yocto, these named branches are “stable”, and only take bug fixes or security-critical upgrades. Active development occurs on the master branch. However, this methodology can be problematic if mimicked with the compatible layers. Companies or open source projects may not wish to release a snapshot of the relevant “master” branches under active development, due to the amount of testing, fixing, and hardening necessary to make a product from a non-stable release. Also, changes

to

Quoted 7 lines
Quoted 7 lines

keep the master branch of a layer working with the upstream master branch of Yocto may result in that branch no longer being compatible with named branches (e.g., it might not be possible to mix and match master and dunfell). So, a decision must be made on the branching policy of meta-arm.

Quoted 7 lines
Quoted 7 lines

Proposal

There are many different ways to resolve this issue. After some discussion, the best solution for us is to allow new features and hardware enablement to be included in named branches (not just bug fixes). This will allow for a more stable software platform for software to be developed, tested, and released. Also, the single

branch

Quoted 3 lines
Quoted 3 lines

allows for focused testing (limiting the amount of resources needed for CI/CD), lessens/eliminates code diverging on various branches, and lessens confusion on which branch to use. The risk of making this

choice

Quoted 6 lines
Quoted 5 lines

is a potentially non-stable branch which will require more frequent testing to lessen the risk, and not following the “stable” methodology of the core Yocto layers (though it is not uncommon for BSP layers to behave as we are recommending).

Quoted 12 lines

thanks for the clarifications. I believe it makes sense, and I agree that BSP layers tend to follow a similar process (even though it's not always documented).

Quoted 7 lines

Process

The process for patches intended on being integrated into only the master branch is the normal process of pushing to meta-arm mailing list for community review, approval and integration into upstream meta-arm master branch. For patches intended on being included in a named

branch

Quoted 10 lines
Quoted 10 lines

are also the normal internal process of pushing to mailing list for community review, approval and integration into meta-arm named branch. However, any patches intended on being included on a named branch must also be sent for inclusion in the master branch in a timely fashion (no more than 1 week after inclusion into the named branch).

Branching strategy

Named branches for meta-arm will be released as close as possible to

the

Quoted 4 lines
Quoted 3 lines

release of the YP LTS release. Meta-arm named branches will be created from the meta-arm master branch.

Quoted 9 lines

Why only LTS releases? Are you not planning to have named branches for stable (e.g. non LTS) releases as well?

Quoted 5 lines

To minimize the additional work of maintaining multiple branches it is assumed that there will only be two active branches at any given time:
master and the most recent Long Term Stable (LTS) as the named branch. All previous named will be EOLed when a new LTS has been released.

Any

Quoted 5 lines
Quoted 3 lines

branches that are EOLed will still exist in the meta-arm, but patches will not be accepted.

I believe users will need a branch for non LTS stable releases as well.

It

Quoted 1 line

might not be an 'active' product/development branch for you of course,

but

Quoted 5 lines

it should exist and be opened to accept community patches at least. With the new LTS process we now expect 3 types of OE/YP users:
1. active developers on master
2. stable users on current stable, who can switch every 6 month
3. LTS users

Quoted 6 lines

This is more of setting internal expectations on what they can submit things to. My major concern is the overhead of maintaining multiple branches, specifically testing. I would be happy to cut a release every cycle, and, based on master CI, it should be stable. Then just take bug fixes for these branches. Would this be sufficient?

I think so. The key thing here is to have a branch publicly available and accepting community patches that might come.

Quoted 32 lines

Thanks,
Jon

Quoted 7 lines
Quoted 7 lines

Branch transitions

When an upcoming YP LTS is approaching release, meta-arm will attempt

to

Quoted 3 lines
Quoted 3 lines

stabilize master so that the releases can coincide.

T-6 weeks - Email is sent to meta-arm mailing list notifying of

upcoming

Quoted 13 lines
Quoted 11 lines

code freeze of features to meta-arm

T-4 weeks - Code freeze to meta-arm. Only bug fixes are taken at this point.

T-0 - All bugs are fixed and layer is stable, new named branch is created based on master and no new patches accepted to any previous named branches. Master branch will start accepting patches again.