Building Software Reproducibly

  1. Targets, Inputs, and Outputs in a Build

    A build defines outputs and which source files, settings, or tools must be available to produce them.

    Undergraduate
  2. Ordering Build Steps by Their Dependencies

    Dependencies determine which steps must finish before others can start. Independent steps can run in either allowable order.

    Undergraduate
  3. Incremental Builds and Freshness Decisions

    An incremental build can reuse outputs when the inputs and tool conditions relevant to them have not changed under its freshness model.

    Undergraduate
  4. What Clean and Incremental Builds Exercise

    An incremental build reuses existing results under its rules. A clean build starts from a prepared state without those generated outputs.

    Undergraduate
  5. What Belongs in a Build Cache Key

    A cache key for a generated artifact should represent the inputs and settings required to distinguish incompatible outputs.

    Undergraduate
  6. Identifying Inputs to a Reproducible Build

    A reproducible build needs documented source, tool versions, dependencies, relevant settings, and enough environment information to produce the expected artifact.

    Undergraduate
  7. Declared Dependencies and Resolved Versions

    A dependency declaration may permit a range of versions. A resolution chooses a concrete version under the package manager's rules.

    Undergraduate
  8. Reviewing a Dependency Lockfile Change

    A lockfile can record exact selections made by the dependency resolver, including nested packages reached through direct dependencies.

    Undergraduate
  9. Direct and Transitive Build Dependencies

    A dependency declared by the project is direct. Other packages reached through its requirements are transitive dependencies.

    Undergraduate
  10. Source Branches and Built Artifacts

    A branch names a changing source tip. A release artifact should be identifiable by the inputs from which it was produced.

    Undergraduate
  11. Exit Status for Build Steps

    A step's result should indicate failure reliably enough that downstream stages do not publish output from a failed upstream operation.

    Undergraduate
  12. Documenting Toolchain and Target Settings

    A toolchain converts selected inputs into outputs for a target. Its architecture, version, and options can affect behavior and compatibility.

    Undergraduate
  13. Requirements That Set Order Without Changing Content

    Some dependencies ensure a prerequisite operation happens first but do not make an existing output stale when their own timestamps change.

    Undergraduate
  14. File Targets and Phony Make Targets

    A file target names a result whose existence and prerequisites can support a freshness decision. A phony target names an action in GNU Make.

    Undergraduate
  15. Generated Headers as Build Inputs

    A rule producing an input file must run before consumers can read it, and consumer reuse depends on any content changes that affect the result.

    Undergraduate
  16. Commands and Working Directory in Make Recipes

    A build recipe contains commands, and their process boundaries determine which environment changes carry over between commands.

    Undergraduate
  17. A Build Matrix for Supported Combinations

    A build matrix runs representative combinations of operating systems, runtimes, or database choices. It should match the environments a project supports.

    Undergraduate
  18. Continuous Integration Logs and Artifacts

    A build log records events during execution. An artifact retains a file produced by the job for inspection or downstream use.

    Undergraduate
  19. How Environment Variables Reach a Build

    A process environment supplies named string values that can alter flags, paths, and services used by a build.

    Undergraduate
  20. Build Steps That Generate Source or Data

    Generated files come from a declared procedure and input set. Decide how and when the repository or build should verify their contents.

    Undergraduate
  21. File Order in a Reproducible Archive

    An archive can encode a member sequence in addition to member bytes and metadata. Directory traversal order should therefore be intentional.

    Undergraduate
  22. Build-Time and Runtime Settings

    Build-time settings can change the artifact. Runtime settings influence how an already built artifact behaves when it starts or processes input.

    Undergraduate
  23. Validating an Artifact Before Release

    A release check can inspect a built artifact, its provenance, and representative behavior before replacing what users receive.

    Undergraduate
  24. Using a Digest to Identify Artifact Bytes

    A digest summarizes artifact bytes for equality checks under a stated algorithm. The expected digest needs an independent trustworthy source when authenticity matters.

    Undergraduate
  25. Reducing a Failing Build Environment

    A build failure can depend on a hidden input, a missing dependency, or the order of tasks. Reduce the failing setup without changing the observed symptom.

    Undergraduate
  26. Avoiding Output Collisions Between Build Steps

    Independent steps need distinct writable outputs or a shared writer with a clear order. Otherwise parallel execution can yield inconsistent artifacts.

    Undergraduate
  27. Testing a Build With Cold and Warm Caches

    A cold cache requires producing all needed cached results. A warm cache tests whether the build reuses only compatible results.

    Undergraduate
  28. Using Text Fixtures Across Build Platforms

    A shared text fixture should make encoding and newline expectations explicit when different platforms use different defaults.

    Undergraduate
  29. Diagnosing a Local Build That Differs from CI

    Local and automated builds can use different source paths, dependency selections, settings, or retained outputs. Compare one difference at a time.

    Undergraduate
  30. 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.

    Undergraduate