Build
Cheat sheet · https://pcornel.dk/topic.php?topic=5504
Answer
Build transforms source and declared dependencies into a reproducible candidate artifact or executable output under a controlled toolchain.
Remember
- Build success ≠ artifact correctness; dependency resolution, generated content, reproducibility, supply-chain provenance and runtime compatibility remain independent.
- Pipeline status is execution evidence, not independent proof of target service health or business outcome.
- The exact revision, evaluated pipeline definition, effective inputs and execution worker are part of the evidence context.
- Preserve artifact identity and target read-back so validation, promotion and runtime acceptance cannot be silently conflated.
First checks
- Build logs — output
- Reproducible build settings — determinism
- Dependency cache and lock files — speed and pinning
Verify in this order
source → build → artefact + SBOM
Where it usually breaks
Build success ≠ artifact correctness; dependency resolution, generated content, reproducibility, supply-chain provenance and runtime compatibility remain independent.
Commit/input → runner/job → build/test artifact → deployment request → target rollout/reconcile → effective version/config → health/readiness → workload. Preserve at least three independent checks: prerequisite/interface or identity/transport state; the owning control/service/policy state; then effective data-plane, backend or workload state. A healthy upstream boundary does not prove the downstream consumer or return path.
Build CI/CD proof-boundary map
| Boundary | Healthy evidence | Suspicious evidence |
|---|---|---|
| Trigger / evaluation | Exact commit and evaluated pipeline/inputs are known | Wrong ref, inherited rule or hidden variable changes the run |
| Execution / validation | Expected worker, jobs and tests execute with traceable context | Skips, retries, stale cache or worker drift hides the failure |
| Artifact / promotion | Immutable artifact is linked to release, approval and environment | Rebuild/mutable tag breaks provenance or approval scope |
| Target proof | Rollout plus independent readiness/acceptance confirms the intended release | Pipeline/API success is treated as runtime health |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5504