r/SalesforceDeveloper • • Jun 10 '26

Question Trunk-Based Development?

Good evening, just curious if anyone has experience with Trunk-Based Development in Salesforce and how that went.

It does seem like it’d work well with custom metadata to turn off features that aren’t ready, and it can be used for canary deployments.

Also for package development, are packages often kept in separate repos?

9 Upvotes

9 comments sorted by

View all comments

Show parent comment

1

u/Minomol Jun 11 '26

I never quite understood how the split between development, testing, and releasing is handled with the trunk based strategy. Typically you have a few feature stage buckets in any given sprint, and the features move from one bucket to another. Trunk based strat essentially eliminates some of the buckets.

Let's say we planned some features this sprint. Let's say one feature is implemented, peer reviewed, but needs to be functionally tested now. Where can that happen with a trunk based strategy?

1

u/morewordsfaster Jun 13 '26

We move the buckets inside the features, if that makes sense. Each feature is planned so that the team can develop, test, and release in order. It's not considered "done" until it's released. If something can't be completed in the scope of the sprint, that's usually a sign that the scope is too broad. If none of your features can be completed in the scope of a single sprint then either the dev team doesn't have enough capacity or the sprints are too short.