An owed act met by the forge away (401 while the store was replaced) ended could not be performed and nothing performed it again. Each act is now a kept call at the module's pace (kept-call-pace-first, kept-call-pace-max) until owed-away-bound (60 minutes), then ends could not be performed naming every try. Before each try the bridge reads the pull request through the seat git's pull: one closed unmerged ends owed.ended not-needed, never performed. The gate's owed event gains record (the delivery record's source revision), kept with the act in performed, and bridge_owed_again by record and why performs again every act of that record that ended could not be performed, written in the hand-act log first. Builds: design 47 H2 §807, §775, §819, H-A-432
161 lines
4.3 KiB
JSON
161 lines
4.3 KiB
JSON
{
|
|
"module": "mesh-delivery-forge-bridge",
|
|
"version": "0.1",
|
|
"slug": "forge-bridge",
|
|
"consumes": [
|
|
"git.branch-moved",
|
|
"mesh-catalog.registration-changed",
|
|
"mesh-delivery.source-moved",
|
|
"mesh-delivery.owed",
|
|
"mesh-broker.recreated",
|
|
"mesh-broker.dropped"
|
|
],
|
|
"streams": [
|
|
{ "name": "forge", "events": ["forge.**", "owed.ended"], "max-age-days": 7 }
|
|
],
|
|
"state": [
|
|
{ "name": "heads", "history": 1, "max-mib": 8 },
|
|
{ "name": "owed-asks", "history": 1, "max-mib": 8 }
|
|
],
|
|
"tools": [
|
|
"bridge_tags",
|
|
"bridge_heads",
|
|
"bridge_owed",
|
|
"bridge_owed_again",
|
|
"bridge_owed_drop",
|
|
"mesh-delivery-forge-bridge_state_prune_now",
|
|
"mesh-delivery-forge-bridge_state_keep"
|
|
],
|
|
"invokes": [
|
|
"seat:git.status",
|
|
"seat:git.comment",
|
|
"seat:git.view",
|
|
"seat:git.pull",
|
|
"seat:git.note",
|
|
"seat:mesh-hand-acts.hand-act",
|
|
"seat:git.tags",
|
|
"seat:git.branch",
|
|
"seat:mesh-catalog.registrations",
|
|
"seat:mesh-delivery.source",
|
|
"seat:mesh-broker.show"
|
|
],
|
|
"requires": [
|
|
{
|
|
"name": "performed",
|
|
"storage": "key-value",
|
|
"template": "state",
|
|
"options": { "history": 1, "ttl-seconds": 259200, "max-mib": 8 }
|
|
}
|
|
],
|
|
"config": {
|
|
"owed-away-bound": {
|
|
"type": "string",
|
|
"description": "How long the bridge calls an owed act again through transport faults and the seat git's away before it says owed.ended could not be performed, naming its tries, a Go duration (design 47 H2 §807).",
|
|
"trusted": false,
|
|
"runtime": true,
|
|
"default": "60m"
|
|
},
|
|
"kept-call-pace-first": {
|
|
"type": "string",
|
|
"description": "the first wait before a kept call met by a transport fault is made again, doubled per call up to kept-call-pace-max, a Go duration (design 47 H2 §775).",
|
|
"trusted": false,
|
|
"runtime": true,
|
|
"default": "1s"
|
|
},
|
|
"kept-call-pace-max": {
|
|
"type": "string",
|
|
"description": "the most a kept call's wait between calls grows to, a Go duration (design 47 H2 §775).",
|
|
"trusted": false,
|
|
"runtime": true,
|
|
"default": "30s"
|
|
},
|
|
"prune-mark": {
|
|
"type": "number",
|
|
"description": "The fill of the bridge's state performed, in percent of its cap, past which the bridge prunes it at its own write, oldest acts first (design 47 H2 §812): below the bus module's raise mark of 75 %.",
|
|
"trusted": false,
|
|
"runtime": true,
|
|
"minimum": 1,
|
|
"maximum": 100,
|
|
"default": 70
|
|
},
|
|
"prune-target": {
|
|
"type": "number",
|
|
"description": "The fill, in percent of the cap, a prune of the bridge's state performed takes it down to (design 47 H2 §812); below prune-mark.",
|
|
"trusted": false,
|
|
"runtime": true,
|
|
"minimum": 1,
|
|
"maximum": 100,
|
|
"default": 50
|
|
}
|
|
},
|
|
"own-secrets": {
|
|
"broker": "${dir:state}/broker"
|
|
},
|
|
"secrets-owner": "mesh-delivery-forge-bridge",
|
|
"resources": [
|
|
{
|
|
"id": "account",
|
|
"type": "user",
|
|
"name": "mesh-delivery-forge-bridge",
|
|
"shell": "/usr/bin/nologin",
|
|
"home": "/var/lib/mesh-delivery-forge-bridge"
|
|
},
|
|
{
|
|
"id": "state",
|
|
"type": "directory",
|
|
"mode": "0700",
|
|
"owner": "mesh-delivery-forge-bridge",
|
|
"place": ".",
|
|
"unknown": "program"
|
|
},
|
|
{
|
|
"id": "bridge",
|
|
"type": "process",
|
|
"name": "mesh-delivery-forge-bridge",
|
|
"artifact": "program",
|
|
"run": [
|
|
"./mesh-delivery-forge-bridge"
|
|
],
|
|
"env": {
|
|
"MESH_BROKER_FILE": "${dir:state}/broker"
|
|
},
|
|
"user": "mesh-delivery-forge-bridge",
|
|
"health": {
|
|
"kind": "unit"
|
|
}
|
|
}
|
|
],
|
|
"build": {
|
|
"artifacts": [
|
|
{
|
|
"name": "program",
|
|
"kind": "bundle",
|
|
"language": "go",
|
|
"system": "arch",
|
|
"from": "cmd/mesh-delivery-forge-bridge",
|
|
"binary": "mesh-delivery-forge-bridge"
|
|
},
|
|
{
|
|
"name": "tools",
|
|
"kind": "bundle",
|
|
"language": "go",
|
|
"system": "arch",
|
|
"from": "cmd/mesh-delivery-forge-bridge-tools",
|
|
"binary": "mesh-delivery-forge-bridge-tools",
|
|
"loads": [
|
|
"mesh-delivery-forge-bridge-tools"
|
|
]
|
|
},
|
|
{
|
|
"name": "forgemsg",
|
|
"kind": "package",
|
|
"language": "go",
|
|
"paths": [
|
|
"forgemsg"
|
|
],
|
|
"series": "0.1"
|
|
}
|
|
]
|
|
}
|
|
}
|