[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

misc(build): create error-y LHR for the deploy #9283

Merged
merged 11 commits into from
Jun 29, 2019
Prev Previous commit
Next Next commit
drop other cast
  • Loading branch information
paulirish committed Jun 27, 2019
commit aa1b39bc2a4ff619cca22fab62c7b818f97e3527
4 changes: 3 additions & 1 deletion lighthouse-core/scripts/build-report-for-autodeployment.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ async function generateErrorLHR() {
mkdirp(TMP);
fs.writeFileSync(`${TMP}/artifacts.json`, JSON.stringify(artifacts), 'utf-8');
const errorRunnerResult = await lighthouse(url, {auditMode: TMP});
const errorLhr = /** @type {LH.RunnerResult} */ (errorRunnerResult).lhr;

if (!errorRunnerResult) throw new Error('Failed to run lighthouse on empty artifacts');
const errorLhr = errorRunnerResult.lhr;

// Add audit warnings to font-display
errorLhr.audits['font-display'].warnings = [
Expand Down