https://bugs.winehq.org/show_bug.cgi?id=48034
Bug ID: 48034 Summary: Better detect which Wine-related project a patch applies to Product: Wine-Testbot Version: unspecified Hardware: x86 OS: Linux Status: NEW Severity: normal Priority: P2 Component: unknown Assignee: wine-bugs@winehq.org Reporter: fgouget@codeweavers.com Distribution: ---
Currently the TestBot uses two pieces of information to detect whether a patch sent to the mailing list is a Wine patch or not: * The list of Wine source files (see bug 48033). * A pair of blacklists for source filenames that are too generic to be proof a patch is a Wine patch (see $AmbiguousPathsRe and $IgnoredPathsRe in testbot/lib/WineTestBot/PatchUtils.pm).
A better method would be for the TestBot server to have access to all the Wine-related repositories. A patch would initially be considered as a match for all of them and the list of files it patches would then be analyzed. Every time it patches a (not-new) file not present in one of the repositories, that repository would be eliminated from the list of matches for that patch. At the end the remaining repositories are the ones the patch could apply to. Most of the time there should only be one and the TestBot would only create jobs if Wine is one of them.
This would mostly eliminate the need for the hard-coded blacklists and may open the door to expanding support for other Wine-related projects since the TestBot would be able to identify patches for these projects too.