Bug 181786 - Don't fetch more than two builds to check duplicity of builds in ReportProcessor
Summary: Don't fetch more than two builds to check duplicity of builds in ReportProcessor
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Perf Dashboard (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Ryosuke Niwa
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-01-17 22:57 PST by Ryosuke Niwa
Modified: 2018-01-18 15:02 PST (History)
5 users (show)

See Also:


Attachments
Fixes the bug (1.74 KB, patch)
2018-01-17 23:00 PST, Ryosuke Niwa
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ryosuke Niwa 2018-01-17 22:57:10 PST
Right now, ReportProcessor::resolve_build_id fetches all builds that match the builder number and time.
This can result in a long delay & a high memory usage.
Comment 1 Ryosuke Niwa 2018-01-17 23:00:26 PST
Created attachment 331600 [details]
Fixes the bug
Comment 2 Wenson Hsieh 2018-01-18 14:55:29 PST
Comment on attachment 331600 [details]
Fixes the bug

rs=me.

I'm a bit curious why the maximum limit of 2 builds is hard-coded. Is this hardware-dependent, and "2" is the most reasonable cap for our machines we're using to run the perf dashboard? It seems like maybe it should be configurable, but I'm not familiar with this code at all :P
Comment 3 Ryosuke Niwa 2018-01-18 15:01:47 PST
Comment on attachment 331600 [details]
Fixes the bug

Clearing flags on attachment: 331600

Committed r227166: <https://trac.webkit.org/changeset/227166>
Comment 4 Ryosuke Niwa 2018-01-18 15:01:49 PST
All reviewed patches have been landed.  Closing bug.
Comment 5 Ryosuke Niwa 2018-01-18 15:01:54 PST
(In reply to Wenson Hsieh from comment #2)
> Comment on attachment 331600 [details]
> Fixes the bug
> 
> rs=me.
> 
> I'm a bit curious why the maximum limit of 2 builds is hard-coded. Is this
> hardware-dependent, and "2" is the most reasonable cap for our machines
> we're using to run the perf dashboard? It seems like maybe it should be
> configurable, but I'm not familiar with this code at all :P

It's two because we're trying to check that it's unique. When there are more than two entries, we know there is at least one duplicate. We don't need to fetch all the duplicates to know that there are some duplicate.
Comment 6 Radar WebKit Bug Importer 2018-01-18 15:02:50 PST
<rdar://problem/36635350>