The manifest's invokes names seat:mesh-builds.step, seat:mesh-wants.step and each build seat's check.step; the seat's definition gives rerun, accept and why-carried inputs and the started pipeline's steps the value build, as the result's step enum has it. Builds: design 47 G §22, §24, A-97, A-99, A-102 Claude-Session: https://claude.ai/code/session_01NcbgfGKaxw984XyAPfLm4h
1532 lines
40 KiB
JSON
1532 lines
40 KiB
JSON
{
|
|
"format": 1,
|
|
"seat": "mesh-pipeline-runner",
|
|
"scope": "mesh",
|
|
"grain": "whole",
|
|
"domain": "Delivery",
|
|
"decision": "novox/hq ADR 0666",
|
|
"description": "The pipeline runner: it runs each module's pipeline on each of its watched branches, asking each step of the seat that serves it and hearing its end, and says each pipeline's and each step's start and end (design 47 *Pipelines per module*). Held once for the mesh; a foundation part.",
|
|
"acts": [
|
|
{
|
|
"step": "pipeline",
|
|
"bound": "30m"
|
|
}
|
|
],
|
|
"verbs": [
|
|
{
|
|
"name": "run",
|
|
"description": "The run on request of one or more members, each a module at a named commit, through their pipelines; delivers nothing, replacing the checker's try (ADR 0666 section 18). Says run-started.",
|
|
"input": {
|
|
"type": "object",
|
|
"properties": {
|
|
"members": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/defs/Member"
|
|
},
|
|
"minItems": 1
|
|
},
|
|
"why": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"members"
|
|
]
|
|
},
|
|
"answer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"run": {
|
|
"type": "string"
|
|
},
|
|
"pipelines": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"description": "the pipelines' keys"
|
|
}
|
|
},
|
|
"required": [
|
|
"run"
|
|
]
|
|
},
|
|
"class": "act"
|
|
},
|
|
{
|
|
"name": "start",
|
|
"description": "A delivering pipeline for a watched branch's head, by hand; written in the hand-act log.",
|
|
"input": {
|
|
"type": "object",
|
|
"properties": {
|
|
"module": {
|
|
"type": "string"
|
|
},
|
|
"branch": {
|
|
"type": "string"
|
|
},
|
|
"why": {
|
|
"type": "string",
|
|
"description": "why, written with the caller the runtime proves in the hand-act log"
|
|
}
|
|
},
|
|
"required": [
|
|
"module",
|
|
"branch",
|
|
"why"
|
|
]
|
|
},
|
|
"answer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"pipeline": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"pipeline"
|
|
]
|
|
},
|
|
"class": "act"
|
|
},
|
|
{
|
|
"name": "show",
|
|
"description": "One pipeline whole: its steps, its step log and its outputs, with the stores' fill. Reads only.",
|
|
"input": {
|
|
"type": "object",
|
|
"properties": {
|
|
"pipeline": {
|
|
"type": "string",
|
|
"description": "the pipeline's key"
|
|
}
|
|
},
|
|
"required": [
|
|
"pipeline"
|
|
]
|
|
},
|
|
"answer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"pipeline": {
|
|
"$ref": "#/defs/Pipeline"
|
|
},
|
|
"log": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/defs/LogEntry"
|
|
}
|
|
},
|
|
"outputs": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"description": "the outputs' names in step-outputs"
|
|
},
|
|
"fill": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/defs/Fill"
|
|
}
|
|
}
|
|
},
|
|
"required": [
|
|
"pipeline"
|
|
]
|
|
},
|
|
"class": "read"
|
|
},
|
|
{
|
|
"name": "list",
|
|
"description": "The pipelines and runs of a module, a branch or a commit, newest first, with the store's fill. Reads only.",
|
|
"input": {
|
|
"type": "object",
|
|
"properties": {
|
|
"module": {
|
|
"type": "string"
|
|
},
|
|
"branch": {
|
|
"type": "string"
|
|
},
|
|
"commit": {
|
|
"type": "string"
|
|
},
|
|
"run": {
|
|
"type": "string"
|
|
},
|
|
"limit": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"answer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"pipelines": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/defs/Pipeline"
|
|
}
|
|
},
|
|
"fill": {
|
|
"$ref": "#/defs/Fill"
|
|
}
|
|
},
|
|
"required": [
|
|
"pipelines"
|
|
]
|
|
},
|
|
"class": "read"
|
|
},
|
|
{
|
|
"name": "stands",
|
|
"description": "What stands still, and since when: each step not ended and each wait held. Reads only.",
|
|
"input": {
|
|
"type": "object",
|
|
"properties": {}
|
|
},
|
|
"answer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"stands": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/defs/Wait"
|
|
}
|
|
}
|
|
},
|
|
"required": [
|
|
"stands"
|
|
]
|
|
},
|
|
"class": "read"
|
|
},
|
|
{
|
|
"name": "why-carried",
|
|
"description": "Where a step's result was carried from, with the kept results it rests on. Reads only.",
|
|
"input": {
|
|
"type": "object",
|
|
"properties": {
|
|
"pipeline": {
|
|
"type": "string",
|
|
"description": "the pipeline's key"
|
|
},
|
|
"step": {
|
|
"type": "string",
|
|
"enum": [
|
|
"build",
|
|
"lint",
|
|
"unit",
|
|
"integration",
|
|
"composition",
|
|
"review",
|
|
"approval"
|
|
]
|
|
},
|
|
"artifact": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"pipeline",
|
|
"step"
|
|
]
|
|
},
|
|
"answer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"carried-from": {
|
|
"type": "string"
|
|
},
|
|
"kept": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/defs/KeptResult"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"class": "read"
|
|
},
|
|
{
|
|
"name": "kept",
|
|
"description": "The kept results, by digest, package or level, with the store's fill. Reads only.",
|
|
"input": {
|
|
"type": "object",
|
|
"properties": {
|
|
"digest": {
|
|
"type": "string"
|
|
},
|
|
"package": {
|
|
"type": "string"
|
|
},
|
|
"level": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"answer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"kept": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/defs/KeptResult"
|
|
}
|
|
},
|
|
"fill": {
|
|
"$ref": "#/defs/Fill"
|
|
}
|
|
},
|
|
"required": [
|
|
"kept"
|
|
]
|
|
},
|
|
"class": "read"
|
|
},
|
|
{
|
|
"name": "review",
|
|
"description": "A code review's result for a commit and fingerprint, taken from the reviewer's account and refused from the commit's author (ADR 0666 section 22).",
|
|
"input": {
|
|
"type": "object",
|
|
"properties": {
|
|
"module": {
|
|
"type": "string"
|
|
},
|
|
"commit": {
|
|
"type": "string"
|
|
},
|
|
"fingerprint": {
|
|
"type": "string"
|
|
},
|
|
"outcome": {
|
|
"type": "string",
|
|
"enum": [
|
|
"passed",
|
|
"failed"
|
|
]
|
|
},
|
|
"said": {
|
|
"type": "string",
|
|
"description": "what the review found"
|
|
}
|
|
},
|
|
"required": [
|
|
"module",
|
|
"commit",
|
|
"fingerprint",
|
|
"outcome"
|
|
]
|
|
},
|
|
"answer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"pipeline": {
|
|
"type": "string"
|
|
},
|
|
"result": {
|
|
"$ref": "#/defs/StepResult"
|
|
}
|
|
},
|
|
"required": [
|
|
"result"
|
|
]
|
|
},
|
|
"class": "act"
|
|
},
|
|
{
|
|
"name": "rerun",
|
|
"description": "One step again; its step-ended says it is a rerun and the caller the runtime proved. Written in the hand-act log.",
|
|
"input": {
|
|
"type": "object",
|
|
"properties": {
|
|
"pipeline": {
|
|
"type": "string",
|
|
"description": "the pipeline's key"
|
|
},
|
|
"step": {
|
|
"type": "string",
|
|
"enum": [
|
|
"build",
|
|
"lint",
|
|
"unit",
|
|
"integration",
|
|
"composition",
|
|
"review",
|
|
"approval"
|
|
]
|
|
},
|
|
"artifact": {
|
|
"type": "string"
|
|
},
|
|
"why": {
|
|
"type": "string",
|
|
"description": "why, written with the caller the runtime proves in the hand-act log"
|
|
}
|
|
},
|
|
"required": [
|
|
"pipeline",
|
|
"step",
|
|
"why"
|
|
]
|
|
},
|
|
"answer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"pipeline": {
|
|
"type": "string"
|
|
},
|
|
"result": {
|
|
"$ref": "#/defs/StepResult"
|
|
}
|
|
},
|
|
"required": [
|
|
"pipeline"
|
|
]
|
|
},
|
|
"class": "act"
|
|
},
|
|
{
|
|
"name": "accept",
|
|
"description": "A failed optional step accepted, with who and why, in the hand-act log.",
|
|
"input": {
|
|
"type": "object",
|
|
"properties": {
|
|
"pipeline": {
|
|
"type": "string",
|
|
"description": "the pipeline's key"
|
|
},
|
|
"step": {
|
|
"type": "string",
|
|
"enum": [
|
|
"build",
|
|
"lint",
|
|
"unit",
|
|
"integration",
|
|
"composition",
|
|
"review",
|
|
"approval"
|
|
]
|
|
},
|
|
"artifact": {
|
|
"type": "string"
|
|
},
|
|
"why": {
|
|
"type": "string",
|
|
"description": "why, written with the caller the runtime proves in the hand-act log"
|
|
}
|
|
},
|
|
"required": [
|
|
"pipeline",
|
|
"step",
|
|
"why"
|
|
]
|
|
},
|
|
"answer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"result": {
|
|
"$ref": "#/defs/StepResult"
|
|
}
|
|
},
|
|
"required": [
|
|
"result"
|
|
]
|
|
},
|
|
"class": "act"
|
|
},
|
|
{
|
|
"name": "cancel",
|
|
"description": "A pipeline ended cancelled, its waiting asks dropped by each build seat's drop. Written in the hand-act log.",
|
|
"input": {
|
|
"type": "object",
|
|
"properties": {
|
|
"pipeline": {
|
|
"type": "string",
|
|
"description": "the pipeline's key"
|
|
},
|
|
"why": {
|
|
"type": "string",
|
|
"description": "why, written with the caller the runtime proves in the hand-act log"
|
|
}
|
|
},
|
|
"required": [
|
|
"pipeline",
|
|
"why"
|
|
]
|
|
},
|
|
"answer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"pipeline": {
|
|
"$ref": "#/defs/Pipeline"
|
|
}
|
|
},
|
|
"required": [
|
|
"pipeline"
|
|
]
|
|
},
|
|
"class": "act"
|
|
},
|
|
{
|
|
"name": "ask-again",
|
|
"description": "A declined approval step asked again (ADR 0666 section 10). Written in the hand-act log.",
|
|
"input": {
|
|
"type": "object",
|
|
"properties": {
|
|
"pipeline": {
|
|
"type": "string",
|
|
"description": "the pipeline's key"
|
|
},
|
|
"why": {
|
|
"type": "string",
|
|
"description": "why, written with the caller the runtime proves in the hand-act log"
|
|
}
|
|
},
|
|
"required": [
|
|
"pipeline",
|
|
"why"
|
|
]
|
|
},
|
|
"answer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"result": {
|
|
"$ref": "#/defs/StepResult"
|
|
}
|
|
},
|
|
"required": [
|
|
"result"
|
|
]
|
|
},
|
|
"class": "act"
|
|
}
|
|
],
|
|
"events": [
|
|
{
|
|
"name": "pipeline-started",
|
|
"subject": "pipeline-started.<module>.<branch>.<commit-or-group>",
|
|
"body": {
|
|
"$ref": "#/defs/PipelineStarted"
|
|
},
|
|
"keep": {
|
|
"max-age-days": 90,
|
|
"max-mib": 32
|
|
}
|
|
},
|
|
{
|
|
"name": "pipeline-ended",
|
|
"subject": "pipeline-ended.<module>.<branch>.<commit-or-group>",
|
|
"body": {
|
|
"$ref": "#/defs/PipelineEnded"
|
|
},
|
|
"keep": {
|
|
"max-age-days": 90,
|
|
"max-mib": 192
|
|
}
|
|
},
|
|
{
|
|
"name": "group-ended",
|
|
"subject": "group-ended.<branch>.<group>",
|
|
"body": {
|
|
"$ref": "#/defs/GroupEnded"
|
|
},
|
|
"keep": {
|
|
"max-age-days": 90,
|
|
"max-mib": 64
|
|
}
|
|
},
|
|
{
|
|
"name": "run-started",
|
|
"subject": "run-started.<module>.<branch>.<commit-or-group>",
|
|
"body": {
|
|
"$ref": "#/defs/RunStarted"
|
|
},
|
|
"keep": {
|
|
"max-age-days": 90,
|
|
"max-mib": 16
|
|
}
|
|
},
|
|
{
|
|
"name": "step-started",
|
|
"subject": "step-started.<module>.<branch>.<commit-or-group>",
|
|
"body": {
|
|
"$ref": "#/defs/StepEvent"
|
|
},
|
|
"keep": {
|
|
"max-age-days": 90,
|
|
"max-mib": 128
|
|
}
|
|
},
|
|
{
|
|
"name": "step-ended",
|
|
"subject": "step-ended.<module>.<branch>.<commit-or-group>",
|
|
"body": {
|
|
"$ref": "#/defs/StepEvent"
|
|
},
|
|
"keep": {
|
|
"max-age-days": 90,
|
|
"max-mib": 128
|
|
}
|
|
},
|
|
{
|
|
"name": "wait-held",
|
|
"subject": "wait-held.<module>.<branch>.<commit-or-group>",
|
|
"body": {
|
|
"$ref": "#/defs/Wait"
|
|
},
|
|
"keep": {
|
|
"max-age-days": 90,
|
|
"max-mib": 32
|
|
}
|
|
},
|
|
{
|
|
"name": "wait-ended",
|
|
"subject": "wait-ended.<module>.<branch>.<commit-or-group>",
|
|
"body": {
|
|
"$ref": "#/defs/Wait"
|
|
},
|
|
"keep": {
|
|
"max-age-days": 90,
|
|
"max-mib": 32
|
|
}
|
|
}
|
|
],
|
|
"family": {
|
|
"name": "mesh-pipeline-runner.events",
|
|
"max-age-days": 7
|
|
},
|
|
"states": [
|
|
{
|
|
"name": "pipelines",
|
|
"template": "state",
|
|
"history": 1,
|
|
"description": "one key per pipeline, written by compare-and-set; kept in the runner's old state section (ADR 0666 section 4)",
|
|
"key-forms": [
|
|
{
|
|
"key": "<branch>.<revision>.<module>",
|
|
"value": {
|
|
"$ref": "#/defs/Pipeline"
|
|
},
|
|
"description": "a pipeline"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "kept",
|
|
"template": "state",
|
|
"history": 1,
|
|
"description": "each package's passing result per level, under the digest of what its tests read; kept in the runner's old state section",
|
|
"key-forms": [
|
|
{
|
|
"key": "<level>.<digest>",
|
|
"value": {
|
|
"$ref": "#/defs/KeptResult"
|
|
},
|
|
"description": "a kept result"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "step-log",
|
|
"template": "log",
|
|
"max-age-days": 100,
|
|
"description": "one entry per step's start and end, its output by name; kept on the runner's old streams section",
|
|
"key-forms": [
|
|
{
|
|
"key": "<pipeline>",
|
|
"value": {
|
|
"$ref": "#/defs/LogEntry"
|
|
},
|
|
"description": "an entry of a pipeline's log"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "step-outputs",
|
|
"template": "objects",
|
|
"description": "a lint or test step's output, named in the step log; kept in the runner's old objects section",
|
|
"key-forms": [
|
|
{
|
|
"key": "<pipeline>.<step>.<artifact>",
|
|
"value": {
|
|
"type": "string",
|
|
"description": "the output, UTF-8 text"
|
|
},
|
|
"description": "one step's output"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"defs": {
|
|
"TestCounts": {
|
|
"type": "object",
|
|
"properties": {
|
|
"unit": {
|
|
"type": "integer"
|
|
},
|
|
"integration": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"description": "how many tests a step ran and carried, per level (ADR 0666 section 8)"
|
|
},
|
|
"ToolchainUsed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"language": {
|
|
"type": "string"
|
|
},
|
|
"version": {
|
|
"type": "string"
|
|
},
|
|
"recipe": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"language",
|
|
"version",
|
|
"recipe"
|
|
],
|
|
"description": "the toolchain a build was made with: the language, the installed version and the build module's recipe"
|
|
},
|
|
"KeptResult": {
|
|
"type": "object",
|
|
"properties": {
|
|
"package": {
|
|
"type": "string"
|
|
},
|
|
"digest": {
|
|
"type": "string",
|
|
"description": "sha256:<hex> of what the package's tests read"
|
|
},
|
|
"level": {
|
|
"type": "string",
|
|
"description": "unit or integration"
|
|
},
|
|
"toolchain": {
|
|
"$ref": "#/defs/ToolchainUsed"
|
|
},
|
|
"pipeline": {
|
|
"type": "string",
|
|
"description": "the pipeline whose step kept it"
|
|
}
|
|
},
|
|
"description": "a package's passing result the runner keeps, by the digest of what its tests read (ADR 0666 section 8)",
|
|
"required": [
|
|
"package",
|
|
"digest",
|
|
"level"
|
|
]
|
|
},
|
|
"Fill": {
|
|
"type": "object",
|
|
"properties": {
|
|
"store": {
|
|
"type": "string",
|
|
"description": "the kept data, by its name in the holder's manifest"
|
|
},
|
|
"bytes": {
|
|
"type": "integer"
|
|
},
|
|
"cap": {
|
|
"type": "integer",
|
|
"description": "bytes"
|
|
},
|
|
"at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"description": "a store's fill against its cap",
|
|
"required": [
|
|
"store",
|
|
"bytes",
|
|
"cap"
|
|
]
|
|
},
|
|
"Accepted": {
|
|
"type": "object",
|
|
"properties": {
|
|
"by": {
|
|
"type": "string",
|
|
"description": "who accepted it, as the runtime proved the caller"
|
|
},
|
|
"why": {
|
|
"type": "string"
|
|
},
|
|
"at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"description": "a failed optional step a person accepted, recorded in the hand-act log",
|
|
"required": [
|
|
"by",
|
|
"why"
|
|
]
|
|
},
|
|
"StepResult": {
|
|
"type": "object",
|
|
"properties": {
|
|
"step": {
|
|
"type": "string",
|
|
"enum": [
|
|
"build",
|
|
"lint",
|
|
"unit",
|
|
"integration",
|
|
"composition",
|
|
"review",
|
|
"approval"
|
|
]
|
|
},
|
|
"artifact": {
|
|
"type": "string",
|
|
"description": "the artifact reference, <module>:<artifact>; absent for a step of the whole module (review, approval)"
|
|
},
|
|
"status": {
|
|
"type": "string",
|
|
"enum": [
|
|
"required",
|
|
"optional",
|
|
"bypass"
|
|
],
|
|
"description": "the step's status in the module's policy"
|
|
},
|
|
"outcome": {
|
|
"type": "string",
|
|
"enum": [
|
|
"running",
|
|
"waiting",
|
|
"passed",
|
|
"failed",
|
|
"nothing to run",
|
|
"bypassed",
|
|
"carried",
|
|
"could not run",
|
|
"waiting for a build node",
|
|
"did not build",
|
|
"accepted",
|
|
"not asked",
|
|
"declined",
|
|
"superseded",
|
|
"cancelled"
|
|
],
|
|
"description": "never passed for a step that ran nothing (design 47 *Pipeline steps and the policy*)"
|
|
},
|
|
"why": {
|
|
"type": "string",
|
|
"description": "what the outcome rests on: the part not heard, the seat with no holder, what a waiting step waits on"
|
|
},
|
|
"on": {
|
|
"type": "string",
|
|
"description": "for a waiting step, who or what it waits on: a person, a build node, the revision view"
|
|
},
|
|
"fingerprint": {
|
|
"type": "string",
|
|
"description": "the artifact's build-input fingerprint the step ran at"
|
|
},
|
|
"seat": {
|
|
"type": "string",
|
|
"description": "the seat that serves the step, whose holder alone may end it (ADR 0666 section 21)"
|
|
},
|
|
"node": {
|
|
"type": "string",
|
|
"description": "the node whose holder ended it"
|
|
},
|
|
"ask": {
|
|
"type": "string",
|
|
"description": "the step's ask on the serving seat's work queue"
|
|
},
|
|
"tests": {
|
|
"$ref": "#/defs/TestCounts"
|
|
},
|
|
"carried-from": {
|
|
"type": "string",
|
|
"description": "for a carried result, the pipeline it was carried from"
|
|
},
|
|
"rerun": {
|
|
"type": "boolean",
|
|
"description": "the step was asked again by the runner's rerun"
|
|
},
|
|
"by": {
|
|
"type": "string",
|
|
"description": "for a rerun, the caller the runtime proved"
|
|
},
|
|
"accepted": {
|
|
"$ref": "#/defs/Accepted"
|
|
},
|
|
"output": {
|
|
"type": "string",
|
|
"description": "the step's output, by its name in the runner's objects step-outputs"
|
|
},
|
|
"started": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"ended": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"description": "one step of a pipeline: its status in the policy and its outcome (design 47 *Pipeline steps and the policy*)",
|
|
"required": [
|
|
"step",
|
|
"status",
|
|
"outcome"
|
|
]
|
|
},
|
|
"Widening": {
|
|
"type": "object",
|
|
"properties": {
|
|
"what": {
|
|
"type": "string",
|
|
"enum": [
|
|
"serving part",
|
|
"acting rule",
|
|
"grant",
|
|
"credential",
|
|
"could not run"
|
|
]
|
|
},
|
|
"name": {
|
|
"type": "string",
|
|
"description": "the part, rule, grant or credential"
|
|
},
|
|
"said": {
|
|
"type": "string",
|
|
"description": "what the change alters in it; for \"could not run\" the grants part did not answer grants-for (design 47 G section 441)"
|
|
}
|
|
},
|
|
"description": "a part serving a step the change alters, or an acting rule, a grant or a credential it widens, computed by the running runner (ADR 0666 section 23)",
|
|
"required": [
|
|
"what",
|
|
"name"
|
|
]
|
|
},
|
|
"Pipeline": {
|
|
"type": "object",
|
|
"properties": {
|
|
"pipeline": {
|
|
"type": "string",
|
|
"description": "the pipeline's key, <branch>.<revision>.<module>, a branch escaped as a key's name is"
|
|
},
|
|
"module": {
|
|
"type": "string"
|
|
},
|
|
"branch": {
|
|
"type": "string",
|
|
"description": "the watched branch, or the branch of a run on request"
|
|
},
|
|
"revision": {
|
|
"type": "integer",
|
|
"description": "the catalog graph revision of the branch the pipeline runs for"
|
|
},
|
|
"source": {
|
|
"type": "integer",
|
|
"description": "the source revision of the watched branch; the pipeline is keyed by it (ADR 0666 section 9)"
|
|
},
|
|
"end-count": {
|
|
"type": "integer",
|
|
"description": "how often the pipeline has ended: 1 at its first end, one higher at each end again after a passing rerun, so the assigner takes a later end of the same source revision (design 47 G sections 29, 325)"
|
|
},
|
|
"commit": {
|
|
"type": "string",
|
|
"description": "the commit the module's entry was last changed at"
|
|
},
|
|
"group": {
|
|
"type": "string",
|
|
"description": "the gathered group, when the pipeline is its"
|
|
},
|
|
"run": {
|
|
"type": "string",
|
|
"description": "the run on request's id, for a pipeline of a run; such a pipeline delivers nothing"
|
|
},
|
|
"fingerprint": {
|
|
"type": "string",
|
|
"description": "the module's build-input fingerprint at the commit"
|
|
},
|
|
"v": {
|
|
"type": "integer",
|
|
"description": "the layout version"
|
|
},
|
|
"repository": {
|
|
"type": "string"
|
|
},
|
|
"outcome": {
|
|
"type": "string",
|
|
"enum": [
|
|
"running",
|
|
"passed",
|
|
"failed",
|
|
"refused",
|
|
"superseded",
|
|
"cancelled"
|
|
]
|
|
},
|
|
"why": {
|
|
"type": "string",
|
|
"description": "for a pipeline that did not pass, the steps that held it"
|
|
},
|
|
"steps": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/defs/StepResult"
|
|
},
|
|
"description": "every step, approval last"
|
|
},
|
|
"tests": {
|
|
"$ref": "#/defs/TestCounts"
|
|
},
|
|
"over-budget": {
|
|
"type": "boolean",
|
|
"description": "yes when the module is over its test budget (design 47 G section 419)"
|
|
},
|
|
"widens": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/defs/Widening"
|
|
}
|
|
},
|
|
"started": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"ended": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"version": {
|
|
"type": "string",
|
|
"description": "the version package-published names, for a pipeline the runner started from a publication or from outdated; none for any other (design 47 G 550)"
|
|
}
|
|
},
|
|
"description": "one pipeline as the runner keeps it in its state pipelines, by compare-and-set (design 47 *The runner's kept data*)",
|
|
"required": [
|
|
"module",
|
|
"branch",
|
|
"commit",
|
|
"outcome",
|
|
"steps"
|
|
]
|
|
},
|
|
"PipelineEnded": {
|
|
"type": "object",
|
|
"properties": {
|
|
"pipeline": {
|
|
"type": "string",
|
|
"description": "the pipeline's key, <branch>.<revision>.<module>, a branch escaped as a key's name is"
|
|
},
|
|
"module": {
|
|
"type": "string"
|
|
},
|
|
"branch": {
|
|
"type": "string",
|
|
"description": "the watched branch, or the branch of a run on request"
|
|
},
|
|
"revision": {
|
|
"type": "integer",
|
|
"description": "the catalog graph revision of the branch the pipeline runs for"
|
|
},
|
|
"source": {
|
|
"type": "integer",
|
|
"description": "the source revision of the watched branch; the pipeline is keyed by it (ADR 0666 section 9)"
|
|
},
|
|
"end-count": {
|
|
"type": "integer",
|
|
"description": "how often the pipeline has ended: 1 at its first end, one higher at each end again after a passing rerun, so the assigner takes a later end of the same source revision (design 47 G sections 29, 325)"
|
|
},
|
|
"commit": {
|
|
"type": "string",
|
|
"description": "the commit the module's entry was last changed at"
|
|
},
|
|
"group": {
|
|
"type": "string",
|
|
"description": "the gathered group, when the pipeline is its"
|
|
},
|
|
"run": {
|
|
"type": "string",
|
|
"description": "the run on request's id, for a pipeline of a run; such a pipeline delivers nothing"
|
|
},
|
|
"fingerprint": {
|
|
"type": "string",
|
|
"description": "the module's build-input fingerprint at the commit"
|
|
},
|
|
"v": {
|
|
"type": "integer"
|
|
},
|
|
"outcome": {
|
|
"type": "string",
|
|
"enum": [
|
|
"running",
|
|
"passed",
|
|
"failed",
|
|
"refused",
|
|
"superseded",
|
|
"cancelled"
|
|
]
|
|
},
|
|
"why": {
|
|
"type": "string"
|
|
},
|
|
"steps": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/defs/StepResult"
|
|
}
|
|
},
|
|
"tests": {
|
|
"$ref": "#/defs/TestCounts"
|
|
},
|
|
"over-budget": {
|
|
"type": "boolean",
|
|
"description": "yes when the module is over its test budget (500 unit or 50 integration tests; design 47 G section 419)"
|
|
},
|
|
"widens": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/defs/Widening"
|
|
}
|
|
},
|
|
"started": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"ended": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"description": "a pipeline's end with every step's result, its test counts, the source revision and widens (design 47 *Health and going back*); the assigner writes a want only from one whose every required step passed",
|
|
"required": [
|
|
"v",
|
|
"pipeline",
|
|
"module",
|
|
"branch",
|
|
"commit",
|
|
"outcome",
|
|
"steps"
|
|
]
|
|
},
|
|
"PipelineStarted": {
|
|
"type": "object",
|
|
"properties": {
|
|
"pipeline": {
|
|
"type": "string",
|
|
"description": "the pipeline's key, <branch>.<revision>.<module>, a branch escaped as a key's name is"
|
|
},
|
|
"module": {
|
|
"type": "string"
|
|
},
|
|
"branch": {
|
|
"type": "string",
|
|
"description": "the watched branch, or the branch of a run on request"
|
|
},
|
|
"revision": {
|
|
"type": "integer",
|
|
"description": "the catalog graph revision of the branch the pipeline runs for"
|
|
},
|
|
"source": {
|
|
"type": "integer",
|
|
"description": "the source revision of the watched branch; the pipeline is keyed by it (ADR 0666 section 9)"
|
|
},
|
|
"commit": {
|
|
"type": "string",
|
|
"description": "the commit the module's entry was last changed at"
|
|
},
|
|
"group": {
|
|
"type": "string",
|
|
"description": "the gathered group, when the pipeline is its"
|
|
},
|
|
"run": {
|
|
"type": "string",
|
|
"description": "the run on request's id, for a pipeline of a run; such a pipeline delivers nothing"
|
|
},
|
|
"fingerprint": {
|
|
"type": "string",
|
|
"description": "the module's build-input fingerprint at the commit"
|
|
},
|
|
"v": {
|
|
"type": "integer"
|
|
},
|
|
"steps": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"step": {
|
|
"type": "string",
|
|
"enum": [
|
|
"build",
|
|
"lint",
|
|
"unit",
|
|
"integration",
|
|
"composition",
|
|
"review",
|
|
"approval"
|
|
]
|
|
},
|
|
"artifact": {
|
|
"type": "string"
|
|
},
|
|
"status": {
|
|
"type": "string",
|
|
"enum": [
|
|
"required",
|
|
"optional",
|
|
"bypass"
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"step",
|
|
"status"
|
|
]
|
|
},
|
|
"description": "the steps the policy gives it"
|
|
},
|
|
"at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"description": "a pipeline's start",
|
|
"required": [
|
|
"v",
|
|
"pipeline",
|
|
"module",
|
|
"branch",
|
|
"commit"
|
|
]
|
|
},
|
|
"GroupEnded": {
|
|
"type": "object",
|
|
"properties": {
|
|
"v": {
|
|
"type": "integer"
|
|
},
|
|
"group": {
|
|
"type": "string"
|
|
},
|
|
"branch": {
|
|
"type": "string"
|
|
},
|
|
"revision": {
|
|
"type": "integer"
|
|
},
|
|
"source": {
|
|
"type": "integer",
|
|
"description": "the group's one source revision of the watched branch"
|
|
},
|
|
"outcome": {
|
|
"type": "string",
|
|
"enum": [
|
|
"running",
|
|
"passed",
|
|
"failed",
|
|
"refused",
|
|
"superseded",
|
|
"cancelled"
|
|
]
|
|
},
|
|
"why": {
|
|
"type": "string"
|
|
},
|
|
"pipelines": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/defs/PipelineEnded"
|
|
},
|
|
"description": "every member module's pipeline, each ended"
|
|
},
|
|
"ended": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"description": "a group's one pipeline's end on a watched branch, said once every member's modules have ended; a group's wants are written on it alone (ADR 0666 section 9)",
|
|
"required": [
|
|
"v",
|
|
"group",
|
|
"branch",
|
|
"outcome",
|
|
"pipelines"
|
|
]
|
|
},
|
|
"Member": {
|
|
"type": "object",
|
|
"properties": {
|
|
"module": {
|
|
"type": "string"
|
|
},
|
|
"commit": {
|
|
"type": "string"
|
|
},
|
|
"branch": {
|
|
"type": "string",
|
|
"description": "the branch the commit is on"
|
|
}
|
|
},
|
|
"description": "a module at a named commit",
|
|
"required": [
|
|
"module",
|
|
"commit"
|
|
]
|
|
},
|
|
"RunStarted": {
|
|
"type": "object",
|
|
"properties": {
|
|
"v": {
|
|
"type": "integer"
|
|
},
|
|
"run": {
|
|
"type": "string"
|
|
},
|
|
"members": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/defs/Member"
|
|
}
|
|
},
|
|
"by": {
|
|
"type": "string",
|
|
"description": "the caller the runtime proved"
|
|
},
|
|
"at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"description": "a run on request's start, with its members at their commits (ADR 0666 section 18)",
|
|
"required": [
|
|
"v",
|
|
"run",
|
|
"members",
|
|
"by"
|
|
]
|
|
},
|
|
"StepEvent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"pipeline": {
|
|
"type": "string",
|
|
"description": "the pipeline's key, <branch>.<revision>.<module>, a branch escaped as a key's name is"
|
|
},
|
|
"module": {
|
|
"type": "string"
|
|
},
|
|
"branch": {
|
|
"type": "string",
|
|
"description": "the watched branch, or the branch of a run on request"
|
|
},
|
|
"revision": {
|
|
"type": "integer",
|
|
"description": "the catalog graph revision of the branch the pipeline runs for"
|
|
},
|
|
"source": {
|
|
"type": "integer",
|
|
"description": "the source revision of the watched branch; the pipeline is keyed by it (ADR 0666 section 9)"
|
|
},
|
|
"commit": {
|
|
"type": "string",
|
|
"description": "the commit the module's entry was last changed at"
|
|
},
|
|
"group": {
|
|
"type": "string",
|
|
"description": "the gathered group, when the pipeline is its"
|
|
},
|
|
"run": {
|
|
"type": "string",
|
|
"description": "the run on request's id, for a pipeline of a run; such a pipeline delivers nothing"
|
|
},
|
|
"fingerprint": {
|
|
"type": "string",
|
|
"description": "the module's build-input fingerprint at the commit"
|
|
},
|
|
"v": {
|
|
"type": "integer"
|
|
},
|
|
"result": {
|
|
"$ref": "#/defs/StepResult"
|
|
},
|
|
"at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"description": "a step's start or end: the step, its status, its outcome, its fingerprint, its test counts, what a carried result was carried from, and for a rerun that it is one and its proved caller; a bypassed step too",
|
|
"required": [
|
|
"v",
|
|
"pipeline",
|
|
"module",
|
|
"branch",
|
|
"commit",
|
|
"result"
|
|
]
|
|
},
|
|
"Wait": {
|
|
"type": "object",
|
|
"properties": {
|
|
"pipeline": {
|
|
"type": "string",
|
|
"description": "the pipeline's key, <branch>.<revision>.<module>, a branch escaped as a key's name is"
|
|
},
|
|
"module": {
|
|
"type": "string"
|
|
},
|
|
"branch": {
|
|
"type": "string",
|
|
"description": "the watched branch, or the branch of a run on request"
|
|
},
|
|
"revision": {
|
|
"type": "integer",
|
|
"description": "the catalog graph revision of the branch the pipeline runs for"
|
|
},
|
|
"source": {
|
|
"type": "integer",
|
|
"description": "the source revision of the watched branch; the pipeline is keyed by it (ADR 0666 section 9)"
|
|
},
|
|
"commit": {
|
|
"type": "string",
|
|
"description": "the commit the module's entry was last changed at"
|
|
},
|
|
"group": {
|
|
"type": "string",
|
|
"description": "the gathered group, when the pipeline is its"
|
|
},
|
|
"run": {
|
|
"type": "string",
|
|
"description": "the run on request's id, for a pipeline of a run; such a pipeline delivers nothing"
|
|
},
|
|
"fingerprint": {
|
|
"type": "string",
|
|
"description": "the module's build-input fingerprint at the commit"
|
|
},
|
|
"v": {
|
|
"type": "integer"
|
|
},
|
|
"step": {
|
|
"type": "string",
|
|
"enum": [
|
|
"build",
|
|
"lint",
|
|
"unit",
|
|
"integration",
|
|
"composition",
|
|
"review",
|
|
"approval",
|
|
"pipeline"
|
|
],
|
|
"description": "a pipeline step a wait inside a pipeline is in; pipeline is the acting step of design 47 G 203, for a wait of the entries the runner holds for its new version (design 47 G 534)"
|
|
},
|
|
"artifact": {
|
|
"type": "string"
|
|
},
|
|
"on": {
|
|
"type": "string",
|
|
"enum": [
|
|
"person",
|
|
"build node",
|
|
"revision view"
|
|
],
|
|
"description": "what the step waits on (design 47 *Health and going back*)"
|
|
},
|
|
"who": {
|
|
"type": "string",
|
|
"description": "for a wait on a person, who: the operator, a reviewer"
|
|
},
|
|
"since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"how": {
|
|
"type": "string",
|
|
"description": "for its end, how it ended: answered, ran, released, superseded"
|
|
},
|
|
"clock-from": {
|
|
"type": "string",
|
|
"format": "date-time",
|
|
"description": "the time the bound counts from (design 47 G section 266, section 269, section 498)"
|
|
}
|
|
},
|
|
"description": "a step's wait, held and ended; a wait on a person is said as waiting on that person, never a stall (ADR 0283)",
|
|
"required": [
|
|
"v",
|
|
"pipeline",
|
|
"module",
|
|
"branch",
|
|
"step",
|
|
"on",
|
|
"since"
|
|
]
|
|
},
|
|
"LogEntry": {
|
|
"type": "object",
|
|
"properties": {
|
|
"pipeline": {
|
|
"type": "string"
|
|
},
|
|
"step": {
|
|
"type": "string",
|
|
"enum": [
|
|
"build",
|
|
"lint",
|
|
"unit",
|
|
"integration",
|
|
"composition",
|
|
"review",
|
|
"approval"
|
|
]
|
|
},
|
|
"artifact": {
|
|
"type": "string"
|
|
},
|
|
"what": {
|
|
"type": "string",
|
|
"enum": [
|
|
"started",
|
|
"ended"
|
|
]
|
|
},
|
|
"outcome": {
|
|
"type": "string",
|
|
"enum": [
|
|
"running",
|
|
"waiting",
|
|
"passed",
|
|
"failed",
|
|
"nothing to run",
|
|
"bypassed",
|
|
"carried",
|
|
"could not run",
|
|
"waiting for a build node",
|
|
"did not build",
|
|
"accepted",
|
|
"declined",
|
|
"superseded",
|
|
"cancelled"
|
|
]
|
|
},
|
|
"output": {
|
|
"type": "string",
|
|
"description": "the output's name in step-outputs"
|
|
},
|
|
"at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"description": "one entry of the step log",
|
|
"required": [
|
|
"pipeline",
|
|
"step",
|
|
"what",
|
|
"at"
|
|
]
|
|
}
|
|
}
|
|
}
|