Keep website policy inputs in the staged build archive

This commit is contained in:
unimatrixgit 2026-11-29 02:42:59 +01:00
commit ae75883918
4 changed files with 22 additions and 1 deletions

View file

@ -213,3 +213,12 @@ was corrected to accept the two real committed Bash shebangs; hashes and all
other checks stayed unchanged. The subsequent bounded installation succeeded.
Main-only commit verification remains enabled. Live website publication and
post-deployment item/header checks remain separate steps.
A subsequent staging-input audit found that the full website suite checks
`tools/README.md` and `.forgejo/workflows` as repository boundaries. The builder
archive must retain these web-owned policy inputs as well as `website`; otherwise
the same passing CI suite would fail in staging. This correction and its
regression check are committed for the next CI-built operations package.
The first installed builder hash above is superseded only after that package
passes and its new installed hash is recorded. No website release was attempted
through the incomplete staging archive.

View file

@ -9,6 +9,10 @@ the approved commit: a divergent worktree HEAD must not be reset or copied live.
Both scripts compare the requested commit with the freshly fetched canonical
main before queueing or building it.
The staging archive includes `website`, the documentation-only `tools` directory
and the web-only `.forgejo` checks/workflows, so the same repository-policy tests
run in CI and staging. No plugin source is included.
The website build packages these two scripts in `dist/deployment`, with a
manifest recording repository, source commit, byte sizes and SHA256 hashes.
CI uploads the tested package as `DuneRealms-Website-Operations`. Any necessary

View file

@ -16,7 +16,7 @@ DEST="$BASE/artifacts/$SHA"
TMP="$BASE/artifacts/.${SHA}.tmp.$$"
trap 'rm -rf "$TMP"' EXIT
mkdir -p "$TMP"
git archive "$SHA" website | tar -x -C "$TMP"
git archive "$SHA" website tools .forgejo | tar -x -C "$TMP"
cd "$TMP/website"
corepack pnpm install --frozen-lockfile
corepack pnpm build

View file

@ -28,3 +28,11 @@ test('website trigger and builder fetch only canonical web main even when checko
assert.match(source,/rev-parse FETCH_HEAD/);
}
});
test('staging archive retains the repository-policy inputs used by the full website suite',()=>{
const source=readFileSync(new URL('../ops/dunerealms-build-release',import.meta.url),'utf8');
const archived=source.match(/^git archive "\$SHA" (.+) \| tar -x -C "\$TMP"\r?$/m)?.[1].trim().split(/\s+/);
assert.deepEqual(archived,['website','tools','.forgejo']);
// web-repository-scope.test.mjs checks tools/README.md and the two web workflows.
assert.deepEqual(readFileSync(new URL('../../tools/README.md',import.meta.url),'utf8').length>0,true);
});