Bug 216898

Summary: [build.webkit.org] Add unit-test to detect invalid triggers in config.json
Product: WebKit Reporter: Aakash Jain <aakash_jain>
Component: Tools / TestsAssignee: Aakash Jain <aakash_jain>
Status: RESOLVED FIXED    
Severity: Normal CC: aakash_jain, ap, jbedard, ryanhaddad, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=216658
Attachments:
Description Flags
Patch
none
Patch none

Description Aakash Jain 2020-09-23 14:40:38 PDT
[build.webkit.org] We should add unit-test to detect invalid triggers in config.json, especially when the builder which is being triggered by the trigger doesn't exist.
Comment 1 Aakash Jain 2020-09-29 06:39:26 PDT
This is to prevent issues like https://bugs.webkit.org/show_bug.cgi?id=216658#c15
Comment 2 Aakash Jain 2020-09-29 06:40:12 PDT
Turns out that we don't have any unit-test for build.webkit.org for testing config.json
Comment 3 Aakash Jain 2020-09-29 06:40:33 PDT
Created attachment 409994 [details]
Patch
Comment 4 Aakash Jain 2020-09-29 06:45:51 PDT
(In reply to Aakash Jain from comment #3)
> Created attachment 409994 [details]
> Patch
This is mostly copied from https://trac.webkit.org/browser/webkit/trunk/Tools/BuildSlaveSupport/ews-build/loadConfig_unittest.py 
Long term aim is to have almost same unit-tests testing both EWS and build.webkit.org, but that would need various changes (especially because of different Buildbot versions) and would be done incrementally.
Comment 5 Aakash Jain 2020-09-29 07:04:19 PDT
Created attachment 409996 [details]
Patch
Comment 6 EWS 2020-09-29 09:02:13 PDT
Committed r267736: <https://trac.webkit.org/changeset/267736>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 409996 [details].
Comment 7 Radar WebKit Bug Importer 2020-09-29 09:03:18 PDT
<rdar://problem/69749470>