Skip to content

fix(reports): stop reports crashing or hanging when Chromium closes - #48

Merged
HarshMN2345 merged 2 commits into
mainfrom
fix-lighthouse-crash-on-chromium-close
Dec 1, 2026
Merged

HarshMN2345 merged 2 commits into
mainfrom
fix-lighthouse-crash-on-chromium-close

fix: fail a report when Chromium closes or the audit stalls

37e14e1
Select commit
Loading
Failed to load commit list.
Appwrite / Hansi succeeded Dec 1, 2026 in 30s

Tier A: Mergeable after minor fixes

The previously reported process-level rejection regression-test gap remains open.

The reports handler now races Lighthouse against browser-context closure and a 120-second audit deadline, then cleans up the timer and context. The server also logs unhandled promise rejections so Lighthouse event-listener failures do not take down the process.