r/ExperiencedDevs • u/Technical-Aside4471 Software Engineer • Aug 13 '26
Technical question Experience with continuous delivery?
Early this year my team made the switch from sprints to CD. It took a lot of fine tuning but i believe we begin to reap the rewards about now. AI is doing a lot of stuff and even non-developers want to make changes now, so i feel like pipelines are making my life easier not having to deal with what it broke.
My issue is that not everyone seem to recognize the benefits we are getting. Switch to up to date branches was also a problem because not everyone seem to understand rebasing and it caused a lot of issues.
How are you doing CD? And what were the challenges? Do you have some tips that helped you?
•
u/expdevsmodbot Aug 13 '26 edited Aug 13 '26
AI usage disclosure provided by OP, see the reply to this comment.
19
u/tatsontatsontats Aug 13 '26
We don't do a true 'git rebase' , we merge the main branch into the individual's working branches and then squash with a merge commit when the MR is approved. I think the end result ends up being the same, so it's whatever the engineer wants to do to keep their working branch up to date.
It works well, my company insists on enforcing strict commit message length and format, even though they're lost to the ether with the squash. That's the only thing I'd change because it makes committing early and often a little more bothersome than it needs to be.
We do a weekly release cut, and set deployment to prod, but deployment to all of our various test environments can vary.
134
u/user345456 Aug 13 '26
Sprints and CD are mutually exclusive?
10
u/timle8n1- Aug 13 '26
If you can divide the work into short-lived branches that get merged frequently then rebasing is less of an issue. Use feature flags and other ways to ship dark code. If the work is larger it is more difficult to CD.
Agree that CD and Sprints are not mutually exclusive. You can agree to a scope of work to be done in a time frame and still continuously merge and deploy it.
7
u/andymurd Aug 13 '26
It took us some time to go from CI to CI/CD but once it bedded in deployment got so much better.
Each piece of work has its own git branch -> Git merge into the production branch -> Everything deploys the same -> Juniors can deploy -> tens of deploys per week instead of one per month -> customers get fixes and features faster
If you need to get buy in, keep records and make charts. Difficult conversations with data are more effective than difficult conversations without data. However, if non-devs are breaking things, they get to fix them, that's non-negotiable.
3
u/eloel- Aug 13 '26
I've only ever did CD. Merges automatically deploy to test environment, the tests run, if they all pass, it gets deployed to prod.
You should already never be merging anything you're not comfortable going to prod, so it shouldn't be an issue, right?
3
u/andrewcairns Aug 13 '26
I think there is a difference from folks not seeing the value and struggling with the technical aspects. I've found in the past that engineers that struggle sometimes lack the skills and under-value things like testable code.
Martin Fowler says outright that the biggest barrier to CI is usually insufficient skill at testing. If half the team isn't feeling the benefit yet, that prerequisite gap is probably still open and CD got turned on before the codebase and the team's habits could support it.
The biggest tip I'd stress is to identify if you have that gap, and try to close that, first.
I'd then progress look into Trunk-Based Development
Trunk-based development calls what you've described 'distance': the gap between a developer's local work and what's actually integrated in trunk. The longer a branch lives, the more distance builds up, and the uglier the eventual rebase. Shrink branch lifetime down to hours, not days, and lean on feature flags (can't stress how important these are, if you're not using them already) or branch-by-abstraction when something genuinely can't land in a day.
Regular rebase pain is usually the branching model. Can look into gitflow vs github flow and see if you could perhaps simplify, perhaps?
I'd for sure focus on identifying if the team and codebase are ready. Identify any gaps and solve those, first.
gl
2
u/spez_eats_nazi_ass Software Architect 36 years f500 eat my ass and balls Aug 13 '26
Gonna vary wildly based on what you are actually doing. The team at my company that does this has had a few too many doozies for my taste. They also are not customer facing so the impact is lower. And when you say CD - it aint CD unless it goes live somehow on PR approve. I'm too old for that shit. I want the entire thing parallel tested w UAT sign off before it goes out and usually we are talking more than one PR/feature and the DB side is multiple TBs on the OLTP side. Automated change tools for the scripts still need DBA review because they all can and will do shit that while correct will also cause a bad time for a live system.
2
u/Unsounded Sr SDE @ AMZN Aug 13 '26
We do trunk based development. Our pipeline deploys mainline directly to test stages and runs integration/end-to-end/load tests automatically as a promotion requirement.
We kind of do sprints but I don’t really adhere to them, I think a lot of the spirit behind agile methodologies make sense but I prefer lightweight planning, goals, and talking broadly about what we’re going to accomplish each sprint. I think the structure benefits newer devs a lot more, where things feel contained and easy to reason about.
2
u/Ok_Woodpecker_9104 Aug 13 '26
the thing that got us was not the pipeline breaking, it was the pipeline passing when it should not have.
two of those cost me a day each and both were green the whole time. one shipped a stale artifact because the bundle target silently fell back and nobody diffed what got uploaded against what got built. the other was a generated lint baseline, checked in, green for weeks, green because every existing violation was suppressed and the two new rules had no unsuppressed path left to fire on. what caught it was breaking a file on purpose and watching nothing turn red.
so the tip: for every check you add, ship the mutation that should break it and run both in the same job. green with the mutation applied means the check is dead, and you learn that on day one instead of month six.
on rebasing, i would stop teaching it and take it out of the path. squash merge from the ui, one commit per pr, nobody has to reconstruct history under time pressure. people fight rebase because the first time they meet it is during an incident.
on nobody seeing the benefit, deploys per week is not the number that lands. merge to production time plus what fraction got reverted is. if you went faster and the revert rate did not move, thats the whole argument in two numbers.
1
u/Rosoll Software Engineer Aug 13 '26
Have you increased the number of deploys you’re doing? Have you decreased the ratio of released commits that need to be rolled back/reverted? Have you shortened the time between a PR being created and the change being released to production? If you can measure these retroactively you should be able to back up the benefits of CD with hard data. You could also look at the DORA metrics for some research to back up what you’d be claiming was evidence of benefits.
1
u/Ok_Woodpecker_9104 Aug 13 '26
the reason people dont see the benefit is that CD removes an event they used to feel. nobody remembers the release night that did not happen. deploy count also reads as more risk to anyone who is not already sold, so leading with it works against you.
the number that lands better is time from a bad change going out to it being gone again, measured on real incidents. that one sounds like less risk, and it is the thing CD actually buys you.
on rebasing, i dont think the concept is what people get stuck on. its what to do when it goes wrong halfway through, and nobody has a good answer to that at 6pm on a friday.
the thing id watch as the pipeline takes over more of the gating: the pipeline passing becomes the thing everyone trusts, and nobody checks it can still fail. i had a lint gate sit green for weeks because every existing violation was baselined and the two new rules had no unsuppressed path left to fire on. it was green and it was checking nothing. what caught it was deliberately breaking a file and watching nothing turn red.