Bug 219016

Summary: BuildbotTriggerable should not process a completed build request from a completed test group.
Product: WebKit Reporter: dewei_zhu
Component: New BugsAssignee: dewei_zhu
Status: RESOLVED FIXED    
Severity: Normal CC: rniwa
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch rniwa: review+

Description dewei_zhu 2020-11-16 18:47:17 PST
BuildBotTriggerable should not process a completed build request from a completed test group.
Comment 1 dewei_zhu 2020-11-16 19:04:11 PST
Created attachment 414298 [details]
Patch
Comment 2 Ryosuke Niwa 2020-11-16 19:30:19 PST
Comment on attachment 414298 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=414298&action=review

> Websites/perf.webkit.org/ChangeLog:9
> +        BuildBotTriggerable._pullBuildbotOnAllSyncers assumes BuildRequest.all() retuns all build requests from triggerables.
> +        And it relies on BuildRequest.findById to filter out buildbot build entries and corresponding build requests from a

This explanation is rather misleading.
The issue here isn't really that _pullBuildbotOnAllSyncers assumes that but it's rather that
it relies on buildReqeustsByGroup to contain all build requests found by BuildRequest.findById.

> Websites/perf.webkit.org/tools/js/buildbot-triggerable.js:182
> +                    if (!info)
> +                        continue;

We should probably assert here that in this case, request's test group had finished running.
Comment 3 dewei_zhu 2020-11-16 20:33:50 PST
Landed in r269892.