Skip to contentSkip to conversation

How do changes get merged from master to release branches

DISCUSSION Aleksandar Nikolic 2 participants 2 messages Sep 20, 2024

lore
Share & tools
lore
#0 lore raw

Hi,

As the title says, I would like to understand how changes get merged from master to release branches?  Is it done automatically or manually? Can I read somewhere about this process?

An example: a few of my commits are at the moment only on the master branch. Some are fixes, which need to go to other branches as-is, while in some other commits the changes contain the version (e.g. 5.0.2), meaning those commits are not valid for branches other than scarthgap (e.g. kirkstone). For the former - am I supposed to cherry-pick these "fix" commits myself and provide a patch? For the latter - am I supposed to provide fresh patches, which reflect the branch in question (e.g. instead of having 5.0.2, the patch for kirkstone should have something like 4.0.21)?

Aleksandar

#1 lore raw

Hi Aleksandar,

Aleksandar Nikolic via lists.yoctoproject.org <aleksandar.nikolic010= [email protected]> escreveu (sexta, 20/09/2024 à(s) 08:11):

Quoted 6 lines

Hi,

As the title says, I would like to understand how changes get merged from master to release branches? Is it done automatically or manually? Can I read somewhere about this process?

Quoted 9 lines

An example: a few of my commits are at the moment only on the master branch. Some are fixes, which need to go to other branches as-is, while in some other commits the changes contain the version (e.g. 5.0.2), meaning those commits are not valid for branches other than scarthgap (e.g. kirkstone). For the former - am I supposed to cherry-pick these "fix" commits myself and provide a patch? For the latter - am I supposed to provide fresh patches, which reflect the branch in question (e.g. instead of having 5.0.2, the patch for kirkstone should have something like 4.0.21)?

OE-core have dedicated maintainers for specific branches/versions [1]. The maintainer of the older and LTS branches constantly backport bug fixes from the master branch.
But any user can help with this enfort sending patches as well:

git cherry-pick -s -x ...
git send-email [email protected] --subject-prefix="[OE-core][BRANCH_NAME][PATCH]" -1

Where BRANCH_NAME should be replaced by the target branch:
Styhead/Scarthgap/Kirkstone

There is still a good contribution guide [2] on the Yocto documentation that can also help.

[1] https://wiki.yoctoproject.org/wiki/Releases
[2] https://docs.yoctoproject.org/contributor-guide/index.html

Jose

Quoted 14 lines

Aleksandar

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#63871):
https://lists.yoctoproject.org/g/yocto/message/63871
Mute This Topic: https://lists.yoctoproject.org/mt/108554660/5052612
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Signature · 3 lines
Best regards,

José Quaresma