Defining Build Success at the Output Boundary

A successful build leaves artifacts satisfying the next consumer's documented needs. Execution status and artifact checks give complementary evidence.

Source
Anbloq
Language
English
Created
Updated
Chapters
4
Reading time
1 min
In this article4 chapters
  1. Choose an observable promise
  2. Keep the check small and meaningful
  3. Define success using evidence a consumer can observe
  4. Test a stale output alongside a missing output

Choose an observable promise

A documentation build can finish with status zero while missing an expected topic if an input was omitted. Assert that the intended generated page exists and links to its prerequisites. Build inputs and outputs state which paths matter.

Keep the check small and meaningful

Inspect the deliverable using a representative reader or command. Try a fixture that distinguishes a stale result from the required output. Release validation provides the later boundary before publishing.[1]

Define success using evidence a consumer can observe

A build process could report exit zero yet leave yesterday's artifact at a reused path. Agree that completion requires a freshly identified artifact linked to the requested revision and a passed consumer check. See identifying a running deployment.

Request snapshot C
Verified build result records source C
Consumer opens the produced artifact and checks requested behavior
Delivery is observed in its intended environment

Test a stale output alongside a missing output

A stale file may look valid, so verify source identity or digest evidence. Define the required outputs and the conditions that permit completion with warnings. Use a test with a pre-existing output and a new build that exits early.

References

  1. Free Software Foundation, GNU Make Manual ↩