fix: pass env recipe into v02 artifact publish

This commit is contained in:
Codex Agent
2026-06-08 13:26:07 +08:00
parent a5f38a95ee
commit 1b87c3d672
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -1871,6 +1871,7 @@ function plannerFieldsFor(servicePlan) {
componentInputHash: servicePlan.componentInputHash ?? null,
runtimeMode: servicePlan.runtimeMode ?? "service-image",
envReuse: servicePlan.envReuse === true,
envReuseRecipe: servicePlan.envReuseRecipe ?? null,
envChanged: servicePlan.envChanged ?? null,
codeChanged: servicePlan.codeChanged ?? null,
environmentInputHash: servicePlan.environmentInputHash ?? null,
+1
View File
@@ -136,6 +136,7 @@ test("artifact reuse paths preserve catalog provenance instead of current planne
const artifactPublish = await readFile("scripts/artifact-publish.mjs", "utf8");
assert.match(artifactPublish, /const catalogProvenance = serviceImageCatalogProvenance\(catalogService\);/u);
assert.match(artifactPublish, /\.\.\.catalogProvenance,[\s\S]{0,80}buildBackend: "reused-catalog"/u);
assert.match(artifactPublish, /envReuseRecipe: servicePlan\.envReuseRecipe \?\? null/u);
assert.match(artifactPublish, /componentInputHash: serviceResultValue\(env, service\.serviceId, "COMPONENT_INPUT_HASH"\) \?\? \(reusedServiceImage \? null : service\.componentInputHash \?\? null\)/u);
const gitopsRender = await readFile("scripts/g14-gitops-render.mjs", "utf8");