203-the-determinism-build-restores-a-cargo-cache

The determinism build restores a cargo cache, measured

Lifecycle approvedImplementation completeVerification unknownQualification unknown

The four `determinism / emit` jobs run on every pull request, queue entry and push to `main`, and each builds the CLI and a test target from nothing. `Swatinem/rust-cache`, pinned to a commit SHA, restores the cargo registry and target for each triple, keyed so a cached tree never outlives the toolchain and `Cargo.lock` that built it, and saved from `main` only so pull requests do not churn a repository cache that is already over its limit. The wall clock before and after is measured, as note 06 3.10 requires.

Read the full pinned specification ↗

Relationships

Claimed units

  • extends
    {
      "nature": "additive",
      "spec": "156-statecraft-profile-10-governs-this-repository",
      "unit": {
        "anchor": "jobs.emit",
        "file": ".github/workflows/determinism.yml",
        "kind": "section"
      }
    }

Source headings

  1. 203: The determinism build restores a cargo cache, measured
  2. 1. Purpose
  3. 2. Territory
  4. 3. Behavior
  5. 3.1 The cache step
  6. 3.2 Saves come from `main`
  7. 3.3 The determinism claim is unchanged
  8. 3.4 Measurement
  9. 4. Out of scope
  10. 5. Resolved decisions
  11. Verification

Frozen anchors

No frozen anchors declared.