WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
208860
[GTK] Switch EWS api-gtk bot from buildAndTest to testOnly
https://bugs.webkit.org/show_bug.cgi?id=208860
Summary
[GTK] Switch EWS api-gtk bot from buildAndTest to testOnly
Diego Pino
Reported
2020-03-10 07:38:00 PDT
[GTK] Switch EWS api-gtk bot from buildAndTest to testOnly
Attachments
Patch
(5.00 KB, patch)
2020-03-10 07:39 PDT
,
Diego Pino
no flags
Details
Formatted Diff
Diff
Patch
(5.12 KB, patch)
2020-03-10 09:22 PDT
,
Diego Pino
no flags
Details
Formatted Diff
Diff
Patch
(5.97 KB, patch)
2020-03-10 11:14 PDT
,
Diego Pino
no flags
Details
Formatted Diff
Diff
Patch
(5.98 KB, patch)
2020-03-11 05:23 PDT
,
Diego Pino
no flags
Details
Formatted Diff
Diff
Patch
(7.05 KB, patch)
2020-03-11 07:57 PDT
,
Diego Pino
no flags
Details
Formatted Diff
Diff
Patch
(7.79 KB, patch)
2020-03-11 09:29 PDT
,
Diego Pino
no flags
Details
Formatted Diff
Diff
Show Obsolete
(5)
View All
Add attachment
proposed patch, testcase, etc.
Diego Pino
Comment 1
2020-03-10 07:39:14 PDT
Created
attachment 393146
[details]
Patch
Carlos Alberto Lopez Perez
Comment 2
2020-03-10 08:04:12 PDT
Comment on
attachment 393146
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=393146&action=review
> Tools/BuildSlaveSupport/ews-build/factories.py:191 > +class GTKTestFactory(Factory): > LayoutTestClass = None > APITestClass = None > > + def getProduct(self): > + self.addStep(InstallGtkDependencies()) > + self.addStep(DownloadBuiltProduct()) > + self.addStep(ExtractBuiltProduct()) > + > def __init__(self, platform, configuration=None, architectures=None, additionalArguments=None, **kwargs): > - GTKBuildFactory.__init__(self, platform=platform, configuration=configuration, architectures=architectures, buildOnly=True, additionalArguments=additionalArguments) > + Factory.__init__(self, platform=platform, configuration=configuration, architectures=architectures, buildOnly=False, additionalArguments=additionalArguments) > + self.getProduct()
I think we can now get rid of the class GTKTestFactory() and simply use the class TestFactory() I think the only thing different we need to do in TestFactory() for GTK its to simply call InstallGtkDependencies() when platform == 'gtk' in the class init method before calling self.getProduct()
Diego Pino
Comment 3
2020-03-10 09:22:36 PDT
Created
attachment 393157
[details]
Patch
Carlos Alberto Lopez Perez
Comment 4
2020-03-10 09:40:20 PDT
Comment on
attachment 393157
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=393157&action=review
> Tools/BuildSlaveSupport/ews-build/config.json:522 > + "factory": "GTKAPITestsFactory",
And this can be now simply APITestsFactory and we can get also rid of the class GTKAPITestsFactory
> Tools/BuildSlaveSupport/ews-build/loadConfig.py:33 > from factories import (APITestsFactory, BindingsFactory, BuildFactory, CommitQueueFactory, Factory, GTKBuildFactory,
And maybe we can even get also rid of the class GTKBuildFactory and simply use BuildFactory by adding conditionally the step InstallGtkDependencies() to it after KillOldProcesses() when platform is gtk
Diego Pino
Comment 5
2020-03-10 11:14:09 PDT
Created
attachment 393167
[details]
Patch
Diego Pino
Comment 6
2020-03-10 11:15:30 PDT
I updated the patch. Instead of completely removing GTKBuildFactory and leave it as an empty class, like iOSBuildFactory.
Carlos Alberto Lopez Perez
Comment 7
2020-03-11 04:17:06 PDT
(In reply to Diego Pino from
comment #6
)
> I updated the patch. Instead of completely removing GTKBuildFactory and > leave it as an empty class, like iOSBuildFactory.
Interesting. Looks fine. Please check the EWS red bubbles and fix them
Diego Pino
Comment 8
2020-03-11 05:23:51 PDT
Created
attachment 393226
[details]
Patch
Carlos Alberto Lopez Perez
Comment 9
2020-03-11 06:32:22 PDT
Comment on
attachment 393226
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=393226&action=review
> Tools/BuildSlaveSupport/ews-build/config.json:609 > + }, > + { > + "type": "Triggerable", > + "name": "api-tests-gtk-ews", > + "builderNames": [ > + "API-Tests-GTK-EWS" > + ]
Now that you are adding here the queue "API-Tests-GTK-EWS" as Triggerable type to the schedulers list, you have to remove it from the Try_Userpass type above. The queue should be only once on the "schedulers" list. I miss a test for this on the unit tests
Aakash Jain
Comment 10
2020-03-11 07:25:51 PDT
(In reply to Carlos Alberto Lopez Perez from
comment #9
)
> I miss a test for this on the unit tests
Adding in
https://bugs.webkit.org/show_bug.cgi?id=208917
Diego Pino
Comment 11
2020-03-11 07:57:40 PDT
Created
attachment 393242
[details]
Patch
Carlos Alberto Lopez Perez
Comment 12
2020-03-11 08:02:40 PDT
Comment on
attachment 393242
[details]
Patch r=me thanks!
Aakash Jain
Comment 13
2020-03-11 08:25:36 PDT
LGTM. Can you also add following to QUEUE_TRIGGERS in
https://trac.webkit.org/browser/webkit/trunk/Tools/BuildSlaveSupport/ews-app/ews/views/statusbubble.py#L47
'api-gtk': 'gtk'
Diego Pino
Comment 14
2020-03-11 09:29:08 PDT
Created
attachment 393251
[details]
Patch
EWS
Comment 15
2020-03-11 11:34:24 PDT
Committed
r258271
: <
https://trac.webkit.org/changeset/258271
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 393251
[details]
.
Radar WebKit Bug Importer
Comment 16
2020-03-11 11:35:13 PDT
<
rdar://problem/60332911
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug