-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
DevTools webtests improvements #11414
Comments
cc @connorjclark I'm sure he has more ideas too :) |
heh, I was going to suggest the same after seeing #11411 passing without the upstream changes landing yet :) |
Yeah, we should do all these things.
We have these: https://github.com/GoogleChrome/lighthouse/blob/master/third-party/chromium-webtests/webtests/http/tests/devtools/lighthouse/lighthouse-view-trace-run.js#L34
Right, I'd expect them to fail now, because we do have rendering tests. I think devtools doesn't run their layout tests in their repo yet. @TimvdLippe can you confirm if you run the tests in I just ran
Which I assume is also related to these changes. (EDIT: yea, here's a pr: #11418 ) |
Ah thanks yeah I forgot about those. That caching seems to explain why they didn't fail then haha. I wish we could also cache on some hash of devtools files to avoid going an entire week without learning about it (are we sure the cached assets fall out after a week no matter what or just a week after they're not used? their policy language makes me think these might last forever given our frequency of runs), but I guess that's a circular problem with the cache to begin with sooooo, no go. Darn. |
wait, but why didn't #11411 break the renderer since it gets rid of |
I don't know. At the time I said that I hadn't looked at #11417 yet 😆 I had it in my head that we wouldn't have rebuilt for devtools at all if the hash key wasn't changed (like how the lantern tests work), but now I'm seeing it should've been run with a mismatched old DevTools, so I have the same question as you. |
Already on it #11417
darn! totally right. This is quite important–we should write to disk a file that only changes every weeks (with some time maths or sumthin). |
I meant a hash of DevTools changes in Chromium like a hypothetical something that would have invalidated our cache when https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2398829/10/front_end/third_party/lighthouse/report-assets/report-generator.js landed. But figuring that out is the same as doing the work that we're caching, so it's moot haha |
@connorjclark The webtests in the repository are running. For example, for https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2398829the CQ run was https://ci.chromium.org/p/devtools-frontend/builders/try/devtools_frontend_linux_blink_light_rel/6883? and step 31 ran the tests. The results are at https://test-results.appspot.com/data/layout_results/devtools_frontend_linux_blink_light_rel/6883/webkit_layout_from_devtools%20%28with%20patch%29/layout-test-results/results.html which includes all LightHouse webtests. Before I fixed the LightHouse integration with the global hack, the tests were also blocking submission: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2398829/9 is the patchset and https://ci.chromium.org/p/devtools-frontend/builders/try/devtools_frontend_linux_blink_light_rel/6838? the CQ run |
wdyt about dropping the need for Sucks to have to install it so some scripts can basically I don't see any unusual things going on, seems like it would be a simple replacement? |
Closing because we're gonna replace webtests with e2e. |
Summary
Now that we've started to bring the DevTools testing into core we can start to make them even stronger :)
Miscellaneous thoughts:
package.json
script that would build and open the latest Lighthouse in DevTools for manual inspection.explanation
in snapshots when audit failsgit pull
devtools checkout in.tmp
tests: refresh devtools checkout for webtests #11717 lighthouse-export-run.js silent failure #11678The text was updated successfully, but these errors were encountered: