Bug 242242 - [browserperfdash-benchmark] Fix error logging from server after 251530@main (port to python3)
Summary: [browserperfdash-benchmark] Fix error logging from server after 251530@main (...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Carlos Alberto Lopez Perez
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-07-01 04:53 PDT by Carlos Alberto Lopez Perez
Modified: 2022-07-01 07:35 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Carlos Alberto Lopez Perez 2022-07-01 04:53:06 PDT
On 251530@main (r295525) the script browserperfdash-runner was ported to python3 and it is working fine.

However, when the browserperfdash server replies with an error (http error code: 400) the script is not longer logging what caused the error (the body of the http reply) on stderr.
Instead it is causing a generic exception that doesn't give any helpful info for debugging the problem.

Previously (with python2) the script was giving useful info. This seems to be caused because on python3 urllib.request.urlopen always rises when the http error code is not 200.
Comment 1 Carlos Alberto Lopez Perez 2022-07-01 05:03:00 PDT
Pull request: https://github.com/WebKit/WebKit/pull/1989
Comment 2 EWS 2022-07-01 07:34:51 PDT
Committed 252040@main (c0299cc3d772): <https://commits.webkit.org/252040@main>

Reviewed commits have been landed. Closing PR #1989 and removing active labels.
Comment 3 Radar WebKit Bug Importer 2022-07-01 07:35:13 PDT
<rdar://problem/96290581>