fix(deploy): publish device plane loopback health

This commit is contained in:
Codex
2026-07-26 00:09:55 +03:00
parent aca47c6143
commit 3c538ad98c
10 changed files with 1565 additions and 7 deletions
@@ -18,6 +18,10 @@ import { fileURLToPath } from "node:url";
const scriptDir = dirname(fileURLToPath(import.meta.url));
const platformRoot = resolve(scriptDir, "../..");
const sourceRoot = resolve(platformRoot, "device-plane");
const failedFoundationCompose = resolve(
scriptDir,
"fixtures/device-plane-foundation-internal-only-v1.yml",
);
const artifactDir = resolve(
process.env.NODEDC_DEPLOY_ARTIFACT_DIR
|| resolve(scriptDir, "../deploy-artifacts"),
@@ -54,8 +58,14 @@ await assertSourceBoundary();
try {
await mkdir(payload, { recursive: true });
for (const sourceRelative of files) {
const source = (
patchId === "device-plane-foundation-20260725-001"
&& sourceRelative === "docker-compose.device-plane.yml"
)
? failedFoundationCompose
: resolve(sourceRoot, sourceRelative);
await copySafe(
resolve(sourceRoot, sourceRelative),
source,
join(payload, sourceRelative),
);
}
@@ -109,8 +119,11 @@ try {
}
async function assertSourceBoundary() {
const composeSource = patchId === "device-plane-foundation-20260725-001"
? failedFoundationCompose
: resolve(sourceRoot, "docker-compose.device-plane.yml");
const compose = await readFile(
resolve(sourceRoot, "docker-compose.device-plane.yml"),
composeSource,
"utf8",
);
for (const fragment of [