Component seams
A seam is a boundary between two of BuildWarden's components where another implementation may take the place of one side: a relay written in another language, a collector that stores outputs somewhere other than a disk, an executor for another guest. Each seam is specified in its own document, with numbered requirements, and comes with a conformance suite that checks an implementation of either side against them.
The specifications of every seam but the ledger and the driver contract live
in their own repository,
buildwarden/buildwarden-specs,
and are released one at a time, each under its own tags
<directory>/vX.Y.Z. Where this book's other pages describe a seam (the
architecture among them), they explain it; the
specification is the contract.
The seams
| Seam | Between | Specification | Implemented here by | Suite | Pinned at |
|---|---|---|---|---|---|
| 1, the claim | The claimant and the relay | relay-claim (OpenAPI) | relaycfg/, cmd/relay/; the claimant, driver.Session | relay-claim cases | relay-claim@v0.1.0 |
| 2, the outputs a collector stores | The relay and the collector | collector-outputs (OpenAPI) | collector/ (cmd/collector); the relay's side, relay/collector_client.go | collector-outputs cases | collector-outputs@v0.1.0 |
| 2, the inputs and signals a collector serves | The relay and the collector | collector-inputs (OpenAPI) | collector/ (cmd/collector); the relay's side, relay/collector_client.go | collector-inputs cases | collector-inputs@v0.1.0 |
| 3, the relay's guest API | The relay and the build environment | relay-guest-api (OpenAPI: artifacts, context, control) | relay/, cmd/relay/ | relay-guest-api cases | relay-guest-api@v0.1.0 |
| 4, the ledger | The relay and every reader | Ledger Wire Format v1 and its metadata schemas, in this repository until milestone M6 | ledger/ | specs/specs_test.go and the ledger's own tests | Not pinned: it is in this repository |
5, the executor's initialize | The launcher and the executor | executor-initialize | cmd/warden-io/ | None yet: its cases come with phase S2 | executor-initialize@v0.1.0 |
| 6, the bootstrap config | Its producer and the executor, carried by the relay | bootstrap-config | bootstrap/ | bootstrap-config cases | bootstrap-config@v0.1.0 |
| 9, the driver contract | warden and a driver binary | Driver contract v1 and its schema, in this repository until phase K2 | cmd/warden/ (warden's side); driver/drivercmd/ (the kit) and cmd/warden-driver-container/ (the container driver) | conformance/driver/ (make driver-conformance) | Not pinned: it is in this repository |
Which version this repository implements
This repository pins one version of each of the six specifications, in a Go
module of its own, tools/conformance/<directory>/go.mod, which requires that
specification's module and names its command, bw-conformance-<directory>, in
a tool directive. The last column above is that pin, as
<directory>@<version>, and every link in a row names the ref the pin is at:
the tag <directory>/vX.Y.Z for a release, or, for a branch in progress that
pins an unreleased commit of the specifications, that commit. main pins
releases only.
The conformance workflow builds each pinned command and runs its suite
against the relay and the disk collector built from this repository, each
described by a target file in tools/conformance/targets/: the relay in host,
vm and container mode and as its container image, and the disk collector on
Linux, macOS and Windows. make conformance runs the same locally. A pin is
moved with make pin-specs, which rewrites the module and the refs on this
page together, and never with go get:
make pin-specs SPECS="relay-claim@v0.2.0" # the named specifications, to releases
make pin-specs SPECS=latest # all six, to their newest releases
make pin-specs REF=<commit> # all six, to one unreleased commit