Build and test gates
Run required checks before publication and deployment. Tie each stage to source revision and artifact identity. Separate credential-free checks from privileged publishing jobs where practical. A pipeline diagram should state precisely what is tested and which failures stop advancement. For example, the build job produces image digest X after tests; the publish job records X and deploy uses X.
The build job produces image digest X after tests; the publish job records X and deploy uses X.
A release begins with a fixed revision. Tests pass, the image is built, and its identity is captured. Only then should a privileged publication stage run. If tests exercise source before building, additional image-level checks may still be needed to prove the packaging preserves required behavior. The stage graph must reflect that distinction.
A gate is a required condition for advancement. A revision identifies source. An immutable artifact identity identifies released content. Failures should stop the relevant path instead of become ignored warnings. Separate credential-free validation from publication where possible so ordinary contribution tests cannot gain deployment access. Fast parallelism is useful only when dependencies remain accurate. A test job finishing after deployment defeats the intended gate. Record exactly which checks ran and what they cover, rather than label every green workflow a complete integration or production validation.
The build job produces image digest X after tests; the publish job records X and deploy uses X.
Do not overlook this operational distinction: A pipeline diagram should state precisely what is tested and which failures stop advancement.