WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
206113
EWS: Run webkitpy tests with Python 2 and 3
https://bugs.webkit.org/show_bug.cgi?id=206113
Summary
EWS: Run webkitpy tests with Python 2 and 3
Jonathan Bedard
Reported
2020-01-10 17:04:55 PST
We should run webkitpy tests with both Python 2 and Python 3, once
https://bugs.webkit.org/show_bug.cgi?id=206078
lands.
Attachments
Patch
(5.12 KB, patch)
2020-01-10 17:09 PST
,
Jonathan Bedard
no flags
Details
Formatted Diff
Diff
Patch
(9.42 KB, patch)
2020-01-13 08:38 PST
,
Jonathan Bedard
no flags
Details
Formatted Diff
Diff
Patch
(9.64 KB, patch)
2020-01-13 08:43 PST
,
Jonathan Bedard
no flags
Details
Formatted Diff
Diff
Patch
(10.45 KB, patch)
2020-01-13 14:52 PST
,
Jonathan Bedard
no flags
Details
Formatted Diff
Diff
Patch
(11.47 KB, patch)
2020-01-14 14:40 PST
,
Jonathan Bedard
no flags
Details
Formatted Diff
Diff
Patch
(11.39 KB, patch)
2020-01-14 16:13 PST
,
Jonathan Bedard
no flags
Details
Formatted Diff
Diff
Show Obsolete
(5)
View All
Add attachment
proposed patch, testcase, etc.
Jonathan Bedard
Comment 1
2020-01-10 17:09:56 PST
Created
attachment 387402
[details]
Patch
Aakash Jain
Comment 2
2020-01-10 17:18:22 PST
Can you please deploy this change on
https://ews-build.webkit-uat.org
and provide a sample run.
Alexey Proskuryakov
Comment 3
2020-01-11 18:06:36 PST
Why is the services bubble here red, while saying "Passed build.webkit.org unit tests"?
Jonathan Bedard
Comment 4
2020-01-13 07:48:02 PST
(In reply to Alexey Proskuryakov from
comment #3
)
> Why is the services bubble here red, while saying "Passed build.webkit.org > unit tests"?
Pretty sure the machine running the services tests doesn't have some of the required buildbot packages.
Jonathan Bedard
Comment 5
2020-01-13 08:38:52 PST
Created
attachment 387532
[details]
Patch
Jonathan Bedard
Comment 6
2020-01-13 08:43:14 PST
Created
attachment 387533
[details]
Patch
Alexey Proskuryakov
Comment 7
2020-01-13 08:54:27 PST
> Pretty sure the machine running the services tests doesn't have some of the required buildbot packages.
Shouldn't that be causing an error message?
Jonathan Bedard
Comment 8
2020-01-13 09:28:07 PST
(In reply to Alexey Proskuryakov from
comment #7
)
> > Pretty sure the machine running the services tests doesn't have some of the required buildbot packages. > > Shouldn't that be causing an error message?
It was, sort of. That's what many of the unit test failures for services were. Not all of them, though, some where unit tests I had failed to change.
Aakash Jain
Comment 9
2020-01-13 10:07:18 PST
(In reply to Alexey Proskuryakov from
comment #3
)
> Why is the services bubble here red, while saying "Passed build.webkit.org unit tests"?
Tracked in
https://bugs.webkit.org/show_bug.cgi?id=206180
Jonathan Bedard
Comment 10
2020-01-13 14:52:42 PST
Created
attachment 387571
[details]
Patch
Aakash Jain
Comment 11
2020-01-14 13:53:15 PST
Comment on
attachment 387571
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=387571&action=review
Seems like python3 webkitpy tests are failing, e.g.:
https://ews-build.webkit-uat.org/#/builders/8/builds/35/steps/6/logs/stdio
> Tools/BuildSlaveSupport/ews-build/steps.py:696 > +class WebKitPyTest(shell.ShellCommand):
Please update the 'Passed webkitpy tests' message to 'Passed python2 webkitpy tests' and 'Passed python3 webkitpy tests'. e.g.:
https://ews-build.webkit-uat.org/#/builders/8/builds/37
You can use a class variable (e.g.: python_version) set in both the classes, and used in the 'message' string appropriately.
> Tools/BuildSlaveSupport/ews-build/steps.py:727 > message = 'Found {} WebKitPy test failure{}: {}'.format(len(failures), pluralSuffix, failures_string)
Please remove both self.build.buildFinished() lines from this getResultSummary() method. This causes the build to be finished early and prevents the RunWebKitPyPython3Tests step from running.
Jonathan Bedard
Comment 12
2020-01-14 14:40:03 PST
Created
attachment 387707
[details]
Patch
Aakash Jain
Comment 13
2020-01-14 14:48:52 PST
Comment on
attachment 387707
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=387707&action=review
> Tools/BuildSlaveSupport/ews-build/steps.py:741 > + descriptionDone = ['webkitpy-tests']
Can move descriptionDone to base class.
> Tools/BuildSlaveSupport/ews-build/steps.py:742 > + description = ['webkitpy-tests running ({})'.format(language)]
Can you check if you can move description, name, jsonFileName, logfiles to base class (WebKitPyTest).
Jonathan Bedard
Comment 14
2020-01-14 14:58:32 PST
Comment on
attachment 387707
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=387707&action=review
>> Tools/BuildSlaveSupport/ews-build/steps.py:742 >> + description = ['webkitpy-tests running ({})'.format(language)] > > Can you check if you can move description, name, jsonFileName, logfiles to base class (WebKitPyTest).
We won't be able to. They need language to be defined. Unless we make them properties, no, we can't move them.
Jonathan Bedard
Comment 15
2020-01-14 16:13:48 PST
Created
attachment 387718
[details]
Patch
Aakash Jain
Comment 16
2020-01-14 17:09:41 PST
Test runs: Success:
https://ews-build.webkit-uat.org/#/builders/8/builds/55
Failure:
https://ews-build.webkit-uat.org/#/builders/8/builds/56
WebKit Commit Bot
Comment 17
2020-01-14 17:32:43 PST
Comment on
attachment 387718
[details]
Patch Clearing flags on attachment: 387718 Committed
r254547
: <
https://trac.webkit.org/changeset/254547
>
WebKit Commit Bot
Comment 18
2020-01-14 17:32:45 PST
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 19
2020-01-14 17:33:15 PST
<
rdar://problem/58589889
>
Aakash Jain
Comment 20
2020-01-15 03:57:41 PST
(In reply to Aakash Jain from
comment #9
)
> (In reply to Alexey Proskuryakov from
comment #3
) > > Why is the services bubble here red, while saying "Passed build.webkit.org unit tests"? > Tracked in
https://bugs.webkit.org/show_bug.cgi?id=206180
Fixed, that red bubble's tooltip now says: "Failed EWS unit tests"
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