Skip to main content

Module artifact

Module artifact 

Source
Expand description

The artifact layout: object keys, per-kind provenance, and the manifest.

One definition, used by the producers, by finalize and by deploy. Two places that each “know” the layout is how a producer and a consumer drift apart without anyone noticing, which is why this is a module with types rather than a string built in three scripts.

Layout:

s3://<bucket>/<commit>/<run_id>/
    <kind>-<sha256>.tar     the payload, content-addressed
    <kind>.meta             pointer + provenance for that kind
    nomisync-manifest.json  written by finalize, and only by finalize
s3://<bucket>/latest/coverage.meta
                            copy of the newest master coverage meta

Content-addressed because the key contains the hash of the bytes: an object can never be overwritten with different content, since different bytes are a different key. That structurally removes the window where a manifest is valid while the bytes behind a mutable name changed underneath.

Run-scoped, not attempt-scoped. A re-run keeps its run id and only bumps the attempt, so a failed-only rerun of release lands under the same prefix as the first attempt, and mixing across runs or commits is unreachable, because the prefix contains both.

Coverage is a report, not part of the deploy. The deploy waits for the tests in checks, not for coverage, so finalize writes a manifest of the release alone. Each master coverage run also copies its meta to latest/coverage.meta, and the deploy overlays whichever report that names: the newest finished one, usually one commit behind the release.

Structs§

Identity
Who built an artifact, and in which run.
Meta
A published object: what it is, what it hashes to, and what produced it.

Enums§

Kind
Which half of the artifact pair an object is.

Constants§

MANIFEST_NAME