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

What are good reasons to use trunk-based dev, as opposed to release branch to release branch?

From
DKDavid Karr <davidmichaelkarr@gmail.com>
Date
Apr 7, 2024, 17:16 UTC
Message-ID
<CAA5t8Vp9ugXrgawDYA-+2mXT_RWPUUvv-rH9P+Exgb2dtvX6Sw@mail.gmail.com>

Personally, I always use trunk-based development. New changes go into feature branches from master, and are merged to master after approval. When we're ready to make a release, we create the release branch from master, very few changes go into the release branch after we cut it. Any changes that have to go into the release branch are first merged to master, and then cherry-picked to the release branch.

My team maintains the "platform" for a large number of similarly-constructed microservices. That includes the build process, foundation libraries, and some development guidance to the teams developing those services. We advise using trunk-based development, but it's up to each team what they actually do. I recently heard of some teams doing what I would roughly call "release-to-release" development, which means at some point in the distant past they created a release branch from master, and then the next release they cut from that release branch, ad infinitum.

What bothers me is that although I know this practice is wrong, I don't think I can fully and completely describe why it is wrong, and why TBE is better.

At a minimum, I know that with TBE, someone with no knowledge of the repository can look at the master branch and know that represents the latest work on the repository.

I can't very argue that their practice results in "merge hell" when merging to master, because they never actually do that.

Can someone describe the flaws in this roughly named "release-to-release" strategy, and why TBE is better?

Next: rsbecker@nexbridge.com
Message 1 of 2 in “What are good reasons to use trunk-based dev, as opposed to release branch to release branch?”
  1. David KarrApr 7, 2024
  2. rsbecker@nexbridge.comApr 7, 2024

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.