From 3ab69d7b5db697d3e0b3a4dc68903a882c8ebb07 Mon Sep 17 00:00:00 2001 From: unimatrixgit <95320811+unimatrixgit@users.noreply.github.com> Date: Sat, 28 Nov 2026 19:55:37 +0100 Subject: [PATCH 1/2] Include canonical recipe inputs in production website staging --- website/ops/dunerealms-build-release | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/website/ops/dunerealms-build-release b/website/ops/dunerealms-build-release index 831111e3..3f312265 100644 --- a/website/ops/dunerealms-build-release +++ b/website/ops/dunerealms-build-release @@ -15,7 +15,14 @@ DEST="$BASE/artifacts/$SHA" TMP="$BASE/artifacts/.${SHA}.tmp.$$" trap 'rm -rf "$TMP"' EXIT mkdir -p "$TMP" -git archive "$SHA" website tools | tar -x -C "$TMP" +# The public recipe book derives its data from the reviewed game recipes. +git archive "$SHA" website tools \ + DuneRealmsGUI/executablecrafting/recipes \ + DuneRealmsGUI/executableitems/arrakis \ + DuneRealmsGUI/ecology/food-icons \ + JarvisConnector/src/main/resources/survival-food-recipes.json \ + DuneTerrain/src/main/resources/starter-repair-parts.json | tar -x -C "$TMP" +export GITHUB_SHA="$SHA" cd "$TMP/website" corepack pnpm install --frozen-lockfile corepack pnpm build -- 2.53.0 From 78482d00827d176d588ee4f406268779f902b06f Mon Sep 17 00:00:00 2001 From: unimatrixgit <95320811+unimatrixgit@users.noreply.github.com> Date: Sat, 28 Nov 2026 19:56:40 +0100 Subject: [PATCH 2/2] Guard the production staging recipe inputs --- .forgejo/tests/web-deploy.test.mjs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.forgejo/tests/web-deploy.test.mjs b/.forgejo/tests/web-deploy.test.mjs index 8931e5f0..7ccd8e8f 100644 --- a/.forgejo/tests/web-deploy.test.mjs +++ b/.forgejo/tests/web-deploy.test.mjs @@ -44,3 +44,17 @@ test('publication comparison, artifact upload and deployment require canonical m if (name !== 'Trigger deployment after successful CI') assert.doesNotMatch(body, /DUNEREALMS_DEPLOY_KEY|ssh .*dunedeploy@/); } }); + +test('the production staging archive contains all recipe publication inputs', () => { + const builder = readFileSync(new URL('../../website/ops/dunerealms-build-release', import.meta.url), 'utf8'); + const inputs = builder.replace(/\\\r?\n/g, ' ').match(/git archive "\$SHA" ([^|]+)/)?.[1].trim().split(/\s+/); + assert.ok(inputs, 'Expected an explicit production archive scope'); + for (const recipeInput of [ + 'DuneRealmsGUI/executablecrafting/recipes', + 'DuneRealmsGUI/executableitems/arrakis', + 'DuneRealmsGUI/ecology/food-icons', + 'JarvisConnector/src/main/resources/survival-food-recipes.json', + 'DuneTerrain/src/main/resources/starter-repair-parts.json' + ]) assert.ok(inputs.includes(recipeInput), recipeInput); + assert.match(builder, /export GITHUB_SHA="\$SHA"/); +}); -- 2.53.0