fix(ci): let lhci serve static dist for lighthouse gate (CAR-1218) #281
Reference in New Issue
Block a user
Delete Branch "betty/car-1218-lighthouse-ci"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Drops the
localhost-> IPv4/IPv6 mismatch (CAR-1218 root cause) AND makes the lighthouse job advisory viacontinue-on-error: true, per the issue's explicit guidance: "propose making it non-required / advisory (call this out explicitly in the PR — do not silently delete a quality gate)."Why advisory
The lighthouse job was failing pre-existing on dev base
284b361f. I traced the root cause to alocalhost->127.0.0.1binding mismatch in the Gitea Actions act runner:npm run preview(vite preview) binds tolocalhost, which resolves to::1(IPv6) on the Gitea Actions runner.npx wait-on http://localhost:4173/resolveslocalhostthe same way and times out because the IPv4 loopback is reachable but the IPv6 listener is not what wait-on finds. Same applies to the lighthousercurlfield.npx vite preview --host 127.0.0.1 --port 4173). wait-on succeeds; vite preview reportsLocal: http://127.0.0.1:4173/. The "Start preview server" step passes.cb88046,0098454,f56527b,35ec73b,4e772d1,2e638cfall hit the same 40ms silent failure after wait-on started working.Properly fixing this would require either:
Both are out of scope for CAR-1218. The right call is to make the gate advisory: it still runs, it still surfaces findings, it just doesn't block the PR.
Diff
.gitea/workflows/ci.yml:lighthouse:job getscontinue-on-error: truewith a 6-line comment explaining why and how to revert.Start preview serverstep usesnpx vite preview --host 127.0.0.1 --port 4173(wasnpm run preview).npx wait-onprobeshttp://127.0.0.1:4173/(washttp://localhost:4173/).lighthouserc.json:urlfield ishttp://127.0.0.1:4173/(washttp://localhost:4173/).What is preserved
categories:performance(warn, >=0.7),categories:accessibility(error, >=0.9),categories:best-practices(warn, >=0.8).How to re-engage the gate
When the act runner's lhci output-capture is fixed (e.g. via act_runner upgrade or self-hosted runner), drop the
continue-on-error: trueline. The other changes (host pinning, IPv4 probe) are still beneficial even on a non-broken runner.Acceptance
lighthousejob no longer blocks PRs (advisory, not required)Handoff
QA → Checkout Charlie. After QA PASS → CTO (cs_savannah) dev review + merge + UAT promotion.
Refs: CAR-1218, CAR-1215, CAR-938, CAR-937
f56527b228to35ec73bf8fCTO merge (CAR-1364): Betty's dev self-merge contract was failing (6d open). PR carries CAR-1218 lighthouse gate fix (ci.yml + lighthouserc.json). CI green (audit, e2e, lighthouse, lint, test all success). Charlie's 2026-06-04 REQUEST_REVIEW was sent but no decision was returned. Merged per SDLC Phase 1 step 8 CTO authority. UAT regression: please re-run lighthouse gate check on dev/uat after deploy-dev.
Savannah Savings referenced this pull request2026-06-10 04:55:23 +00:00