Bug 203281 - [ews] iOS-13-Simulator-WK2-Tests-EWS is failing with an KeyError exception
Summary: [ews] iOS-13-Simulator-WK2-Tests-EWS is failing with an KeyError exception
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Aakash Jain
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2019-10-22 17:15 PDT by Aakash Jain
Modified: 2019-10-23 13:48 PDT (History)
6 users (show)

See Also:


Attachments
Patch (1.38 KB, patch)
2019-10-22 21:10 PDT, Aakash Jain
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Aakash Jain 2019-10-22 17:15:04 PDT
iOS-13-Simulator-WK2-Tests-EWS is failing with an KeyError exception. This issue seems to have started today (with https://ews-build.webkit.org/#/builders/24/builds/2281)

e.g.: https://ews-build.webkit.org/#/builders/24/builds/2298/steps/9/logs/err_text

Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/twisted/internet/defer.py", line 654, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "/usr/lib64/python2.7/site-packages/twisted/internet/defer.py", line 1475, in gotResult
    _inlineCallbacks(r, g, status)
  File "/usr/lib64/python2.7/site-packages/twisted/internet/defer.py", line 1416, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/usr/lib64/python2.7/site-packages/twisted/python/failure.py", line 512, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
--- <exception caught here> ---
  File "/usr/lib/python2.7/site-packages/buildbot/process/buildstep.py", line 578, in startStep
    self.results = yield self.run()
  File "/usr/lib64/python2.7/site-packages/twisted/internet/defer.py", line 1418, in _inlineCallbacks
    result = g.send(result)
  File "/usr/lib/python2.7/site-packages/buildbot/process/buildstep.py", line 708, in run
    results = yield self._start_deferred
  File "/usr/lib64/python2.7/site-packages/twisted/internet/defer.py", line 654, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "/usr/lib/python2.7/site-packages/buildbot/process/buildstep.py", line 1005, in <lambda>
    d.addCallback(lambda res: self.commandComplete(cmd))
  File "steps.py", line 1010, in commandComplete
    first_results = LayoutTestFailures.results_from_string(logTextJson)
  File "layout_test_failures.py", line 64, in results_from_string
    cls.parse_full_results_json(json_dict['tests'], get_failing_tests)
  File "layout_test_failures.py", line 72, in parse_full_results_json
    cls.parse_full_results_json(tree[key], handler, new_prefix)
  File "layout_test_failures.py", line 72, in parse_full_results_json
    cls.parse_full_results_json(tree[key], handler, new_prefix)
  File "layout_test_failures.py", line 74, in parse_full_results_json
    handler(new_prefix, tree[key])
  File "layout_test_failures.py", line 61, in get_failing_tests
    if result['report'] in ['REGRESSION', 'MISSING']:
exceptions.KeyError: 'report'
Comment 1 Jonathan Bedard 2019-10-22 18:34:32 PDT
We’ve got to have a regression point for this...I won’t be able to investigate before tomorrow, but I don’t see any candidates that landed today.
Comment 2 Aakash Jain 2019-10-22 20:54:51 PDT
The issue is because the layout-test-results json output contains few results without the 'report' key.

e.g. {u'expected': u'PASS FAIL', u'actual': u'PASS', u'has_stderr': True}

This is happening for following three tests:
- editing/pasteboard/smart-paste-paragraph-001.html 
- editing/pasteboard/smart-paste-paragraph-002.html
- editing/pasteboard/smart-paste-paragraph-004.html

TextExpectations were updated for these three tests in r251449.

Also the failure starting point in EWS (build https://ews-build.webkit.org/#/builders/24/builds/2281/steps/4/logs/stdio) matches precisely with this commit.
Comment 3 Jonathan Bedard 2019-10-22 21:01:23 PDT
For now, we should roll that commit out....Russels code is correct, but I won’t be able to fix this until tomorrow 11 am....it seems that keeping this broken that long is a bad idea.
Comment 4 Aakash Jain 2019-10-22 21:10:09 PDT
Created attachment 381650 [details]
Patch
Comment 5 Aakash Jain 2019-10-22 21:13:23 PDT
(In reply to Aakash Jain from comment #4)
> Created attachment 381650 [details]
> Patch
This patch seems to work, and for now I have applied it on the EWS server to get the iOS queue back in shape.
Comment 6 WebKit Commit Bot 2019-10-23 13:47:27 PDT
Comment on attachment 381650 [details]
Patch

Clearing flags on attachment: 381650

Committed r251497: <https://trac.webkit.org/changeset/251497>
Comment 7 WebKit Commit Bot 2019-10-23 13:47:29 PDT
All reviewed patches have been landed.  Closing bug.
Comment 8 Radar WebKit Bug Importer 2019-10-23 13:48:17 PDT
<rdar://problem/56552765>