From 1b87c3d672fcd748159e860521fc903d06c75ba0 Mon Sep 17 00:00:00 2001 From: Codex Agent Date: Mon, 8 Jun 2026 13:26:07 +0800 Subject: [PATCH] fix: pass env recipe into v02 artifact publish --- scripts/artifact-publish.mjs | 1 + scripts/g14-ci-plan.test.mjs | 1 + 2 files changed, 2 insertions(+) diff --git a/scripts/artifact-publish.mjs b/scripts/artifact-publish.mjs index a8b25b5b..803e7820 100644 --- a/scripts/artifact-publish.mjs +++ b/scripts/artifact-publish.mjs @@ -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, diff --git a/scripts/g14-ci-plan.test.mjs b/scripts/g14-ci-plan.test.mjs index 116f500f..2d696ff1 100644 --- a/scripts/g14-ci-plan.test.mjs +++ b/scripts/g14-ci-plan.test.mjs @@ -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");