Beginners in DevOps spend a lot of effort learning how to produce things: builds, images, releases. Much less is said about receiving them. Yet almost every pipeline stage is a recipient. A test job receives a build, a deployment receives an image, an engineer receives a library from the internet. This primer explains how to check incoming artefacts on arrival, meaning the point at which something is handed to your system and before anything is allowed to depend on it.
The argument for doing it is a matter of cost. A mismatch caught at the entrance affects one file. The same mismatch caught after deployment affects every service that consumed it, plus whoever has to reconstruct what happened. The further a wrong input travels, the more evidence you need to trace it back.
A mini-glossary for incoming artefacts
These terms appear in nearly any discussion of the topic. Each definition is deliberately narrow.
- Artefact: any output that one step passes to another, such as a package, a container image or a compiled binary.
- Manifest: a written list of what a delivery should contain, with names and versions.
- Digest: a short fingerprint computed from a file’s contents; change the contents and the fingerprint changes.
- Tag: a human-friendly label attached to an image or commit. Labels can be moved, so a tag alone does not identify contents.
- Lock file: a record of the exact dependency versions that a build resolved.
- Registry: the store from which images or packages are fetched.
- Gate: a pipeline condition that must pass before the next stage runs.
- Quarantine: a holding area where something unexamined can be inspected without reaching shared systems.
The three questions every receiving step should answer
Is it the thing that was requested?
Identity comes first. Compare the name and version against the request or manifest. Compare the digest against the value published by the producer. A tag such as “stable” or “latest” answers nothing, because it describes an intention at one moment, not a fixed set of bytes. Record the digest in the deployment log so that later questions can be settled by lookup instead of memory.
Is it complete?
A package may carry the correct code and omit a migration script, a default settings file or a licence notice. List the contents and compare the list with the previous accepted version. Differences are not automatically wrong. A new file is fine if it was announced; an unannounced one deserves a question. A removed file deserves the same.
Does it behave as expected at the most basic level?
Start it somewhere isolated. Does it launch, report its version, respond on the expected port and shut down cleanly? This is a smoke check, not a test suite. Its purpose is to establish that what arrived can run at all before more expensive stages are spent on it.
An analytical look at where problems originate
It helps to classify mismatches, because each class points to a different remedy.
- Wrong selection. The producer built the correct thing but shared another. Remedy: reference by digest, not by tag.
- Incomplete build. A step failed quietly and the output is partial. Remedy: make the producer’s pipeline fail loudly and have the recipient count files.
- Environment assumption. The artefact expects a library, variable or permission that the recipient lacks. Remedy: list requirements in the manifest and compare them with the target.
- Unannounced change. A dependency moved between builds. Remedy: commit the lock file and review changes to it.
Keeping a tally of which class each incident falls into shows where effort will pay back. If environment assumptions dominate, better manifests help more than extra tests.
A worked beginner exercise
Create a tiny web service and build it into an image. Write a manifest listing the image digest, the port, two environment variables and one configuration file. Now play both parts. As producer, publish the image. As recipient, pull it by digest, list the files inside, check the declared version, start it with only the listed variables and request the health page.
Then sabotage one thing at a time. Remove a variable from the manifest and see how the failure presents. Rebuild the image under the same tag and confirm that your digest comparison notices. Delete the configuration file. Each experiment teaches you what an unchecked fault looks like from the receiving end, which is knowledge that reading alone seldom provides. If the surrounding stages are new to you, this explanation of how a dependable delivery pipeline is put together gives the context.
Where the checks sit across stages
It is tempting to build one large inspection near production. A better arrangement gives each recipient a small one of its own. When the test stage receives a build, it compares the digest with the build record. When staging receives that same build, it compares again and also looks at configuration. When production receives it, the comparison is against what staging accepted. The chain matters because it shows where a substitution happened, if one did.
Each link should write down three values: what it expected, what it saw and the outcome. Those lines are cheap to store and surprisingly rich during an incident. An investigator can read them in order and find the first place where expected and seen parted ways, without interviewing anyone.
Configuration is a delivery too
Settings files, secrets references and database scripts often travel separately from the code, sometimes by chat message. Treat them with identical care. Compare the keys present with the keys the application declares, flag any value that is empty, and check that a script targets the environment you think it does. Never paste secret values into logs while comparing; record only that a key exists and which store supplied it.
When the producer is another team
Agree on the shape of a manifest once and reuse it. A shared layout means recipients can automate the comparison, and producers learn which fields are routinely missing. Review the format after a few months. If nobody ever reads a field, remove it; if people keep asking the same question by message, add it.
Third-party front-end packages
The same questions apply to material that no pipeline of yours produced. A theme, template or interface kit downloaded for an internal portal is an artefact too. Directories of such items exist on the web; ThemeRove is one that catalogues web templates, themes and UI kits for several kinds of site platform. Wherever a package originates, extract it in quarantine, read its file list and declared version, compare both with what you expected, and only then commit it to a shared repository.
Automating the gate
Manual comparison teaches the idea; automation keeps it honest. A gate can fail the pipeline when the digest differs, when a required file is absent or when the declared version does not match the ticket. Keep the rules small and readable. A gate that nobody understands will be bypassed during the first urgent release.
Security scanning belongs nearby, though it answers a separate question about known weaknesses rather than about whether you received the right thing. The case for running protective checks early in a pipeline explains why those scans are placed near the entrance too.
Reading a rejection calmly
When a gate refuses a delivery, beginners often hunt for a way round it. Read the message first. It should name the field that differed and show both values. If the expected value is stale, correct the request record and note who approved the change. If the observed value is wrong, send it back to the producer with the log line attached. Only when the rule itself is faulty should the rule be edited, and that edit deserves the same review as application code. Writing down which of the three it was builds judgement faster than any tutorial, because patterns appear after a dozen entries.
Link checking offers a gentle analogy for newcomers: a page delivered to visitors is also a kind of artefact, and spotting dead links early is a way of examining it before readers do.
Common beginner mistakes
Several habits weaken intake checks. Comparing the output of a build with itself proves nothing; the reference must come from the request or the producer. Logging a pass without storing the values leaves no evidence. Allowing a manual override with no recorded reason turns the gate into advice. Finally, checking only the newest artefact misses a changed dependency pulled in during the same run.
What to measure for yourself
Without borrowing anybody’s benchmark, you can track two local figures over a few weeks: how many deliveries were rejected at the entrance, and how many faults later traced back to something that had been accepted. The first should be visible and unremarkable. The second should shrink as the manifest and gate improve. If it does not, the check is probably comparing the wrong things, and the incident classes above will tell you which to revisit.
