Podcast about DevSecOps

#107 - Continuous Integration in 2026: What Still Matters

Slow tests and limited hardware make keeping main green a tradeoff between speed, capacity and risk.

17 min read

CI changed how teams integrate code, but its core promise remains the same: integrate often and keep the mainline green. Andrey and Paulina trace its history and examine how Git, merge queues, and modern pipelines changed the mechanics.

Discuss the episode or ask us anything on LinkedIn


A broken mainline costs everyone the same morning

You pull main, run the build, and it fails on code you didn’t write. The next hour goes on working out whose change did it and whether the fix is yours to make. Multiply that by everyone who pulled that morning and one bad merge has quietly billed the team a day.

That tax is why continuous integration exists, and it is older than any tool you’re using to pay it. Before pre-merge checks, teams handled it with a person. At Ericsson, a colleague of ours came in early every morning, read the nightly build, and told people what was broken before they checked anything out. Hello Christian, if you’re listening. The machinery processed the day’s pile overnight, so problems surfaced after the fact, in code written by someone who had already moved on to the next thing.

The promise hasn’t changed since then: integrate every change, find the conflict while it’s small, keep the mainline in a state the next person can build on. What has changed is the machinery. Git made it cheap to receive a change centrally without touching main, and the build server moved inside the version control system. Merge queues cover the cases where tests can’t keep up, and the newest job in a pipeline is a reviewer that reads your diff and writes back. Most of the arguments teams still have about CI are arguments about that machinery.

What continuous integration actually buys you

Start with the promise, because the tooling only makes sense next to it.

What is continuous integration for?

Keeping the mainline in a state the next person can build on, by integrating every change as it arrives instead of in a pile, and acting on the automated feedback while the change is still small.

Mechanically it’s unglamorous. The change is received somewhere central, built and tested as if it were already on main, and merged when those checks pass. Martin Fowler’s Continuous Integration, first published in September 2000 and revised in January 2024, puts the practice in two halves worth keeping together: integrate frequently, and treat a broken build as the thing you drop everything to fix.

What you get is a floor under the repository, and the floor sits exactly as high as the checks you run. A green pull request says the build worked and those tests passed. It says nothing about the tests nobody wrote. In our experience that arrangement still covers something like ninety percent of the ways a mainline goes red, which is enough that the build is reliably there when you need it. The floor only holds while the checks are mandatory. Developers get creative about skipping tests and pipelines when skipping is available, and that’s usually a deadline talking. Make the checks required on the branch, then tick Do not allow bypassing the above settings. Leave it off and the rule still exempts repository administrators and anyone with a role carrying the bypass permission. On a small team that can be everyone who pushes.

Where the slow tests belong

Once the floor holds, the next argument is about how much you’re allowed to put in front of a merge.

How much testing belongs before the merge?

Enough that a developer gets useful feedback without waiting around, which means the answer moves with what a red mainline costs you and how much test capacity you own.

Start from feedback time. Ideally you’d test everything before anything reaches main, but then the wait gets very long, people batch their work to avoid it, and you’re back to big risky merges. So the common split puts build, unit tests, linting and static analysis in front of the merge, and runs integration and end-to-end suites after it, on a mainline you already know compiles. Run those on every change rather than overnight, so the feedback still reaches an author who remembers writing the code. When they catch something, a trivial break gets fixed forward to unblock everyone and anything bigger gets reverted, which keeps main at a known level of quality.

The split flips when a red mainline is expensive. Some organizations choose to test more before the merge, not less, and if the tests can’t keep up with the changes, that is what the merge queue below exists for.

Both extremes are common: too little testing, and waiting hours on a small change while suites run that touch nothing in the diff. That’s an argument for running only the suites the diff touches, and for being honest about how your repositories are wired: a monorepo, or several repos feeding an integration repo that deploys the whole system, needs different rules than one service. Hardware sets a ceiling of its own. If the tests run on custom boards or on phones, your capacity is the number of devices you own and how well the loading is automated, and no amount of pipeline design changes that number.

The CI server moved into the version control system

The shape of a pipeline follows the tool that runs it, and the tool changed addresses.

Why did the build server and the repository end up as one product?

Because developers stopped having to jump between two systems to find out whether their change is any good.

CruiseControl, Jenkins, TeamCity and CircleCI all started life beside the version control system rather than inside it. The pattern most teams now run is a single product end to end: create a branch, open a pull request, CI runs on the pull request, iterate until it’s green, merge. Status, logs and the diff live in one place, which sounds minor until you remember how much time went into matching a build number to a change.

Split setups are still everywhere, and often for good reasons. If GitHub Enterprise isn’t in the budget, you run Jenkins. Larger organizations with older estates frequently keep dedicated CD instances, sometimes one for non-production and another for production, while CI has moved next to the code. The ownership follows the move: when the pipeline file sits in the repository, the team maintains it, instead of filing tickets with the one team that owns the pipelines.

