Skip to content

Commit cd07fbb

Browse files
committed
ci(web-ci): split Playwright e2e into functional (gating) + Lighthouse (informational)
The Lighthouse audit step uses Playwright Chromium with CDP-attached Lighthouse, which intermittently hits NO_FCP ("The page did not paint any content") in headless environments — reproducible on both Ubuntu CI and macOS local. This is an environmental quirk of the headless Chromium + CDP + Lighthouse stack, not a defect in the page. Source of truth for Lighthouse 100/100/100/100 is now: 1. PageSpeed Insights run against the live URL in web-deploy.yml 2. Manual `pnpm run test:lighthouse` against a local prod build CI still uploads Lighthouse reports as an artifact when the runs do produce data, so regressions are observable even when the gate is off.
1 parent 01acdd2 commit cd07fbb

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

.github/workflows/web-ci.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,22 @@ jobs:
6868
- name: Install Playwright Chromium
6969
run: pnpm exec playwright install --with-deps chromium
7070

71-
- name: E2E + Lighthouse audits
72-
run: pnpm run test:e2e
71+
- name: E2E (functional + responsive + SEO)
72+
run: pnpm exec playwright test --grep-invert "@lighthouse"
7373
env:
7474
CI: "true"
75+
NODE_OPTIONS: "--no-deprecation"
76+
77+
- name: Lighthouse audits (non-blocking)
78+
# Playwright-Chromium-CDP-Lighthouse hits NO_FCP intermittently in headless
79+
# environments (both Ubuntu CI and macOS local). Live URL scoring is
80+
# gated by PageSpeed Insights in web-deploy.yml. Reports still upload
81+
# for inspection.
82+
continue-on-error: true
83+
run: pnpm exec playwright test --grep "@lighthouse"
84+
env:
85+
CI: "true"
86+
NODE_OPTIONS: "--no-deprecation"
7587

7688
- name: Upload Lighthouse reports
7789
if: always()

0 commit comments

Comments
 (0)