fix(ci): align Windows Compose topology

This commit is contained in:
2026-08-25 17:14:42 +02:00
parent 6d0cb6d997
commit 8980c35198
3 changed files with 32 additions and 9 deletions
+28 -7
View File
@@ -216,6 +216,15 @@ services:
io.thothii.task13.run: "$runLabel"
labels:
io.thothii.task13.run: "$runLabel"
qdrant:
labels:
io.thothii.task13.run: "$runLabel"
embedding:
labels:
io.thothii.task13.run: "$runLabel"
embedding-model-init:
labels:
io.thothii.task13.run: "$runLabel"
networks:
thothii:
labels:
@@ -230,9 +239,21 @@ volumes:
workspace-registry:
labels:
io.thothii.task13.run: "$runLabel"
workspace-secrets:
labels:
io.thothii.task13.run: "$runLabel"
sessions:
labels:
io.thothii.task13.run: "$runLabel"
qdrant-data:
labels:
io.thothii.task13.run: "$runLabel"
embedding-models:
labels:
io.thothii.task13.run: "$runLabel"
auth-state:
labels:
io.thothii.task13.run: "$runLabel"
"@
$repoYaml = ConvertTo-YamlPath $spacedRepository
$envYaml = ConvertTo-YamlPath $envFile
@@ -254,20 +275,20 @@ overrides:
)
$render = Invoke-BoundedNative -FilePath "docker" -Arguments ($composeArguments + @("config", "--services")) -Label "render Windows Compose from spaced path"
$services = @($render.StdOut -split "`r?`n" | Where-Object { $_ } | Sort-Object)
if (($services -join ",") -ne "core,frontend") {
throw "rendered Windows stack must contain exactly core and frontend"
if (($services -join ",") -ne "core,embedding,embedding-model-init,frontend,qdrant") {
throw "rendered Windows stack must contain the canonical five services"
}
Invoke-BoundedNative -FilePath "docker" -Arguments ($composeArguments + @("config", "--quiet")) -Label "validate Windows Compose from spaced path" | Out-Null
if ($DockerStartup) {
Invoke-BoundedNative -FilePath "docker" -Arguments @("info") -Label "verify Windows Docker Desktop readiness" -TimeoutSeconds 60 | Out-Null
$startupAttempted = $true
Invoke-BoundedNative -FilePath "docker" -Arguments ($composeArguments + @("build", "--pull")) -Label "build two-service Windows stack" | Out-Null
Invoke-BoundedNative -FilePath "docker" -Arguments ($composeArguments + @("up", "--detach", "--wait", "--wait-timeout", "180")) -Label "start two-service Windows stack" -TimeoutSeconds 300 | Out-Null
Invoke-BoundedNative -FilePath "docker" -Arguments ($composeArguments + @("build", "--pull")) -Label "build canonical Windows stack" | Out-Null
Invoke-BoundedNative -FilePath "docker" -Arguments ($composeArguments + @("up", "--detach", "--wait", "--wait-timeout", "180")) -Label "start canonical Windows stack" -TimeoutSeconds 300 | Out-Null
$running = Invoke-BoundedNative -FilePath "docker" -Arguments ($composeArguments + @("ps", "--status", "running", "--services")) -Label "inspect running Windows services"
$runningServices = @($running.StdOut -split "`r?`n" | Where-Object { $_ } | Sort-Object)
if (($runningServices -join ",") -ne "core,frontend") {
throw "bounded Windows startup did not leave exactly core and frontend running"
if (($runningServices -join ",") -ne "core,embedding,frontend,qdrant") {
throw "bounded Windows startup did not leave the four long-running services ready"
}
Invoke-BoundedNative -FilePath $tht -Arguments @("--installation", $installation, "status") -Label "invoke installation-aware Windows tht in spaced path" | Out-Null
}
@@ -314,7 +335,7 @@ if (-not $cleanupSucceeded) {
throw "Windows cleanup proof failed; fixture path retained for recovery"
}
if ($DockerStartup) {
Write-Output "Windows spaced-path build, native tht, bounded two-service startup, and exact cleanup passed."
Write-Output "Windows spaced-path build, native tht, bounded canonical startup, and exact cleanup passed."
} else {
Write-Output "Windows spaced-path clone, LF-byte, Compose render, and native tht build/invocation contracts passed; Docker startup mode was not requested."
}