-
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
add method to update test traces/artifacts with modern Chrome #14525
Comments
I have a long term vision for having tooling like this in the performance-stories repo and being able to run |
somewhat related #13886 |
Also lets use git LFS for these traces. And not use minify-trace against these fixtures. |
We discussed the benefits of re-generating these traces at runtime, instead of offline-then-checked in; which sounds useful, though I'd like to control that behavior with a flag (enabled in CI) and continue checking in actual files to use locally (so that things are reproducible). We can consider this more later but... for now just writing a script to update these traces is good. |
|
Trace fixtures sorted by author date:
Command: git ls-tree -r --name-only HEAD -z core/test/fixtures/traces/ | TZ=UTC xargs -0n1 -I_ sh -c 'git --no-pager log --follow --date=iso-local --format="%ad _" -- _ | tail -1' | sort No longer used:
|
Humble nudge towards if any of these make sense in https://github.com/ChromeDevTools/performance-stories |
@jackfranklin we've generally settled on being fine with using external URLs for generating some of these (for now, at least), so performance-stories seems like a nice middle ground...external but much more controllable than real sites. Also designed by perf experts to replicate specific scenarios :)
|
two TODOs for this:
lighthouse/core/lib/tracehouse/trace-processor.js
Lines 88 to 89 in 1b843de
Some of the test traces/devtoolsLogs are old enough now that they're interfering with code we write by forcing it to handle cases that haven't been relevant for years.
Main issues with easy trace updates:
To avoid getting back into this situation in a few years, we discussed creating test pages and a method to update test traces. Similar to
yarn update:sample-artifacts
this will likely still be noisy and fiddly, but it should be much easier to update than trying to parse what was special about a trace from just the name "jumpy-cls-m90.json" and stepping through blame.There are a lot of test traces, so we can start gradually, e.g. the first TODO above mentions including fallback code for pre-m67 test traces, which is just a handful of them.
The test pages could live in the Lighthouse repo (they could be the smoke tests, even), but we should consider hosting them in https://github.com/ChromeDevTools/performance-stories and sharing them with DevTools perf panel testing.
The text was updated successfully, but these errors were encountered: