Tests that read ../../../mesh-catalog or ../../../mesh-host gave a verdict that depended on what sat beside the checkout: a stale or dirty sibling failed them on a desktop, and a missing one skipped them unseen. They now read the clone the build seat puts in MESH_CHECK_BESIDE, failing when it is absent there, and elsewhere a copy captured at a named commit. The skip had hidden that the builder test read a module retired by ADR 0190. The systemd reading test no longer counts the machine's own environment.d.
57 lines
1.1 KiB
Plaintext
57 lines
1.1 KiB
Plaintext
{
|
|
"module": "mesh-watcher",
|
|
"version": "1",
|
|
"slug": "watch",
|
|
"consumes": [
|
|
"mesh-controller.doctor-heartbeat"
|
|
],
|
|
"invokes": [
|
|
"mesh-watcher.watcher_ping",
|
|
"seat:mesh-controller.seats"
|
|
],
|
|
"own-secrets": {
|
|
"telegram-token": "${dir:state}/telegram-token"
|
|
},
|
|
"tools": [
|
|
"watcher_status",
|
|
"watcher_last_heard",
|
|
"watcher_test",
|
|
"watcher_ping"
|
|
],
|
|
"resources": [
|
|
{
|
|
"id": "state",
|
|
"type": "directory",
|
|
"mode": "0700",
|
|
"place": "."
|
|
},
|
|
{
|
|
"id": "settings",
|
|
"type": "file",
|
|
"path": "${dir:state}/settings.json",
|
|
"mode": "0600",
|
|
"merge": "json",
|
|
"content": "{\n \"telegram-chat-id\": \"\"\n}\n"
|
|
}
|
|
],
|
|
"build": {
|
|
"artifacts": [
|
|
{
|
|
"name": "tools",
|
|
"kind": "bundle",
|
|
"language": "go",
|
|
"system": "arch",
|
|
"from": "cmd/mesh-watcher",
|
|
"binary": "mesh-watcher",
|
|
"loads": [
|
|
"mesh-watcher"
|
|
],
|
|
"env": {
|
|
"MESH_WATCHER_SETTINGS": "${dir:state}/settings.json",
|
|
"MESH_WATCHER_TELEGRAM_TOKEN_FILE": "${dir:state}/telegram-token"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|