DescriptionReal world impact script: scalable manual rendering QA
This patch is almost entirely by John Mellor <johnme@google.com> [1]
Layout Tests can tell you whether rendering has changed, but it's often
hard to determine whether a subtle/controversial change is beneficial
without additional context.
This script aims to provide that context. It takes screenshots of 1000s
of sites, both before and after applying the patch being evaluated,
then diffs each pair of screenshots and sorts them by greatest
difference in rendering, in an HTML report. A human reviewer can then
manually skim through this to review the most impacted sites, rather
than having to browse random sites to see what their patch changed.
This is a script I wrote at the start of the year (but hadn't got round
to uploading a patch, as it used to depend on proprietary binaries;
I fixed that dependency by writing a replacement: crrev.com/67973005).
The script isn't yet smart enough to build content_shell itself, so you
run it in several steps:
1. Build content_shell in out/Release, without the controversial patch.
2. Run: real_world_impact.py before [num sites to test (default 1000)]
3. Apply the controversial patch, and rebuild content_shell in out/Release.
4. Run: real_world_impact.py after [num sites to test (default 1000)]
5. Run: real_world_impact.py compare [num sites to test (default 1000)]
[1] Original issue: https://codereview.chromium.org/112423006
I've made a few changes to the original patch:
1. Updated to support OSX and Windows content shells
2. Fixed the multiprocess fetch code so you can use ctrl+c to stop it
3. Added a timeout, retry limit, and no-check-certificate to wget so
sites download more reliably.
4. Updated the nsfw urls.
5. Added proper argument parsing.
6. Added optional "additional_flags" argument for doing before/after
comparisons with a flag.
7. Updated help text and example usage.
BUG=135823
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=259024
Patch Set 1 #Patch Set 2 : Add wget retry limit (--tries) #
Total comments: 2
Patch Set 3 : Cleanup, add command line processing, add additional content_shell option, update help text #Patch Set 4 : Update download/before/after/compare help text #Patch Set 5 : Make num_sites properly optional #
Total comments: 1
Messages
Total messages: 10 (0 generated)
|