Bug 218802

Summary: [build.webkit.org] Update CheckOutSource step for new buildbot
Product: WebKit Reporter: Aakash Jain <aakash_jain>
Component: Tools / TestsAssignee: Aakash Jain <aakash_jain>
Status: RESOLVED FIXED    
Severity: Normal CC: jbedard, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 175056    
Attachments:
Description Flags
Patch
none
Patch none

Description Aakash Jain 2020-11-11 06:39:29 PST
We are planning to upgrade build.webkit.org to latest Buildbot. The base class (SVN) used by CheckOutSource has been moved and modified in new Buildbot. We should update the step accordingly.
Comment 1 Aakash Jain 2020-11-11 06:42:23 PST
Created attachment 413816 [details]
Patch
Comment 2 Jonathan Bedard 2020-11-11 09:09:10 PST
Comment on attachment 413816 [details]
Patch

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

> Tools/CISupport/build-webkit-org/steps.py:122
> +        SVN.__init__(self, **kwargs)

Is there a reason we aren't using super?
Comment 3 Aakash Jain 2020-11-11 12:19:33 PST
Created attachment 413851 [details]
Patch
Comment 4 Aakash Jain 2020-11-11 12:20:11 PST
(In reply to Jonathan Bedard from comment #2)
> Is there a reason we aren't using super?
Updated patch uses super.
Comment 5 EWS 2020-11-11 12:57:08 PST
Committed r269699: <https://trac.webkit.org/changeset/269699>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 413851 [details].
Comment 6 Radar WebKit Bug Importer 2020-11-11 12:58:21 PST
<rdar://problem/71295484>
Comment 7 Aakash Jain 2020-11-12 05:13:52 PST
(In reply to Aakash Jain from comment #4)
> (In reply to Jonathan Bedard from comment #2)
> > Is there a reason we aren't using super?
> Updated patch uses super.
Actually unit-test (and buildbot checkconfig) on old buildbot/python fails when using super on this class (old-style class) with following error (e.g.: https://ews-build.webkit.org/#/builders/20/builds/34537).

  File "steps.py", line 145, in __init__
    super(CheckOutSource, self).__init__(**kwargs)
TypeError: super() argument 1 must be type, not classobj

This is because this SVN class in old buildbot is old-style class. See: https://stackoverflow.com/questions/1713038/super-fails-with-error-typeerror-argument-1-must-be-type-not-classobj-when
Comment 8 Aakash Jain 2020-11-12 05:18:35 PST
Committed r269731: <https://trac.webkit.org/changeset/269731>