diff --git a/apps/opsproof/README.md b/apps/opsproof/README.md index 532d3b9..e926312 100644 --- a/apps/opsproof/README.md +++ b/apps/opsproof/README.md @@ -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 diff --git a/lib/jeannie/pipeline.sh b/lib/jeannie/pipeline.sh index a574326..0de0359 100644 --- a/lib/jeannie/pipeline.sh +++ b/lib/jeannie/pipeline.sh @@ -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 ./... diff --git a/tests/jeannie/test_privacy_services_pipeline.py b/tests/jeannie/test_privacy_services_pipeline.py index 9f7b689..3c64b71 100644 --- a/tests/jeannie/test_privacy_services_pipeline.py +++ b/tests/jeannie/test_privacy_services_pipeline.py @@ -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)