From 33ab118bcc96f2487f7a3a664a25afa7ef7e7b15 Mon Sep 17 00:00:00 2001 From: jochen Date: Tue, 6 Oct 2026 22:12:13 +0200 Subject: [PATCH] Check the photo application before a change merges into what the mesh builds (hq ADR 0237) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The repository's layer of the mesh's merge check (mesh/repo-check): the three images' own builds — server, client and admin client installed from their lock files and built — before the merge instead of after it. --- merge-check.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 merge-check.sh diff --git a/merge-check.sh b/merge-check.sh new file mode 100644 index 0000000..ff9a181 --- /dev/null +++ b/merge-check.sh @@ -0,0 +1,22 @@ +#!/bin/sh +# mesh-check-toolchain: typescript +# +# The photo application's own check (novox/hq ADR 0237): the second layer of a pull request's merge check, +# `mesh/repo-check`, run by the build seat in the mesh's TypeScript toolchain — whose Node is the release +# this module's images are built on (module.json `build.on`, NODE_BASE). The gate — the manifest through +# the controller the mesh runs, every machine composed with it — is the build seat's first layer +# (`mesh/merge-gate`), run because the mesh's module graph builds photos from this branch. +# +# What the three images' builds do, done before the merge rather than after it: the server, the client and +# the admin client each installed from its lock file and built, and the client's file server parsed. +# +# **Said, never passed silently**: nothing is started here — the server wants its object and document +# stores — and the application has no tests of its own. +set -eu + +for part in server client admin-client; do + echo "--- $part: installed from its lock file and built" + (cd "$part" && npm ci --no-audit --no-fund --loglevel=error && CI=false npm run build) +done +node --check client-server/serve.mjs +echo "NOT RUN HERE: the server (it wants its object and document stores); the application has no tests" -- 2.54.0