WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
103830
nrwt: clean up exception propagation / handling for interrupts and early exits
https://bugs.webkit.org/show_bug.cgi?id=103830
Summary
nrwt: clean up exception propagation / handling for interrupts and early exits
Dirk Pranke
Reported
2012-12-01 19:08:45 PST
nrwt: clean up exception propagation / handling for interrupts and early exits
Attachments
Patch
(23.37 KB, patch)
2012-12-01 19:13 PST
,
Dirk Pranke
ojan
: review+
ojan
: commit-queue-
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Dirk Pranke
Comment 1
2012-12-01 19:13:48 PST
Created
attachment 177126
[details]
Patch
Ojan Vafai
Comment 2
2012-12-01 19:37:14 PST
Comment on
attachment 177126
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=177126&action=review
> Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py:437 > + logging.getLogger().setLevel(logging.DEBUG if options.debug_rwt_logging else logging.INFO)
Nit: this doesn't need to be in the try, right? In fact, maybe it makes the most sense right after we do the options parsing? In theory, the other code (e.g. the Host constructor) could log stuff.
WebKit Review Bot
Comment 3
2012-12-02 07:18:42 PST
Comment on
attachment 177126
[details]
Patch
Attachment 177126
[details]
did not pass chromium-ews (chromium-xvfb): Output:
http://queues.webkit.org/results/15106106
Dirk Pranke
Comment 4
2012-12-02 10:22:55 PST
Comment on
attachment 177126
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=177126&action=review
>> Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py:437 >> + logging.getLogger().setLevel(logging.DEBUG if options.debug_rwt_logging else logging.INFO) > > Nit: this doesn't need to be in the try, right? In fact, maybe it makes the most sense right after we do the options parsing? In theory, the other code (e.g. the Host constructor) could log stuff.
Right.
Dirk Pranke
Comment 5
2012-12-03 14:00:00 PST
Committed
r136437
: <
http://trac.webkit.org/changeset/136437
>
Zan Dobersek
Comment 6
2012-12-03 23:07:13 PST
Comment on
attachment 177126
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=177126&action=review
> Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py:450 > + except:
sys.exit(main()) call raises a SystemExit exception which is then again handled here, so a 254 exit code is returned no matter how many tests failed. This affects both BuildBot builders and EWS builders, all of them seemingly failing. I've committed
r136474
, a simple temporary fix that checks that the exception handled here is not a SystemExit exception. We can address the problem proper when USA wakes up.
http://trac.webkit.org/changeset/136474
Dirk Pranke
Comment 7
2012-12-03 23:33:08 PST
Comment on
attachment 177126
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=177126&action=review
>> Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py:450 >> + except: > > sys.exit(main()) call raises a SystemExit exception which is then again handled here, so a 254 exit code is returned no matter how many tests failed. This affects both BuildBot builders and EWS builders, all of them seemingly failing. > > I've committed
r136474
, a simple temporary fix that checks that the exception handled here is not a SystemExit exception. We can address the problem proper when USA wakes up. >
http://trac.webkit.org/changeset/136474
whoops. I knew I was going to mess up at least one branch of this somewhere, since of course this is the 5 lines of code I don't have tests for ... This probably should've been: try: return_code = main() except KeyboardInterrupt: return_code = INTERRUPTED_EXIT_STATUS except: return_code = EXCEPTIONAL_EXIT_STATUS sys.exit(return_code) as in the prior version. Thanks for patching this in the meantime!
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