feat(pipeline): report deployed tool versions from the tools themselves
"What is running where" was answerable only by asking someone. Each tool now reports its own version on startup into a ToolVersion registry, shown on Pipeline → Machines. The worker's version moves out of config.json and into the assembly: a hand-maintained string on each machine is exactly the thing that goes stale, and a machine reporting a version it is not running is worse than no version at all. publish.ps1 stamps the git SHA via SourceRevisionId, so a deployed exe traces back to a commit (1.1.0+feb1c7b). The panel gains PANEL_VERSION, shown in its title and every diagnostics report, and pings on load. Staleness is derived rather than declared: the newest version seen for a tool is the benchmark, so updating one machine is what flags the rest. There is no expected-version list to keep in sync — which would have been one more thing to forget. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -988,6 +988,26 @@ model WorkerHeartbeat {
|
||||
@@map("worker_heartbeats")
|
||||
}
|
||||
|
||||
/// What version of each studio tool is running where. Written by the tool
|
||||
/// itself on startup, so it reflects what is *deployed* rather than what
|
||||
/// someone remembered to write down. One row per (tool, machine).
|
||||
model ToolVersion {
|
||||
id String @id @default(cuid())
|
||||
tool String // "AE_PANEL" | "RENDER_WORKER"
|
||||
machineName String
|
||||
version String // "2.1.0"
|
||||
buildRef String? // git sha / build stamp, when the tool can report one
|
||||
hostUser String? // artist email, or the worker's service account
|
||||
hostApp String? // "After Effects 24.6" / OS build
|
||||
details Json?
|
||||
firstSeenAt DateTime @default(now())
|
||||
lastSeenAt DateTime @default(now())
|
||||
|
||||
@@unique([tool, machineName])
|
||||
@@index([tool])
|
||||
@@map("tool_versions")
|
||||
}
|
||||
|
||||
/// One row per check per validation run, so the UI shows exactly what failed
|
||||
/// and history survives retries (§5.4).
|
||||
model ValidationResult {
|
||||
|
||||
Reference in New Issue
Block a user