Track swarm deployment coverage in Idunn
This commit is contained in:
parent
4f191727d0
commit
8d110c3f4b
7 changed files with 178 additions and 0 deletions
2
scripts/health-idunn-swarm-deployment-coverage.cmd
Normal file
2
scripts/health-idunn-swarm-deployment-coverage.cmd
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
@echo off
|
||||
powershell.exe -NoProfile -ExecutionPolicy Bypass -File E:\Projects\Odin\scripts\health-idunn-swarm-deployment-coverage.ps1
|
||||
31
scripts/health-idunn-swarm-deployment-coverage.ps1
Normal file
31
scripts/health-idunn-swarm-deployment-coverage.ps1
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
$ErrorActionPreference = "Stop"
|
||||
|
||||
. (Join-Path $PSScriptRoot "idunn-deployment-targets.ps1")
|
||||
|
||||
$unknown = @($IdunnDeploymentTargets | Where-Object { $_.Status -notin @("enforced", "blocked", "external-owned", "not-runtime") })
|
||||
$enforcedWithoutDeploy = @($IdunnDeploymentTargets | Where-Object { $_.Status -eq "enforced" -and [string]::IsNullOrWhiteSpace($_.Deploy) })
|
||||
$enforcedWithoutHealth = @($IdunnDeploymentTargets | Where-Object { $_.Status -eq "enforced" -and [string]::IsNullOrWhiteSpace($_.Health) })
|
||||
$blockedWithoutReason = @($IdunnDeploymentTargets | Where-Object { $_.Status -in @("blocked", "external-owned") -and [string]::IsNullOrWhiteSpace($_.Reason) })
|
||||
|
||||
$issues = @()
|
||||
if ($unknown.Count) {
|
||||
$issues += "unknown status: $($unknown.Id -join ', ')"
|
||||
}
|
||||
if ($enforcedWithoutDeploy.Count) {
|
||||
$issues += "enforced target missing deploy command: $($enforcedWithoutDeploy.Id -join ', ')"
|
||||
}
|
||||
if ($enforcedWithoutHealth.Count) {
|
||||
$issues += "enforced target missing health command: $($enforcedWithoutHealth.Id -join ', ')"
|
||||
}
|
||||
if ($blockedWithoutReason.Count) {
|
||||
$issues += "blocked/external target missing reason: $($blockedWithoutReason.Id -join ', ')"
|
||||
}
|
||||
|
||||
if ($issues.Count) {
|
||||
throw "Idunn deployment target catalog is incoherent: $($issues -join '; ')"
|
||||
}
|
||||
|
||||
$enforced = @($IdunnDeploymentTargets | Where-Object { $_.Status -eq "enforced" })
|
||||
$blocked = @($IdunnDeploymentTargets | Where-Object { $_.Status -eq "blocked" })
|
||||
$external = @($IdunnDeploymentTargets | Where-Object { $_.Status -eq "external-owned" })
|
||||
Write-Host "Idunn deployment catalog coherent: $($IdunnDeploymentTargets.Count) targets, $($enforced.Count) enforced, $($blocked.Count) blocked, $($external.Count) external-owned."
|
||||
101
scripts/idunn-deployment-targets.ps1
Normal file
101
scripts/idunn-deployment-targets.ps1
Normal file
|
|
@ -0,0 +1,101 @@
|
|||
$repoRoot = Split-Path -Parent $PSScriptRoot
|
||||
$opsRoot = "E:\Projects\gamecult-ops"
|
||||
|
||||
$IdunnDeploymentTargets = @(
|
||||
[pscustomobject]@{
|
||||
Id = "nightwing-gjallar"
|
||||
Repo = "Gjallar"
|
||||
LocalPath = "E:\Projects\Gjallar"
|
||||
Host = "nightwing"
|
||||
Service = "gjallar.service"
|
||||
Status = "enforced"
|
||||
Health = "$repoRoot\scripts\health-nightwing-gjallar.cmd"
|
||||
Deploy = "$repoRoot\scripts\deploy-nightwing-gjallar.cmd"
|
||||
Restart = "$repoRoot\scripts\restart-nightwing-gjallar.cmd"
|
||||
Reason = "Nightwing framebuffer compositor has a committed artifact manifest and automatic Idunn deploy lane."
|
||||
},
|
||||
[pscustomobject]@{
|
||||
Id = "yggdrasil-bifrost"
|
||||
Repo = "Bifrost"
|
||||
LocalPath = "E:\Projects\Bifrost"
|
||||
Host = "yggdrasil"
|
||||
Service = "bifrost.service/bifrost-web"
|
||||
Status = "blocked"
|
||||
Health = "$opsRoot\scripts\check-bifrost-alpha.sh"
|
||||
Deploy = "$opsRoot\scripts\deploy-bifrost-container.ps1"
|
||||
Restart = $null
|
||||
Reason = "Deploy authority exists in gamecult-ops, but desired image digest/tag is not yet published as an Idunn deployment target record."
|
||||
},
|
||||
[pscustomobject]@{
|
||||
Id = "yggdrasil-streampixels"
|
||||
Repo = "StreamPixels"
|
||||
LocalPath = "E:\Projects\StreamPixels"
|
||||
Host = "yggdrasil"
|
||||
Service = "streampixels-service/streampixels-web"
|
||||
Status = "blocked"
|
||||
Health = "$opsRoot\scripts\check-streampixels-preview.sh"
|
||||
Deploy = "$opsRoot\scripts\deploy-streampixels-preview.sh"
|
||||
Restart = $null
|
||||
Reason = "Deploy script is remote-root/runbook shaped and needs a committed artifact manifest plus Idunn-safe wrapper before automatic execution."
|
||||
},
|
||||
[pscustomobject]@{
|
||||
Id = "yggdrasil-heimdall"
|
||||
Repo = "Heimdall"
|
||||
LocalPath = "E:\Projects\Heimdall"
|
||||
Host = "yggdrasil"
|
||||
Service = "heimdall.service"
|
||||
Status = "blocked"
|
||||
Health = "$opsRoot\scripts\check-heimdall.sh"
|
||||
Deploy = "$opsRoot\scripts\deploy-heimdall.sh"
|
||||
Restart = $null
|
||||
Reason = "Deploy script uses a workstation-built source tarball; Idunn needs a manifest-producing wrapper before automatic execution."
|
||||
},
|
||||
[pscustomobject]@{
|
||||
Id = "yggdrasil-repixelizer"
|
||||
Repo = "repixelizer"
|
||||
LocalPath = "E:\Projects\repixelizer"
|
||||
Host = "yggdrasil"
|
||||
Service = "repixelizer-gui.service"
|
||||
Status = "blocked"
|
||||
Health = "$opsRoot\scripts\check-repixelizer-gui.sh"
|
||||
Deploy = "$opsRoot\scripts\deploy-repixelizer-gui.sh"
|
||||
Restart = $null
|
||||
Reason = "Deploy script uses a committed source tarball and Python environment mutation; Idunn needs an artifact manifest wrapper before automatic execution."
|
||||
},
|
||||
[pscustomobject]@{
|
||||
Id = "github-pages-gamecult-site"
|
||||
Repo = "gamecult-site"
|
||||
LocalPath = "E:\Projects\gamecult-site"
|
||||
Host = "github-pages"
|
||||
Service = "gamecult.org/www"
|
||||
Status = "external-owned"
|
||||
Health = $null
|
||||
Deploy = $null
|
||||
Restart = $null
|
||||
Reason = "GitHub Actions/Pages owns deployment freshness; Idunn should ingest workflow/deployment status before claiming automatic deploy authority."
|
||||
},
|
||||
[pscustomobject]@{
|
||||
Id = "eve-ipad-evecanvas"
|
||||
Repo = "Eve"
|
||||
LocalPath = "E:\Projects\Eve"
|
||||
Host = "eve-ipad"
|
||||
Service = "org.gamecult.evecanvas"
|
||||
Status = "blocked"
|
||||
Health = $null
|
||||
Deploy = $null
|
||||
Restart = $null
|
||||
Reason = "Jailbroken iPad native app deployment exists only as an operator runbook; no safe noninteractive Idunn deploy command yet."
|
||||
},
|
||||
[pscustomobject]@{
|
||||
Id = "periwinkle-eve-android"
|
||||
Repo = "Eve"
|
||||
LocalPath = "E:\Projects\Eve"
|
||||
Host = "periwinkle"
|
||||
Service = "Eve Android proof APK"
|
||||
Status = "blocked"
|
||||
Health = $null
|
||||
Deploy = $null
|
||||
Restart = $null
|
||||
Reason = "Android USB install requires on-device approval; Idunn must not claim automatic deploy authority until that boundary is solved."
|
||||
}
|
||||
)
|
||||
8
scripts/show-idunn-deployment-targets.ps1
Normal file
8
scripts/show-idunn-deployment-targets.ps1
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
$ErrorActionPreference = "Stop"
|
||||
|
||||
. (Join-Path $PSScriptRoot "idunn-deployment-targets.ps1")
|
||||
|
||||
$IdunnDeploymentTargets |
|
||||
Sort-Object Status, Id |
|
||||
Select-Object Id, Repo, Host, Service, Status, Reason |
|
||||
Format-Table -AutoSize -Wrap
|
||||
|
|
@ -62,6 +62,13 @@ $watchdogs = @(
|
|||
Health = "$repoRoot\scripts\health-muninn.cmd"
|
||||
Restart = "$repoRoot\scripts\restart-muninn.cmd"
|
||||
},
|
||||
[pscustomobject]@{
|
||||
Id = "idunn-swarm-deployment-coverage"
|
||||
Name = "Idunn swarm deployment coverage"
|
||||
Verse = "starfire.local"
|
||||
Health = "$repoRoot\scripts\health-idunn-swarm-deployment-coverage.cmd"
|
||||
Restart = $null
|
||||
},
|
||||
[pscustomobject]@{
|
||||
Id = "nightwing-gjallar"
|
||||
Name = "Nightwing Gjallar framebuffer compositor"
|
||||
|
|
|
|||
Loading…
Reference in a new issue