One golden path, many workflow files

Team ownership doesn’t mean every team inventing deployment from scratch.

How do you give 500 repositories one pipeline without freezing teams out?

Publish the mainline pipeline centrally as a reusable workflow, then let each team add its own workflow files beside it.

The second half is what gets overlooked. GitHub Actions lets a repository hold as many workflow files as you like, and a central team can ship the deployment path as a reusable workflow that every repo calls with uses:. A team drops the caller file in and gets the right environments with the right configuration without reading a platform handbook, and a team that wants extra checks in CI adds another file in .github/workflows.

Compare that with the model most of us grew up on. Jenkins’ multibranch pipelines look for a single Jenkinsfile at the root of the repository, and the estates we’ve worked in put all the reuse in one shared library that every job on the instance loads. Teams who wanted something custom negotiated with whoever owned it. That’s a configuration rather than a limit of the tool: the same guide covers folder-scoped libraries and a default version a @Library annotation can override, so a Jenkins estate can be cut finer than the one most of us remember.

Paulina reads multiple workflow files as the practical advantage of Actions, because a team changes its own CI without affecting anyone else. Andrey’s answer is that it depends how you cook it, and that flexibility isn’t the deciding factor at scale: across 500 repositories, centralized pipeline management is what keeps every team of five or ten repos from hitting the same wall alone.

A Jenkinsfile could also drop all the way into Groovy, which is a full programming language in your build definition. People built remarkable things that way, and it was easy to crash: fine in a Formula One car, confusing if you just wanted to drive to work. YAML pipelines put limits on you, and most of those limits are guardrails. The opposite failure is real too: at one repository and one pipeline, a shared library and a central abstraction layer are time spent on your pipeline instead of on the product.

Merge queues, for when changes arrive faster than tests finish

Centralizing the pipeline doesn’t help when the pipeline itself is the bottleneck.

What problem does a merge queue solve?

Changes arriving faster than your required checks can validate them, when you still want every change tested against the mainline it will actually land on.

The mechanics start at a button: instead of merging a green pull request yourself, you put it in a queue. GitHub then validates each entry on a temporary branch built from the latest base branch plus the pull requests queued ahead of it, and merges it once the required checks pass. A failure drops that entry out with the feedback posted back on the pull request, and the rest carry on. How many entries validate at once is a setting, so a queue doesn’t have to be serial. The queue settings also include a maximum group size, which matters when a merge to the base branch triggers a deployment and you’d rather not deploy twenty changes at once. One trap before any of that: your workflows need the merge_group event as a trigger, or queued pull requests never get their required checks and the merge fails.

The ones we built ourselves, on Jenkins and Gerrit long before GitHub had one, ran strictly one commit at a time and drained the day’s queue overnight. That was the hardware talking: a fixed number of test targets, and nothing new arriving after hours. Both times it was embedded work, with a mainline painful enough to unbreak that nobody wanted to risk it. A higher risk profile can point the same way: writing software that ships inside a medical device, under the FDA’s software validation expectations, you might reasonably decide to test more before the mainline than after. Keep the two gates apart, though. On one medical-device project we worked on, merging a version wasn’t the hard part even with long-running tests. Releasing to devices was, and that was approvals and paperwork, not CI. We rarely see merge queues outside cases like those, and if you’re not struggling to integrate you don’t need one.

The newest job in the pipeline is a reviewer

Testing isn’t the only thing the pipeline runs now.

What does an AI reviewer add that a scanner doesn’t?

It takes its instructions as prose from your repository, and it will discuss the comment it left rather than restate a rule.

Inline comments are not the difference: reviewdog has posted static analysis as pull request review comments for years. A linter takes a rule set. An agent takes the paragraph explaining why this codebase does it that way, and answers when you push back.

Installation is undramatic: a coding agent is a package the runner installs. Point it at Amazon Bedrock and the inference lands on the account you already watch, with OIDC handing the workflow temporary credentials instead of a vendor API key in repository secrets. That’s a billing and credentials boundary rather than a data one: Bedrock runs inference in AWS-operated model deployment accounts, not inside yours, and the diff and the comments live on GitHub either way. The Bedrock data protection docs say what AWS does with what you send. FivexL’s version is public in fivexl/shared-workflows: ai-code-review.yml picks review dimensions to fit the diff, runs a subagent per dimension guided by the repository’s AGENTS.md and CLAUDE.md, and caps the inline comments it posts, folding the overflow into a summary. It never approves and never blocks. People approve.

The loop is where the value is. Your local coding agent gets a skill: open the pull request, wait for the build, fix it if it fails, then work through the inline comments the reviewer left. Two agents trade comments while you do something else. You still come back and check: even the best models miss things, and two can be confidently wrong in the same direction. Still less work than reading the whole diff cold.

