204 lines
4.8 KiB
JSON
204 lines
4.8 KiB
JSON
[
|
|
{
|
|
"name": "a running step",
|
|
"of": "state:steps/<node>.<id>",
|
|
"given": {
|
|
"v": 1,
|
|
"id": "a1b2",
|
|
"tool": "build",
|
|
"node": "ace",
|
|
"state": "running",
|
|
"started": "2026-11-05T10:00:00Z"
|
|
}
|
|
},
|
|
{
|
|
"name": "a paused node",
|
|
"of": "state:pauses/paused.<node>",
|
|
"given": {
|
|
"v": 1,
|
|
"paused": true,
|
|
"by": "operator@shanks",
|
|
"at": "2026-11-05T10:00:00Z"
|
|
}
|
|
},
|
|
{
|
|
"name": "a node's capacity",
|
|
"of": "state:pauses/capacity.<node>",
|
|
"given": {
|
|
"v": 1,
|
|
"effective": 2,
|
|
"configured": 2,
|
|
"why": "the configured steps fit the cores"
|
|
}
|
|
},
|
|
{
|
|
"name": "a node's toolchain",
|
|
"of": "state:toolchains/<node>.<language>",
|
|
"given": {
|
|
"v": 1,
|
|
"language": "go",
|
|
"version": "1.26.0",
|
|
"recipe": "1"
|
|
}
|
|
},
|
|
{
|
|
"name": "a build ask",
|
|
"of": "accept:delivery",
|
|
"subject": "mesh.seat.node-build-go.accept.delivery",
|
|
"given": {
|
|
"id": "a1b2",
|
|
"kind": "build",
|
|
"language": "go",
|
|
"asker": "mesh-delivery-builder",
|
|
"build": {
|
|
"module": "nats",
|
|
"artifacts": [
|
|
{
|
|
"artifact": "go"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "a check ask with its fetch, siblings and levels",
|
|
"of": "accept:check",
|
|
"subject": "mesh.seat.node-build-go.accept.check",
|
|
"given": {
|
|
"v": 1,
|
|
"id": "c3d4",
|
|
"kind": "check",
|
|
"language": "go",
|
|
"asker": "mesh-delivery-checker",
|
|
"at": "2026-11-05T10:00:00Z",
|
|
"check": {
|
|
"fetch": {
|
|
"repository": "novox/mesh-catalog",
|
|
"commit": "0123456789abcdef0123456789abcdef01234567",
|
|
"ref": "refs/pull/7/head",
|
|
"base": "89abcdef0123456789abcdef0123456789abcdef",
|
|
"beside": [
|
|
{
|
|
"repository": "novox/mesh-sdk",
|
|
"commit": "fedcba9876543210fedcba9876543210fedcba98"
|
|
}
|
|
],
|
|
"packages": {
|
|
"git.novox.be/novox/mesh-sdk/go": "fedcba9876543210fedcba9876543210fedcba98"
|
|
}
|
|
},
|
|
"levels": [
|
|
"unit",
|
|
"integration"
|
|
],
|
|
"kept": true
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "a finished build step with its artifacts",
|
|
"of": "state:steps/<node>.<id>",
|
|
"given": {
|
|
"v": 1,
|
|
"id": "a1b2",
|
|
"tool": "build",
|
|
"node": "ace",
|
|
"state": "passed",
|
|
"started": "2026-11-05T10:00:00Z",
|
|
"ended": "2026-11-05T10:03:00Z",
|
|
"result": {
|
|
"artifacts": [
|
|
{
|
|
"artifact": "go",
|
|
"digest": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
"reference": "container-image-registry/nats/go@sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
|
}
|
|
],
|
|
"toolchain": {
|
|
"language": "go",
|
|
"version": "1.26.0",
|
|
"recipe": "1"
|
|
},
|
|
"imports": [
|
|
"git.novox.be/novox/mesh-sdk/go"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "a finished check step with its levels",
|
|
"of": "state:steps/<node>.<id>",
|
|
"given": {
|
|
"v": 1,
|
|
"id": "c3d4",
|
|
"tool": "check",
|
|
"node": "ace",
|
|
"state": "passed",
|
|
"started": "2026-11-05T10:00:00Z",
|
|
"ended": "2026-11-05T10:06:00Z",
|
|
"result": {
|
|
"fetch": {
|
|
"repository": "novox/mesh-catalog",
|
|
"commit": "0123456789abcdef0123456789abcdef01234567"
|
|
},
|
|
"levels": [
|
|
{
|
|
"level": "unit",
|
|
"digest": {
|
|
"level": "unit",
|
|
"packages": [
|
|
{
|
|
"package": "./modules/a",
|
|
"digest": "sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"
|
|
}
|
|
]
|
|
},
|
|
"kept": [
|
|
{
|
|
"package": "./modules/a",
|
|
"digest": "sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
|
|
"tests": 12
|
|
}
|
|
],
|
|
"tests": [
|
|
{
|
|
"package": "./modules/b",
|
|
"pass": true
|
|
}
|
|
],
|
|
"unmet": [
|
|
{
|
|
"package": "./modules/c",
|
|
"needs": [
|
|
"docker"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "a declined step",
|
|
"of": "state:steps/<node>.<id>",
|
|
"given": {
|
|
"v": 1,
|
|
"id": "c3d5",
|
|
"tool": "check",
|
|
"node": "ace",
|
|
"state": "refused",
|
|
"started": "2026-11-05T10:00:00Z",
|
|
"result": {
|
|
"declined": true,
|
|
"needs": [
|
|
"docker"
|
|
],
|
|
"lacks": [
|
|
"docker"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
]
|