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

SeamBetweenSpecificationImplemented here bySuitePinned at
1, the claimThe claimant and the relayrelay-claim (OpenAPI)relaycfg/, cmd/relay/; the claimant, driver.Sessionrelay-claim casesrelay-claim@v0.1.0
2, the outputs a collector storesThe relay and the collectorcollector-outputs (OpenAPI)collector/ (cmd/collector); the relay's side, relay/collector_client.gocollector-outputs casescollector-outputs@v0.1.0
2, the inputs and signals a collector servesThe relay and the collectorcollector-inputs (OpenAPI)collector/ (cmd/collector); the relay's side, relay/collector_client.gocollector-inputs casescollector-inputs@v0.1.0
3, the relay's guest APIThe relay and the build environmentrelay-guest-api (OpenAPI: artifacts, context, control)relay/, cmd/relay/relay-guest-api casesrelay-guest-api@v0.1.0
4, the ledgerThe relay and every readerLedger Wire Format v1 and its metadata schemas, in this repository until milestone M6ledger/specs/specs_test.go and the ledger's own testsNot pinned: it is in this repository
5, the executor's initializeThe launcher and the executorexecutor-initializecmd/warden-io/None yet: its cases come with phase S2executor-initialize@v0.1.0
6, the bootstrap configIts producer and the executor, carried by the relaybootstrap-configbootstrap/bootstrap-config casesbootstrap-config@v0.1.0
9, the driver contractwarden and a driver binaryDriver contract v1 and its schema, in this repository until phase K2cmd/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