Normalize OpsProof UI during build
Homelab Main / validate (push) Failing after 2m1s Details
Homelab Main / running-update (push) Has been skipped Details
Homelab Main / debian-ops (push) Has been skipped Details

This commit is contained in:
juvenal.diaz 2026-12-04 15:04:10 -06:00
parent 2583274377
commit f88f92293c
3 changed files with 8 additions and 3 deletions

View File

@ -35,9 +35,10 @@ The Debian installation is owned by the Jeannie pipeline:
```
The command downloads a checksum-pinned Go 1.27 toolchain into the OpsProof
data directory, checks out an exact Laravel Go starter commit, runs its frontend
checks and build, runs its Go tests, builds the binary, installs a hardened
systemd unit, and verifies `/up`. It does not replace Debian's system Go.
data directory, checks out an exact Laravel Go starter commit, normalizes the UI
overlay with that starter's pinned formatter, runs its frontend checks and
build, runs its Go tests, builds the binary, installs a hardened systemd unit,
and verifies `/up`. It does not replace Debian's system Go.
## Security boundary

View File

@ -5755,6 +5755,9 @@ deploy_opsproof() {
(
cd "${build_dir}"
npm ci
# The Laravel Go starter owns the formatter version. Normalize the
# tracked overlay inside the disposable build tree before enforcing it.
npm run check:fix
npm run check
npm run build
PATH="${toolchain_dir}/bin:${PATH}" GOTOOLCHAIN=local go test ./...

View File

@ -55,6 +55,7 @@ class OpsProofPipelineTests(unittest.TestCase):
self.assertIn('go_version="${LAB_OPSPROOF_GO_VERSION:-1.27.4}"', pipeline)
self.assertIn('go${go_version}.linux-amd64.tar.gz', pipeline)
self.assertIn("6dd8bd22b9d335e55b190aa16f3271e73c97cd25", pipeline)
self.assertLess(pipeline.index("npm run check:fix"), pipeline.index("npm run check\n"))
self.assertIn("npm run check", pipeline)
self.assertIn('cp -a "${overlay_dir}/." "${build_dir}/"', pipeline)
self.assertIn("GOTOOLCHAIN=local go test ./...", pipeline)