-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
tests(smoke): check runner result is sensible before using #14343
Conversation
2f2259a
to
40da7b1
Compare
40da7b1
to
7decdca
Compare
I believe the intention was Is the problem that the non-CLI versions are returning something in the error cases instead? The CLI has this check basically built in because it loads the LHR and artifacts from disk, so will throw if they're not around: lighthouse/cli/test/smokehouse/lighthouse-runners/cli.js Lines 101 to 110 in bb2bed6
Can we do the same in bundle/devtools? We could loosen the types for |
Co-authored-by: Brendan Kenny <bckenny@gmail.com>
mkay |
Once #14320 landed I then saw another error further down the report assertion function. So let's fix the root cause: we shouldn't just trust that
lighthouseRunner
returns a valid LH.Result. At least for the CLI runner, it's possible an error occurred (ex: config resolution failed) resulting in no LHR at all (just an empty object being returned. or maybe it was undefined).