Teams split it further: one reviewer for tests, one for security, each with guidelines on structure, reusable functions, documentation and coverage. Those guidelines are worth writing down anyway: the same file tells your coding agent how to write the code. Cost needs its own guardrail, since this runs on every push and the comment cap trims output the models have already produced. FivexL’s write-up on scaling AI code review has the blunt version: a CloudWatch alarm triggers a Lambda that attaches a deny policy to the review role, so Bedrock calls stop until someone takes it off.

Small changes are still the cheapest review tool

All of which runs into the oldest practice in the list, now under more pressure than it has ever been.

Why does change size decide what review costs?

Because every extra thousand lines buys another round of fix one thing, break another, and the rounds are where the time goes.

One recent feature ran to 30,000 or 40,000 lines in a single place, with no existing pattern in the codebase to copy. The review took round after round: fix something, introduce something else, fix that, introduce another. A human stayed in the loop the whole way, because only a person knew what shape the result was supposed to have. That is the real change in how the work feels now. The time moved out of writing code and into reviewing it.

The tooling notices too. Past a certain number of changed files, comments and review rounds, the pull request interface itself gets slow and unpleasant to work in. Google’s DORA research puts the same advice in capability form: work in small batches, because small batches shorten feedback and make failures easier to localize.

And it was never only agents producing unreadable diffs. People disappear for a month and come back with a wall of code and a cheerful “look, I’ve been busy”. It’s not humanly possible to read, and asking someone to try buys you a rubber stamp. The cheaper route is to spend the time earlier: agree the requirements and the approach before the code is generated, and there’s much less to argue about afterwards. That’s harder when the requirements arrive from the business side as a sentence, which is its own problem and not one CI can solve.

What this means for teams

Continuous integration is still the same deal it was twenty years ago: everyone’s work meets on the shared mainline often, and every change shows it builds and passes what you chose to run. Both halves count. Pre-merge checks are one way to deliver the second half, the way Git and hosted pipelines made cheap, and a pull request that sits green on a branch for three weeks has satisfied them while integrating nothing. Fowler’s definition asks for the merge itself, at least daily. Git, hosted runners, merge queues and now automated reviewers changed what that costs, not what it is. If you work alone you technically don’t need any of it, though a central check will still catch what you forgot. Once more than one person pushes to the same repository, the questions are how often you integrate, how much you put in front of the merge, and how fast it runs.

Four things worth doing this week:

  • Open your busiest repository and look at what is actually required before a merge. If main can go red because a check is optional, make it required and tick Do not allow bypassing the above settings, then find out what breaks. Then look at the age of the open pull requests: checks that keep passing on a branch nobody has merged in a fortnight are not integration.
  • Time your pre-merge pipeline end to end, then place each suite on what a failure would cost on main and what capacity you have to run it, not on duration alone. To stop a documentation change booking the hardware, gate the expensive job with an if: condition inside a workflow that still reports the required check: a workflow skipped by a paths: filter leaves its checks pending and blocks the merge.
  • Move the deployment path into one reusable workflow and let teams add their own workflow files beside it. One central file beats 500 copies drifting apart.
  • If you’re running an AI reviewer, give it the repository’s rules file, a cap on comments and a budget guardrail, and keep approval with a person.

Common questions, answered

How do I stop developers from skipping CI checks?

Make the checks required on the branch, then tick Do not allow bypassing the above settings, which closes the exemption repository administrators get by default. People skip under deadline pressure, and a required check removes the decision. Keep that required set small and fast: a mandatory hour-long pipeline breeds workarounds, from batching to pressure to make the check optional again. The slow suites still run after the merge, where a red mainline is something you fix forward. When it isn’t, because the tests gate hardware or a regulated release, keep them in front of the merge and let a merge queue absorb the rate.

Why aren’t my checks running when a pull request is in the merge queue?

Add the merge_group event to the triggers of every workflow that provides a required check. A merge queue validates each pull request on a temporary branch built from the base branch and the entries queued ahead of it. A workflow triggered only on pull_request never runs there, so the merge fails on a missing check. Set a maximum group size too, if merging to the base branch kicks off a deployment.

How do I keep AI code review costs from surprising me?

Run the reviewer through your own cloud account instead of a vendor API key, so the spend lands on a bill you already watch. On AWS that means Amazon Bedrock with OIDC from the workflow: short-lived credentials, no long-lived key in repository secrets, usage on your own invoice. Then put a hard stop on the role: a CloudWatch alarm triggers a Lambda that attaches a deny policy, and model calls stop until a human removes it. A comment cap won’t do that job, since the review has already run by the time comments are trimmed. It keeps the pull request readable.

Resources

Since we recorded

GitHub made workflow execution protections generally available on 17 September 2026, rules you can scope to specific workflow files. A default rule now limits pull_request_target on public repositories with no event policy of their own, the trigger that runs with access to your secrets. It starts in evaluate mode, reporting the runs it would block, so check whether your CI depends on that trigger. The thread continued in episode 110, AWS Access Denied? Check Your Repo Rename, on a repository rename that broke OIDC trust.