fix: bootstrap new services in artifact catalogs

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
root
2026-07-16 21:14:04 +02:00
parent 66afd74c06
commit 8ea32b6d36
3 changed files with 46 additions and 6 deletions
+24 -1
View File
@@ -333,7 +333,7 @@ test("v03 refresh accepts runtime lane config and env-reuse image tags", async (
const deployPath = path.join(tempDir, "deploy.yaml");
const catalogPath = path.join(tempDir, "artifact-catalog.v03.json");
const reportPath = path.join(tempDir, "v03-artifacts.json");
const serviceIds = V02_SERVICE_IDS;
const serviceIds = [...V02_SERVICE_IDS, "hwlab-tasktree-api", "hwlab-tasktree-worker"];
await writeStructuredFile(tempDir, deployPath, {
environment: "dev",
namespace: "hwlab-dev",
@@ -354,6 +354,29 @@ test("v03 refresh accepts runtime lane config and env-reuse image tags", async (
},
services: SERVICE_IDS.map((serviceId) => ({ serviceId }))
});
await writeFile(catalogPath, `${JSON.stringify({
catalogVersion: "v1",
kind: "hwlab-artifact-catalog",
environment: "v03",
profile: "v03",
namespace: "hwlab-v03",
endpoint: "https://hwlab-v03.74-48-78-17.nip.io",
commitId,
artifactState: "published",
publish: { ciPublished: true, registryVerified: true, provenance: "previous-run" },
allowedProfiles: ["v03"],
forbiddenProfiles: ["dev", "prod"],
services: V02_SERVICE_IDS.map((serviceId, index) => ({
serviceId,
commitId,
sourceCommitId: commitId,
image: `127.0.0.1:5000/hwlab/${serviceId}:${commitId}`,
imageTag: commitId,
digest: digestFor(index),
profile: "v03",
namespace: "hwlab-v03"
}))
}, null, 2)}\n`);
await writeFile(reportPath, `${JSON.stringify({
reportVersion: "v1",
taskId: "v03-artifact-publish",