Latest / Ship It Weekly - DevOps, SRE, Platform and Cloud Engineering News / Ship It Conversations: Stephane Moser on Pipedrive’s Jenkins-to-GitHub Actions Migration, Argo CD, and CI/CD at Scale
Transcript
- 0:00A lot of teams say they want better CICD. What
- 0:03they usually mean is they want fewer weird failures,
- 0:07less shared state nonsense, less tribal knowledge,
- 0:10and way less time wasted fighting the delivery
- 0:14system itself. Because the problem is not just
- 0:17that Jenkins is old. The problem is when your
- 0:19pipelines are noisy, Fragile, hard to reuse,
- 0:23hard to observe, and tightly coupled to a bunch
- 0:25of infrastructure decisions developers should
- 0:28not have to think about. And when you finally
- 0:31fix the problem, you get a different problem.
- 0:33Success. Because once delivery gets fast and
- 0:37easy, people start using it for everything. Bots,
- 0:40maintenance changes, dependency bumps, mass rollouts,
- 0:44and now the real question becomes, how do you
- 0:46keep the system smooth when everybody finally
- 0:49trusts it? Like and subscribe! Hey, I'm Brian.
- 1:08I work in DevOps and SRE, and I run Tellers Tech.
- 1:11Ship It Weekly is where I filter the noise and
- 1:13focus on what actually matters when you are the
- 1:15one running infrastructure and owning reliability.
- 1:18Most weeks, it's a quick news recap. In between
- 1:20those, I do interview episodes with people who
- 1:23have actually built things, migrated real systems,
- 1:26and learned what works the hard way. Today is
- 1:28one of those conversations. I'm joined by Stefan
- 1:31Moser from Pipedrive. he helped lead a big move
- 1:34from Jenkins to GitHub Actions, built a self
- 1:37-hosted runner platform on Kubernetes, moved
- 1:40delivery towards GitOps with Argo CD, and helped
- 1:43roll that model out across a large internal estate
- 1:46with hundreds of services. And what I like about
- 1:49this one is it's not just tool talk. We get into
- 1:52why Jenkins had become painful, from groovy fiction
- 1:55to noisy neighbor problems on shared VMs. Why
- 1:59GitHub Actions ended up fitting better. How reusable
- 2:02workflows and custom actions helped. Why they
- 2:05chose Argo CD over other deployment options.
- 2:08And how they had to build better internal observability
- 2:11because GitHub alone was not enough at their
- 2:14scale. We also talk about the migration strategy.
- 2:17which honestly is one of the best parts. Dogfooding
- 2:20first, migrating in batches, using internal teams
- 2:24as the first proving ground, letting the process
- 2:27get polished before pushing it wider, and building
- 2:30something self -service enough that teams eventually
- 2:33started migrating on their own. And then there
- 2:36is the mobile story, which is its own thing.
- 2:38Mac minis, messy runner drift, different toolchains
- 2:42and the surprisingly practical path they landed
- 2:45on after testing a few different options for
- 2:48stabilizing mobile CI. If you care about CI CD
- 2:51architecture, platform engineering, GitHub actions
- 2:54at scale, or how to do a migration like this
- 2:57without setting your org on fire, this one is
- 3:00worth your time. All right, let's jump in. Today,
- 3:08I'm joined by Stefan Moser from Pipedrive. He
- 3:11helped lead a big move from Jenkins to GitHub
- 3:13Actions and built a self -hosted runner platform
- 3:15on Kubernetes, plus a GitOps CD flow with Argo
- 3:19CD. And we're going to talk about what worked,
- 3:21what broke, and what's worth copying. Stefan,
- 3:24thanks for joining me. Thank you. Thank you for
- 3:26the opportunity to talk about this adventure.
- 3:30Basically, it's not the first time I'm talking
- 3:33about this. I already had... meetup session that
- 3:37was recorded on YouTube, two blog posts, and
- 3:40basically just sharing again these adventures.
- 3:44But now with a little sparking because something
- 3:49already after one year already changed. So I
- 3:52have more stuff to add to these blog posts and
- 3:57meetup that we had. Awesome. Well, I'm excited
- 4:00to learn more. So starting off, can you give
- 4:03me a thesis? Why did Jenkins stop working for
- 4:06you, and what were you trying to optimize with
- 4:08this new system? So basically, the first problem
- 4:11that we had with Jenkins is Jenkins decides being
- 4:14the pipelines being written in Groovy. That was
- 4:16the first problem. In Pipedrive, we are mainly
- 4:19working with TypeScript and Go. Groovy was really
- 4:22not very needed for us, so it was a bearer. for
- 4:27the DevOps teams that we had at that time, plus
- 4:29the engineers trying to do writing something.
- 4:31That was the first issue. The second issue was
- 4:34basically the setup. So we had VMs, and that
- 4:37VMs were not isolated. So that means if a big
- 4:42pipeline lands in one VM, and we had other pipelines
- 4:47like to build the Docker containers, then we
- 4:50had the issue with the nice... noisy neighborhood
- 4:54so basically we get a starvation of the resource
- 4:57so it's really not predictable we tried to to
- 5:01improve that so we had a crazy idea first to
- 5:04build a internal ci engine so that was really
- 5:07the most crazy thing they did so basically copy
- 5:10the idea of yaml from github's gitlab ci we build
- 5:15the engine and then start to work on that but
- 5:18then we had another issues People need to learn
- 5:21and use syntax. And after GitHub Land launched
- 5:24GitHub Actions, people started using it, some
- 5:27developers started using it in their app stores.
- 5:29And then we were thinking, why not experimenting?
- 5:32And the first idea was basically, besides Jenkins,
- 5:35we had another product, CodeChip, that was to
- 5:38do the pull request validation. So every time
- 5:40the pull request is open, we had a typical lint
- 5:44and test work. So basically linting to building
- 5:47the... Code, leading the code, and doing the
- 5:52unit tests. They were running in the code chip.
- 5:55And I can tell it was worse than Jenkins because
- 5:59every project was individual. So imagine if I
- 6:02had to change or to share something, it's very
- 6:05difficult. So we had an idea. Well, let's try
- 6:08to win the GitHub Actions. And basically, I team
- 6:12up with a colleague, Gregor. And basically, it
- 6:17was the idea that... Let's replace CodeChip with
- 6:20GitHub. Actually, let's see what happens. And
- 6:22that was really the kickoff. So we get a green
- 6:27card to export idea. So the first thing was thinking
- 6:31that is, okay, I need to run this somewhere.
- 6:34Probably GitHub, even we had a free package,
- 6:39will not be enough. So let's go to find solutions
- 6:43for self -hosting. We found, after some ideas,
- 6:48we found a community project. It is ARC, Actions
- 6:53Run Controller. At this moment, it's already
- 6:54belonging to or maintained by Gita, but at that
- 6:57time was really purely community -based. One
- 7:01thing that it was very... Important for us, or
- 7:04very convenient for us, it was a Kubernetes controller.
- 7:08So we spent the last years working with Kubernetes.
- 7:12We are understanding the Kubernetes API, these
- 7:15CRDs, all talking in the Kubernetes way. So it
- 7:20was more easy to work with that. So we define
- 7:23resource, get runners running, fine. One thing
- 7:27that is also awesome, we can grab a pre -built
- 7:30image and then... and put that customization
- 7:33that you want. So basically, developer needs
- 7:36HGK, IKH, or different tooling. Just put it inside
- 7:41of that custom image and then we ship it. It
- 7:48was even for easy. Then we already know how to
- 7:52restrict and monitoring Kubernetes in production.
- 7:55Just apply the same idea in the... CI environment
- 7:59so basically I did a thing that is normally not
- 8:02normal standard so basically I don't I didn't
- 8:05set the requests to be the smallest possible
- 8:09most necessary no I just was brute force so I
- 8:13say for example set the request and the limits
- 8:16to be almost the same so that I could have one
- 8:20thing that is pretty bit in the So that every
- 8:25time a developer gets a runner, it's always the
- 8:31same CPU and memory. So that avoids the problem
- 8:35of noisy neighborhoods. Then we had already ideas
- 8:40how to, we already know how to see and control
- 8:43the resource in Kubernetes. So apply the same
- 8:46metrics. So basically we bring back the, of the
- 8:49really tools that we had in production to. the
- 8:52ci cluster but then we also did want to be more
- 8:56straightforward in in the process to maintain
- 9:02the clusters basically instead of building the
- 9:05cluster from scratch we use ets to be more easy
- 9:09and then we want to to have scalability in terms
- 9:12of the nodes we decide then to go to the new
- 9:15project at that time was carpenter so basically
- 9:18the the magic way of AWS to spawn nodes faster
- 9:24than a cluster of auto -scaling. So basically,
- 9:29then we get this solution. So a controller that
- 9:31was listing the GitHub app books to spawn jobs,
- 9:34spawn when the instance creates a new pod that
- 9:38represents a runner. If that runner doesn't have
- 9:40a space, the carpenter then creates a new node.
- 9:43and that was really bring the flexibility okay
- 9:45i just need to set the max number of thoughts
- 9:49or the runners and the ecosystem for the cluster
- 9:53scale up and scale down when when necessary and
- 9:56this was really basically the why we we moved
- 10:02to uh two changes and first steps we then basically
- 10:06did the migration of code chip to github actions
- 10:09at that time also was released the reusable workflow
- 10:13so that means we are able to reusable to create
- 10:16a workflow and spread that workflow to the old
- 10:19repositories so reducing the the repetition that
- 10:26we had and the manual configuration we had with
- 10:28Jenkins with the code chip and Basically, after
- 10:32we dropped out of CodeChip, it was the time that
- 10:35we had the opportunity to revamp CI -CD. So we
- 10:39bring a group of engineers, I think four engineers
- 10:45plus a developer experience product manager.
- 10:52So basically, we had a product manager dedicated
- 10:55for the developer experience. And then we decided
- 10:58to revamp. uh necessity and they basically said
- 11:01to put some kind of competition in in terms of
- 11:04tooling so i remember that the first contender
- 11:07was basically github actions in terms of ci but
- 11:10then also we bring argo workflows and tecton
- 11:16because were two projects that i was curious
- 11:19about using And in terms of deploying, I'm thinking
- 11:23Argo CD plus Flux. We even tried with Spinnaker,
- 11:28but it was so messy to spin up that system that
- 11:35we just dropped it. And how we chose, basically,
- 11:38first was... readability or feasibility or the
- 11:42easiness to create the workflows and the specific
- 11:46customizations so and that is really shine for
- 11:49us the kit of actions basically people complain
- 11:52about the action but really the fact that the
- 11:54actions are written in javascript and then we
- 11:56are using typescript so it's natural to create
- 11:59custom logic with typescript even then we can
- 12:02go to creating composite actions with some more
- 12:05for some batch scripting. Scripts, we just use
- 12:09that language to create the customization. And
- 12:12then it was really easy to pack up. So basically,
- 12:15we create action, we have a package, like a package,
- 12:18and then can put it a block that we can put in
- 12:21different place. And then the other point was
- 12:23basically about how we can expose or show the
- 12:28workflows to the developers. And that is... The
- 12:32less clicks the developer does, find lots better.
- 12:37And that, of course, makes the GitHub action
- 12:40to be a big content. So the fact that the workflows
- 12:44was next to the repository, the execution was
- 12:47next to the repository, the developer didn't
- 12:50need to switch to the platforms to see was really
- 12:54a big plus. Yeah. And that's really the reason
- 12:59why we went to... to GitHub Actions. Even at
- 13:02some point after this migration, what we had,
- 13:05it's basically a monorep of GitHub Actions. And
- 13:07I think we have 50 or 60 GitHub Actions. So basically,
- 13:11we just build our actions and even it's our monorep
- 13:15of all the code base that you want to reuse in
- 13:18the organization. In terms of development, of
- 13:22deployment, one thing that we want to make. clear
- 13:26is that we want to avoid push code. So one of
- 13:29the issues that we had always is that with Jenkins
- 13:31and this push idea is that fact that I need to
- 13:35have a runner in the clustered push code. That
- 13:38means that I need to give the Kubernetes credentials
- 13:42to a runner to be able to write stuff. And that
- 13:46means that in some way I can try to capture that
- 13:49runner and do malicious stuff. let's do the reverse
- 13:53so that is that the cluster is really in isolation
- 13:57and we get what we have it's someone inside that
- 14:01check something that it's really it's already
- 14:03trusted and use it to um to apply change in the
- 14:09cluster and that is really why you want to go
- 14:11to the to do githubs and of course in githubs
- 14:18we have two two tools to choose argo cd or flags
- 14:20yeah And in that case, it was basically one of
- 14:24the reasons why Argos CDF had a good UI comparing
- 14:30with Flux at that time. It was like two, three
- 14:33years ago. So that was really the big reason
- 14:38that we picked up with Argos CDF Flux for the
- 14:41UI. And then we had already a way to show to
- 14:44developers what has happened in a more easy way.
- 14:48Because again, that is that it's easy for developers
- 14:51to visualize doesn't mean that i allow them to
- 14:55change manifest with rcd yeah i know what i allow
- 14:58is to basically scope in inside of the application
- 15:02saying okay this is your application see your
- 15:05status you can go see the status of your resource
- 15:08you can see the logs if you need it you can see
- 15:12if the content the pod is it's restarting or
- 15:14not really um we added that idea. Yeah, you can
- 15:22show. Yeah, after that idea, I think that picking
- 15:27up the GitHub Actions took me like two days to
- 15:32create MVP of the deployment flow, basically
- 15:36because I was reusing everything that I already
- 15:38did in the CodeChip migration, and we decided
- 15:44to have that MVP, and then... see what are the
- 15:50gaps. So one thing that I forgot to mention is
- 15:53that initially in the first step or first iteration
- 15:57that we had with migrating to CodeChip, we had
- 16:00a problem with a lack of observability in terms
- 16:06of actions. GitHub at that time didn't provide
- 16:08any statistics about the actions. So if you want
- 16:12to know how long was the runner, we have any
- 16:17idea. You can just... see at the repository and
- 16:19was not good enough. But especially in our organization
- 16:22that we already have, at that time we had like
- 16:25700 service. We have architecture of microservice
- 16:30plus libraries. It was impossible to track at
- 16:34the repository level. So what we did is basically
- 16:36we create a service that lists these events and
- 16:39then starting putting everything inside of a
- 16:42database so that could build. a source that we
- 16:46can then do queries and then find uh what are
- 16:50the the performance of of the the workflow because
- 16:54at some point a manager a director or even cto
- 16:57can comes to us it says what is the failure rate
- 17:02of these uh workflows where what are the workflows
- 17:04that are taking or these guys what are the deployment
- 17:07flows that are taking more time what are the
- 17:09steps that we need to to optimize and then basically
- 17:12this is really our gut feeling that we need that
- 17:14information and we are storing that information.
- 17:17And until now, we're still using that service
- 17:20to track, even now to tracking more billing information,
- 17:24but it's really the source of truth. Okay, that
- 17:29was the phase one and phase two, phase three.
- 17:33It's basically making the product ready for the
- 17:37consumption. And one thing that we discovered
- 17:41that we lack, it's basically, again, organization
- 17:45-wide of the visibility. GitHub actually is great
- 17:50to see your workflows, to see the organization.
- 17:53It's bad because we don't have anything. So we
- 17:57create a service. That is basically a registration
- 18:01service plus a UI that we have in our back office.
- 18:05So basically we have a UI in our back office
- 18:08that shows all the deployments, but they need
- 18:11to have some source. And basically we create
- 18:13a service that consume events that we are producing
- 18:15in our workflows. And after consuming these events
- 18:20can do the mapping of what it's app. And basically
- 18:23we have basically our own interpretation of the
- 18:27events of. Because they have a different interpretation
- 18:31of what is deployment, what is a deploy, what
- 18:34is a region. And then basically we add that internal
- 18:38logic or that internal understanding what is
- 18:41build, test, unit test, functional test, end
- 18:44-to -end test, deploy to a region, deploy to
- 18:47a... deployment at a whole scale. And we have
- 18:52that understanding inside of a service. And basically
- 18:56this was initial, the service that was consuming
- 18:58everything to create observability of what we
- 19:03need to do or what we have in terms of deployments
- 19:07to production. And after that, we have that,
- 19:10after having that UI, we are more confident to
- 19:14go. Now goes the question, how you do this kind
- 19:18of release? 700 service. I think we have five
- 19:22teams or 10 teams at that time. It was really
- 19:28a big migration. How you start migrations? I
- 19:33think like any product should migrate or should
- 19:39be released, you first try it yourself. So basically...
- 19:42And we decided to migrate our own service. My
- 19:46team doesn't only produce CI, CD. We have a couple
- 19:49of service that supports the deployment flows
- 19:53and support the developer experience. So for
- 19:56example, we had one service that creates and
- 19:59do all the lifecycle of remote dev environment.
- 20:03So basically we have remote dev environments
- 20:05that developers can use that it's a replica of
- 20:08production. And then we have a system that creates
- 20:09that. For example, this is one of these servers
- 20:12that we need to migrate. And that is really basically
- 20:15like this. So I have scripts, I have workflow,
- 20:19I have documentation to do it. So I deliver to
- 20:22my teammates so that my teammates can migrate.
- 20:25These bring two good things. First, we test our
- 20:29process to someone that doesn't know about the
- 20:32process. And second, we allow... to share knowledge.
- 20:36So basically, knowledge that was restricted to
- 20:39that five people that create systems starting
- 20:41to be spread to the team because I'm sharing
- 20:43that knowledge by forcing the people to do the
- 20:46migration. And basically, it was basically this
- 20:49alpha grouping. Then we had a different team.
- 20:53So basically, it was a platform team that it's
- 20:56more experienced than the normal developers around
- 20:59stuff with Kubernetes. and the deployment process
- 21:02and they have more out of the box or out of the
- 21:06standard service, then we go to them and say,
- 21:09okay, we have this Polish workflow. Let's now
- 21:13teach you, do a session and then allow them to
- 21:18migrate. And then it was basically like the open
- 21:22beta of the system, of the migration. Again,
- 21:26the idea was to... make everything more polished,
- 21:30more clear for the users. After they give us
- 21:34our feedback and then we improve the workflows,
- 21:36define, we start doing to think how we do all
- 21:39the role. In this case, we pick up the prioritization
- 21:46that SRE team define for the service. So basically
- 21:51SRE define tiers. So tier one is a service that's
- 21:56very critical. Tier two, it's more or less. And
- 21:59then tier three is less critical. So we decided,
- 22:01okay, let's split this in batch. Let's go team
- 22:05by team, starting in tier three. Then they can
- 22:09move to tier two and then tier one. And that
- 22:12was the idea. And then the plan was basically
- 22:16split it in batch and assign a DevOps engineer
- 22:20to each batch, not to do the... the migration
- 22:26but to be the assistant so basically the person
- 22:30who does the introduction of the new way ui the
- 22:34new workflow and then this is the the the interaction
- 22:39goal that we have to to do your mind and also
- 22:43to make them so basically if i want everyone
- 22:47one person that's responsible to achieve a goal
- 22:50of migrate x number of of service until the end
- 22:55of the month it will keep the momentum in the
- 22:58team and then we started doing that so team by
- 23:01team we started moving we have a schedule we
- 23:04have a limit number of of engineers so basically
- 23:06we have a queue until some moment we had guys
- 23:10from the middle of the queue at the end of saying
- 23:13okay i already saw the other guys doing migration.
- 23:16I think I can do it alone. Okay, just check the
- 23:20recording that we had. Try yourself. Yeah, and
- 23:24they decide to try alone and starting doing migration
- 23:27alone. So basically, the system was already so
- 23:29well oiled and everything was moving smoothly.
- 23:34They were able to migrate alone. And that's really,
- 23:38I think, the real sex story of doing these migrations
- 23:41by batch. doing your dog food and all these things
- 23:46in a way that makes everything automatic or with
- 23:49less human intervention to allow people to use
- 23:53it. And then you also can think this is really
- 23:55the idea of maybe platform engineering, making
- 23:58everything self -service. When you have a product
- 24:01that's already usable for a normal product engineer
- 24:05that doesn't need to have the context of the
- 24:08CICD and how to deploy to Kubernetes. It's a
- 24:12service that he can use and can work and can
- 24:15do his work autonomously. And yeah, that's then
- 24:20after five months, I think we migrate everything.
- 24:23Yes, we found what we get as issues, basically
- 24:29our success starting break things. So the process
- 24:34was so smoothly. The deployment flow was so good.
- 24:38that then we're starting an introduction of bots
- 24:40to look at deployment for the maintenance tasks.
- 24:43So basically, the SRA team developed a service
- 24:46to create pull requests to adjust the resource
- 24:48usage in production and then automatically deploy
- 24:51that to production. So basically, it creates
- 24:53a pull request, we introduce a set of resources,
- 24:55and this pull request is already pre -approved,
- 24:58so it moves by all the normal pipeline flow and
- 25:04goes to production. Then we have the PandaBot.
- 25:07creating pull requests for the pendants and in
- 25:10some case the developers were already confident
- 25:12enough in the unit test they have in the functional
- 25:15test they have allowed that obligations or updates
- 25:20of of dependence to go without any approval from
- 25:24a human so we had then a situation that we have
- 25:27multiple um departments happen and then was struggling
- 25:31or doing impact in our system. Even we can grow,
- 25:36grow, grow. Then we add some bottlenecks. At
- 25:40that point, we decide to improve that service
- 25:44that was the deployment registrar to have a queue.
- 25:48So the idea is that you then have a way that
- 25:52you, when you start the deployment, you send
- 25:54event, I have a deployment. And then what happens
- 25:57is that the deployment registrar register that
- 26:00deployment and put in the queue. evaluate the
- 26:03queue size so basically we define that we have
- 26:06the number of 50 deployments per available in
- 26:09parallel and also we do a tricky thing that is
- 26:14we only allow 10 of that queue to be used by
- 26:18bots so basically we always want to have some
- 26:22kind of free space for the moments to develop
- 26:25that develop features to ship and basically that's
- 26:28a and so we have a queue with all the idea to
- 26:31put a margin for humans. And then if everything
- 26:35is okay, then we rerun the workflow that allows
- 26:40to execute everything. Yeah, it was basically
- 26:46that thing that we had to improve. Also, one
- 26:49of the bottlenecks that we had was we had issues
- 26:52with how we commit to an environment state. So
- 26:57basically, it was one of our... really bottlenecks
- 27:01is when you have multiple deployments, you need
- 27:05to be, only can commit once, one at a time, the
- 27:10deployment. So basically, we had a strategy that
- 27:13we create one commit per region. So we have a
- 27:17lot, a pile of commits to push to that, this
- 27:23environment site repository. And that was really
- 27:26a bottleneck. Fortunately, we were not very clever
- 27:29at that time to create the queue for that specific
- 27:32step. And then we had to re -engineering all
- 27:35the process because we had the issue that we
- 27:38didn't do like a FIFO. So basically, we did implement
- 27:42a hot hobby. And that means that some guys was
- 27:45very unlucky that it was the first one to arrive
- 27:48and was not the first one to get their stuff
- 27:52deployed. Yeah. This is really the story that
- 27:55we have. What was missing at that time was in
- 27:58the presentation and blog post was really the
- 28:00migration to the mobile team. I don't know if
- 28:07you want to go to already that story. It's a
- 28:09new story that I have. Or you want any other
- 28:12questions? Let's actually get to the mobile story
- 28:16in a second. So going back over your CICD process,
- 28:20I'm curious. First off, are you worried about
- 28:23The GitHub change to private self -hosted runners,
- 28:27they're changing the pricing model. So I guess
- 28:29they're going to charge for self -hosted as well
- 28:31now. Is that going to change your implementation
- 28:33at all? That's the problem. I can think that
- 28:36if they're starting to charge that, then I need
- 28:40to start to thinking, if they start charging
- 28:42like that, then I need to really be very picky
- 28:45in their SLAs. so i they how they can charge
- 28:51me a fee for the control plane when their control
- 28:54plane it's not really 99 or doesn't yeah meet
- 29:01the slas it certainly hasn't been lately that's
- 29:04for sure that that is really the thing even even
- 29:07we don't even we get that uh we more or less
- 29:10exclude that from our matrix of of um I already
- 29:14starting to think already seeing some page that
- 29:17shows the SLA in the last couple of months. And
- 29:22then I'm starting to thinking if you charge me
- 29:24for this, I need to have a better SLA. I cannot
- 29:27stop working. And then for the size of what we
- 29:32have, it's basically or I need to find a different
- 29:37CI tooling and going to that path or even can
- 29:41go more crazy. Don't forget that, okay, we are
- 29:46a special case, or probably not a normal case.
- 29:49That is, we are already in enterprise level.
- 29:53And we have GitHub hosted enterprise server.
- 29:58So basically, you can bring yourself. And if
- 30:02this is starting to be expensive, probably that's
- 30:05the thing I need to do. I bring down and then
- 30:08try to be less dependent of... the ability of
- 30:12the cloud version and then be my concern. And
- 30:15then I can then point to myself. Yeah, your GitHub
- 30:18is down because of myself and not because of
- 30:20some change in the cloud version. But yeah, it
- 30:25will be really a concern. And if they force us,
- 30:28it's basically now I will go to my legal team
- 30:31and then check the SLA and let's see if they
- 30:33don't like the SLA. They're starting to get some
- 30:37notice from our legal team to get a recharge
- 30:40back or something. So also you had mentioned,
- 30:42that's a fair statement for sure. You had mentioned
- 30:45looking at Flux originally and then going with
- 30:49Argo. Are you using anything like Crossplane
- 30:52with Argo yet or no? No. So basically the fact
- 30:57that we don't use Crossplane is basically because
- 30:59it's not in our domain of work. Okay. From what
- 31:04I understand, really, the idea is that cross
- 31:06-plane is a good way to provision a resource
- 31:11using Kubernetes as a native language. Even I
- 31:16try to understand from Victor, Victor Werczek,
- 31:19that's working with cross -plane, the difference
- 31:22between Terraform and cross -plane, and that's
- 31:25really the reason that... We didn't go deep in
- 31:28crossfire because the main player of Terraform
- 31:31and provision infrastructure is the infrastructure
- 31:34team, not the engineering excellence department.
- 31:36Basically, we are the middle layer. Imagine it's
- 31:40like a lasagna or a burger. Basically, the team
- 31:43is the lowest band and I am the lettuce. And
- 31:49then we have even up on me, we have the burger
- 31:52and then we have the tomato and they have the
- 31:54other. So basically we have. these layers and
- 31:56i'm in that layer that i consume service from
- 32:00infrastructure team and then i deliver service
- 32:02to to to the to the platform team and to the
- 32:07to the developers so that's the reason that we
- 32:09don't look for crossplane that's thing that i
- 32:12would like to to experiment but then i need to
- 32:14really have a good case of why did a terraform
- 32:18to use crossplan yeah it's more i guess if you
- 32:21want the infrastructure definitions closer to
- 32:25the actual service right so if you want that
- 32:28all defined together and there's there's pros
- 32:30and cons for both ways i would say honestly even
- 32:33in our organization we kind of or i've worked
- 32:35in organizations where we've done both yeah even
- 32:38even listen uh what victor said about the idea
- 32:41of cross plan and how to use cross plan and that
- 32:43year for example is one of the examples that
- 32:45i can tell or i can get a model in terraform
- 32:49that's getting a postgres to be from Mother bless.
- 32:54But probably if I want to talk with the developer,
- 32:57developer wants to have the minimal settings
- 32:59to change. So basically, I think the WinCross
- 33:02plan can abstract that with their internal resources
- 33:05and say, okay, define this YAML manifest or that
- 33:08YAML resource or, sorry, that CRD in YAML and
- 33:13then the controls and everything will set up
- 33:16everything for you. So at this moment, we don't
- 33:19add this kind of... need in terms of organization
- 33:21to have exposed so much the infrastructure to
- 33:25developers. And that's real. Without need, I
- 33:28don't have a way to force a tech to be used.
- 33:33Oh, that's fair. It's always a balance. Yes,
- 33:37it's cool, but I need to really, it makes sense
- 33:40to the case. So tell me about this, the new mobile
- 33:44deployments. How is that going? And how did you
- 33:47set that up? The mobile team was using Jenkins,
- 33:51but even with more strange setup. So basically,
- 33:54they had a farm of Mac minis, and they basically
- 33:58reconnected with the Jenkins controller master.
- 34:02And they were using that. So basically, they
- 34:05were using groovy, pretty groovy with... in their
- 34:11checking pipelines plus with fast line for one
- 34:14for the ios team the android team will use a
- 34:17different tooling and that was really that massive
- 34:20because part of the team needs to be operations
- 34:23to understand to upgrade the nodes to fix issues
- 34:28and also again the same issue of isolation when
- 34:32we had cases that the nodes were not very identical
- 34:37and a job was if lands in one machine was passing
- 34:40if lands in the other machine was failing or
- 34:43less force between artifacts between was screwing
- 34:47up with node versions hubi versions and was really
- 34:51a mess so lack of productivity and then that
- 34:54was really the idea We need to move to GitHub
- 34:57actions, but plus also find a way to make their
- 35:01compute power or compute resource be very stable,
- 35:05having the same identity that we had in the CI
- 35:11-CD for the microservice. So that was a multiple
- 35:14deployment and isolate. And at that point, it
- 35:18was really a surprise for me, the end solution,
- 35:21but basically it was this case. So I went to
- 35:24research. that basically I put 4Ks on top of
- 35:28the table. First, using VMs inside of Mac. So
- 35:32basically a product from CircleCI. So basically
- 35:40a company that's already providing GitHub Action
- 35:43Runners for Macs and have the system to work.
- 35:48And basically it's on top of the one tooling
- 35:50at the start. And basically it's a... a nice
- 35:54tooling to spawn VMs inside of Mac. Then the
- 35:58idea, okay, let's try to use Nix for some independence
- 36:02in isolation. And the other idea was basically
- 36:05also to use AWS. So why not spawn Macs in AWS
- 36:11and use it as a GitHub address? And at last I
- 36:15was thinking, I need to at least think in the
- 36:18way of outsourcing this to a company. This guy
- 36:21is GitHub Actions, but... I could also think
- 36:23to other GitHub action providers or first to
- 36:26GitHub itself and then to other providers because
- 36:31you can see that Blacksmith and I think Depot
- 36:35are providers of GitHub action trends that you
- 36:40can offload and don't depend of GitHub to have
- 36:44the best performance in your machines. Basically,
- 36:47it was really a poor scientific research. I have
- 36:52three, four hypotheses. I have one month to test
- 36:55it. And I set like one week for each hypothesis
- 37:00and then try to go. And this is really the first.
- 37:03It was in summer of last year. And also that
- 37:07culminate in the appearance of the... AI native
- 37:13mindset. So in this experimental research, after
- 37:17I collided with teachers, with tooling, I found
- 37:20that I had to use start to create VMs. So first
- 37:24hypothesis. And then I would decide, well, if
- 37:27I try to create a controller, like I have the
- 37:29idea or already the use case that to have a control
- 37:32for Kubernetes, to run runners. So why I don't
- 37:36have an action runner control for that? And that
- 37:39was really the idea. starting to think i did
- 37:42a poc with shell script because it was a very
- 37:45easy command but then i decided okay i have a
- 37:49nice shell script let me do a really nice mvp
- 37:52and then i did my first specification development
- 37:55project so basically i used this idea i then
- 37:59signed to define my specifications in a markdown
- 38:03file what I want, what were the toolings, what
- 38:06were the constraints. And then use, in this case,
- 38:09was already still using GitHub Copilot and say,
- 38:12I have this idea in this file, let's make a plan.
- 38:15And starting elaborating the plan, creating the
- 38:18plan. And then the process was really that way
- 38:20that after I have the plan, we need to have to
- 38:22-do lists or to -dos for each point. And then
- 38:25basically I force the Copilot to use, go for
- 38:30each to -do or each step. do the implementation,
- 38:33I review it. Okay, it's fine. Let's move to the
- 38:36next one. Fine. And then also ask to do a summary
- 38:40of each implementation. So basically to have
- 38:42a history of what I did. Just important for me,
- 38:45but also important to share with the team all
- 38:47this process. And then after one day and a half,
- 38:53I got a control. So basically I had a Mac mini
- 38:57in my desk. I put the control there and it was
- 39:00spawning. and doing the lifecycle of the VM.
- 39:05So basically, a workflow, it's my runner, execute
- 39:10a niche, drop, tear down the VM, start a new
- 39:13one, register against GitHub, like normal flow.
- 39:16And I will say, yeah, nice. I just need to make
- 39:19some improvements. Then I moved to the Nix. AI,
- 39:22in this case, also it was Copilot, helped me
- 39:26a lot. how to build the recipes with Nix, but
- 39:30it fails tremendously just because of the way
- 39:33Xcode works. It was very annoying to work. And
- 39:37then I had the issue of how to distribute Xcode.
- 39:40At that time, I was running out of time. AWS
- 39:42was not really an option to investigate. And
- 39:45then I started doing some calculations about
- 39:48cost if I use GitHub as a provider of headers.
- 39:52And surprise, surprise. It was cheap for our
- 39:56use case. So it was basically a matter of after
- 39:59spending three or four months collecting metrics
- 40:02in Jenkins, I say, yeah, we can use it. And basically
- 40:05it was really the idea. I said, okay, this is
- 40:08the amount of money and comparing the working
- 40:12hours that it's necessary for an engineer to
- 40:14fix this, it's a good balance. And then after
- 40:16I convinced my director that it really makes
- 40:19sense in terms of financial terms. you approve
- 40:22and then we move and then we move to migration
- 40:25and that this migration was i did with the junior
- 40:27the first thing that we did when this migration
- 40:29was really sit down with the developers and i
- 40:34asked anoint us to to to my junior in this case
- 40:38it was to internities sorry but it was really
- 40:41important to that yeah i asked him go for each
- 40:44um jenkins pipeline they have and start doing
- 40:50a flowchart so basically we had a flowchart for
- 40:53each Jenkins pipeline with steps and the steps
- 40:58in the way that what is supposed to do and what
- 41:01are the commands that are executed and then i
- 41:03sit down with the with each uh team from android
- 41:08and and ios and then let's go forward for each
- 41:12step and then try to understand as this makes
- 41:14sense this flow i don't care about what is the
- 41:17command that is executed. Does this step make
- 41:20sense? Does this test make sense? Does this fork
- 41:23in the logic make sense? And then we also understand
- 41:27some good things that is some workflows or some
- 41:31checking job that we have was already redundant.
- 41:33We could refactor the input and combine in one
- 41:38single pipeline. That was really the idea. And
- 41:42then that was the second time we used the AI
- 41:44to speed up. And this time I already added the
- 41:47session of agenting coding with my engineering
- 41:51department. So basically the engineering excellence
- 41:53create agenting sessions to teachers all to use
- 41:57AI tools in a more agentic way. So not to auto
- 42:01-complete features, but to give context, to give
- 42:04a goal. have this guy, this AI, as really a partner
- 42:09to execute. And then at this time, already we
- 42:12was using cloud code. And then, okay, let's bring
- 42:15these flowcharts, convert to something that is
- 42:17more digestible by AI. So I was able to export
- 42:21as a CSV file. And then, okay, these are CSV
- 42:25files, contains flowcharts of our workflows.
- 42:28Let's build GitHub Action workflows. and documentation.
- 42:32And he's starting doing the old workflow. Was
- 42:35not really exactly what we want, but was close
- 42:38enough. Imagine that this was really a good best
- 42:42draft, a good first draft. This was really, now
- 42:45just adjust this step, this step, this step,
- 42:47and then we just starting building on that. And
- 42:50then, of course, this really make the work very
- 42:53easy. So we add like 17 workflows to migrate.
- 42:58What is the difference from this migration to
- 43:01the other migration? The other migration, we
- 43:02add like one or two workflows for all the process.
- 43:08So basically, the issue was to replicate that
- 43:11to use workflows to 700 service. In this case,
- 43:14we have only two service, two repositories, the
- 43:17Android and iOS, but we have multiple workflows
- 43:19to migrate. And then we had to rewrite a lot
- 43:22of stuff. And that was the way that we use AI
- 43:26to basically at the pace of each day we migrate
- 43:29a workflow and then cloud code was able to digest
- 43:34some part of the code base. So I had two issues.
- 43:37First, parts of the customization that they have
- 43:40in the iOS team was using FastLine that is written
- 43:44in Ruby. I don't know Ruby. So I used it to understand
- 43:49what was that. what was the logic behind that
- 43:55ruby scripts and had extra features then i'm
- 44:00not very well versatile in the ios test and compiler
- 44:06so i never i'm not irs developer i don't know
- 44:10all the quirks about the the process to compile
- 44:13language compile ios app And I use protocol for
- 44:17that. So basically, it was already in a way that
- 44:20I had an issue in my pipeline. And I tell them,
- 44:23OK, I have problems like this. I have an issue
- 44:27in my pipeline. This is the idea of the workflow.
- 44:31This is the idea of job. This is a step that's
- 44:33failing. Fetch. using github cli in that time
- 44:36even we using mcp probably it's best if you have
- 44:40a cli to tell the ai model to use that cli to
- 44:43fetch the information instead of uh bloat the
- 44:49contacts with mcps use the cli fetch the logs
- 44:53in that section and that let's go investigate
- 44:55what it's what it's failing and it was really
- 44:58able at some point i get get surprised because
- 45:01when i go in deep mode of troubleshooting the
- 45:04model in this case even the the agent that is
- 45:07called cloud cloud was able to go to the internet
- 45:10and find github issues about the problem pointing
- 45:14out i have found this issue probably it's about
- 45:17this let's double check and then i double check
- 45:19yeah probably makes sense let's try this change
- 45:22and it was really basically it was a more family
- 45:26language or i cannot what i can say it was like
- 45:31while we were in the past doing Googling. So
- 45:33you put the problem, you try to find the issues.
- 45:35Here, I have the problem. Also find the issues
- 45:38in the internet and get me back the information
- 45:41and then validate with me and then explore. And
- 45:43basically, after four weeks, we migrate everything.
- 45:47We even add extra features they want. And they
- 45:51were very happy. And still, they are very happy.
- 45:55Of course, the initial costs failed because it
- 45:58was more than I expected. But for one reason,
- 46:01developers were delivering more. So it was really
- 46:04a situation that the workflows and run are so
- 46:09stable, they can focus more in future and then
- 46:12increase the cost. But it's because they are
- 46:14shipping more features than they did in the past.
- 46:19That's a good cost problem to have, you know?
- 46:21Yeah. Yeah. I think that's the thing I have.
- 46:26Do you have any questions about that topic? I
- 46:29did want to ask, wrapping up, if someone that's
- 46:34listening, they wanted to pull off a big CICD
- 46:37switch like you did, are there some lessons learned
- 46:40that you could give that they could follow so
- 46:42they don't set their org on fire? I mean, because
- 46:44this is a complex... lift and shift, right? Going
- 46:48from Jenkins to GitOps and introducing Argo and
- 46:52all the complexities around, you know, the Mac
- 46:54mini pipelines, like be interested. There's some
- 46:57like core lessons learned that you could impart.
- 47:00So the first thing is, I think you need to, even
- 47:03you have a big pipeline, I bet that you have
- 47:06a small part. So a niche. So try to find. a small
- 47:12part that you can replace and do it in isolation.
- 47:15In my case, it was basically the pull request
- 47:17validation. It's detached in some way of the
- 47:21big flow. Try on that. If you cannot do that,
- 47:25try to find segmentations that you have in your
- 47:28organization in terms of teams. That's a good
- 47:30way to approach so that you can move parts of
- 47:38your team. Basically, if you have 10 teams or
- 47:41five teams, pick one team and try to go in that
- 47:47way. So this is a way that you can try to reduce
- 47:50the buster radius. And of course, I think that
- 47:53was a thing that was very important for us, basically
- 47:55doing dogfood. I think it's very unfair for someone
- 47:59that is developing tools for developers not using
- 48:02that in their work. So I think this is really
- 48:05the most important thing. It's doing dogfooding.
- 48:07And then if you want, try to find in each place
- 48:10if you don't have anything think do you have
- 48:13internal tooling that doesn't uh provide for
- 48:16your final customers that can be bad but for
- 48:18trying to apply this to your internal tooling
- 48:22yeah that makes sense cool where can people find
- 48:25your uh your posts and and where can they reach
- 48:27out to you okay so my posts are in the medium
- 48:30probably you can find them have the links in
- 48:32the description also i have that both was based
- 48:35in the talk that I did. So also in YouTube, I
- 48:41will have that talk. Also, sometimes I do some
- 48:45publishing in LinkedIn. So you can go there,
- 48:48try to reach me in LinkedIn. Awesome. I'll leave
- 48:51the links for your Medium posts and your LinkedIn
- 48:53and anything else in the show notes. Stefan,
- 48:55thanks for coming on. Really appreciate it. Okay.
- 48:57Thank you. All right. That's my conversation
- 49:00with Stefan Moser. My biggest takeaway from this
- 49:03one is that good CICD is not just about picking
- 49:06a newer tool. It is about building a delivery
- 49:09system that is predictable. observable, isolated,
- 49:13and usable enough that engineers can trust it
- 49:16without needing constant help from platform teams.
- 49:19That is really the thread running through this
- 49:21whole episode. They did not just swap Jenkins
- 49:24for GitHub Actions. They reduced noisy neighbor
- 49:27problems. They standardized runners. They leaned
- 49:30into reusable workflows. They moved deployment
- 49:33towards GitOps. They built their own visibility
- 49:36layer when the platform was not giving them enough,
- 49:39and they rolled it out in a way that let teams
- 49:42build confidence instead of forcing a giant overnight
- 49:45cutover. I also liked that he was honest about
- 49:48what happens when the new system works. Once
- 49:51deploys get easier, people use them more. Bots
- 49:54start shipping changes, automation starts piling
- 49:57up, and then you discover the next bottleneck,
- 49:59whether that is queuing, fairness, or protecting
- 50:02enough room for humans to still get work out.
- 50:05That is the real platform lesson. Success creates
- 50:08new load. And the better your self -service story
- 50:11gets, the more you have to think about throughput,
- 50:13guardrails, and the system behavior under trust.
- 50:16The other part I liked was his migration advice
- 50:19at the end. Start with a niche. Reduce blast
- 50:22radius. Dog food your own system first. And if
- 50:25you are building tools for developers, use them
- 50:28yourself first before asking everyone else to
- 50:31bet on them. That is probably the cleanest takeaway
- 50:33from the whole episode. If you enjoyed this episode,
- 50:36follow Ship It Weekly wherever you listen to
- 50:39podcasts. If you want the show notes, links to
- 50:41Stefan, his write -ups, and the resources we
- 50:44talked about, head over to shipitweekly .fm.
- 50:47Thanks for listening, and I'll see you later
- 50:49this week. Thank you.