For everyone — The quality control that triggers itself
In an artisan bakery, the supplier delivers the flour, the baker kneads, bakes, tastes: every batch is checked before it goes to the display, rather than discovering the bad ones in the evening, in front of the customers. The continuous integration pipeline (CI) organizes exactly that systematic checking for software: at every code change, a machine rebuilds the whole product, tests it, and prepares it to be served — without waiting for a human to have the time or the desire to redo it by hand.
Its founding principle dates from the 2000s (extreme programming made it a pillar): merge small and often rather than big and rarely. A change that breaks something is detected within minutes, while it touches a small perimeter — not three months later, when everything has become entangled. The pipeline also guarantees that the delivered artifact is reproducible: built from the same sources, with the same tools, and passed through the same quality gates.
This very site follows that path: at every publication, a Gogs → Jenkins → Nexus → Kubernetes pipeline rebuilds the Docker image, pushes it to the registry and restarts the pod — the repository's Jenkinsfile describes these steps, versioned along with everything else. Someone writes text, and ten minutes later the live site has changed, after passing the same checks with no human intervention. That discipline is what this article explains — then extends to language models, where it becomes the nerve center of a complete AI methodology.
The full text
The main stages of a CI pipeline
A continuous integration pipeline organizes its checks into stages, from the fastest to the most expensive:
- Build: produce the artifact from the sources — a jar with Apache Maven, a static Pelican site, a Docker image. The stage fails if a dependency is missing, if an import is broken, if the build is no longer reproducible.
- Test: this is where trust is earned. Unit tests filter in seconds; integration tests check in minutes that the pieces talk to each other. A behavior covered by no test is protected by nothing: the number and relevance of the tests are part of the definition of "done".
- Package: the validated artifact gets an immutable build number and goes into a repository (Nexus, Docker registry). You never redeploy "the latest code": you deploy a label that has already passed every gate.
- Deploy: by rolling update for a service without downtime, with a rollback to the previous label if monitoring shows a regression.
- Observability: in production, the artifact keeps being watched — and its metrics feed the next developments. The loop closes.
What the pipeline imposes — and what it returns
CI imposes three disciplines, the root causes of its power:
- Everything is versioned — code, build recipe, configuration, test data —: the exact state of a delivery can be replayed two years later.
- Every failure blocks — never work around a red stage by hand: otherwise the "almost good" artifacts and the "real" ones start to diverge with no safety net.
- The pipeline must stay fast: if nobody wants to go through it, it has already failed — the reflex is always the same: test earlier, slice smaller, parallelize.
It moves the effort: where a team without a pipeline spends its nights hunting merge errors, a well-equipped team invests that time in tests and automation. The classic tool of the trade is Jenkins — its Jenkinsfile defines the stages above textually, versioned like everything else.
From software to models: corpus, evaluation, weights
A fine-tuned language model behaves, from the pipeline's point of view, like a software artifact — with one fundamental difference: its "source" is not code but a corpus, and its "behavior" is not deterministic. The pipeline's extension — known as LLMOps in the industry — transposes each stage:
| Software stage | Model stage | What changes |
|---|---|---|
| Source code | Corpus + training recipes | Curated, deduplicated, traced data |
| Compilation | Fine-tuning (LoRA, QLoRA…) | Costly in hours: a dedicated stage, not rerun on every commit |
| Unit tests | Evaluation set (golden set, regressions) | Answers judged (automated judge, thresholds), not compared to an exact value |
| Jar artifact / image | Weights (.gguf, LoRA adapters) labeled in a registry | Immutable weights, like a Docker image |
| Deployment | Serving inference (local server, Kubernetes) | Same rollouts, same rollbacks |
| Production metrics | Sampling of answers, reports | Feeds the next corpus campaign |
The central lesson: model evaluation is a test suite. A small set of representative examples — the business cases, the typical phrasings, the trick questions — plays the role of the test corpus: at every new corpus or new training recipe, you replay that set and compare. An answer that improves on the new subject while regressing on the old one is detected there, in the pipeline, and not by a user. The length and stability of this evaluation suite are, as for software tests, the true measure of an AI project's maturity.
What Yokul takes from it
For a small organization like Yokul, the CI pipeline is the only way to keep control of what its models produce without dedicating an operations team to it: the tooling already exists (Gogs, Jenkins, Nexus, the k3s cluster — the one serving this site), and every piece finds its natural place in it: versioned corpus, replayable evaluations, weights labeled in the registry alongside the images. The article The state of the art in fine-tuning details how a corpus dedicated to an activity becomes a dataset, then a model; the article Self-hosting LLMs and distributing execution to agents shows where that artifact runs — on a consumer-grade graphics card — and who consumes it.