WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 84695
[GTK] run-gtk-tests: Use a timeout per test instead of a global timeout
https://bugs.webkit.org/show_bug.cgi?id=84695
Summary
[GTK] run-gtk-tests: Use a timeout per test instead of a global timeout
Carlos Garcia Campos
Reported
2012-04-24 03:14:44 PDT
Using something like 10 secs per test, like run-api-tests does, would detect timed out test earlier. It would also allow to continue running other tests instead of aborting the whole script just because one test timed out.
Attachments
Patch
(6.19 KB, patch)
2012-04-24 03:22 PDT
,
Carlos Garcia Campos
no flags
Details
Formatted Diff
Diff
Updated patch
(6.78 KB, patch)
2012-04-26 04:13 PDT
,
Carlos Garcia Campos
pnormand
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Carlos Garcia Campos
Comment 1
2012-04-24 03:22:55 PDT
Created
attachment 138528
[details]
Patch
Philippe Normand
Comment 2
2012-04-24 06:35:43 PDT
Comment on
attachment 138528
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=138528&action=review
Nice stuff! Looks good to me.
> Tools/Scripts/run-gtk-tests:271 > + if timeout > 0: > + alarm(0)
I'm not sure to understand this code. Can you clarify please?
> Tools/Scripts/run-gtk-tests:307 > + timedout_tests = []
Hum, what about slow_tests?
Carlos Garcia Campos
Comment 3
2012-04-24 07:43:28 PDT
(In reply to
comment #2
)
> (From update of
attachment 138528
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=138528&action=review
> > Nice stuff! Looks good to me. > > > Tools/Scripts/run-gtk-tests:271 > > + if timeout > 0: > > + alarm(0) > > I'm not sure to understand this code. Can you clarify please?
alarm(0) just resets the alarm so that no new alarms are scheduled.
> > Tools/Scripts/run-gtk-tests:307 > > + timedout_tests = [] > > Hum, what about slow_tests?
I don't think there's any test so slow, in any case we could use a value higher than 10, but I think 10 seconds per test is enough.
Philippe Normand
Comment 4
2012-04-24 08:16:47 PDT
(In reply to
comment #3
)
> (In reply to
comment #2
) > > (From update of
attachment 138528
[details]
[details]) > > View in context:
https://bugs.webkit.org/attachment.cgi?id=138528&action=review
> > > > Nice stuff! Looks good to me. > > > > > Tools/Scripts/run-gtk-tests:271 > > > + if timeout > 0: > > > + alarm(0) > > > > I'm not sure to understand this code. Can you clarify please? > > alarm(0) just resets the alarm so that no new alarms are scheduled. >
Ok.
> > > Tools/Scripts/run-gtk-tests:307 > > > + timedout_tests = [] > > > > Hum, what about slow_tests? > > I don't think there's any test so slow, in any case we could use a value higher than 10, but I think 10 seconds per test is enough.
I guess I meant the "timedout_tests" name wasn't great but that's only my opinion. I proposed slow_tests because I couldn't come up with a better name.
Carlos Garcia Campos
Comment 5
2012-04-24 08:21:52 PDT
(In reply to
comment #4
)
> > > > Tools/Scripts/run-gtk-tests:307 > > > > + timedout_tests = [] > > > > > > Hum, what about slow_tests? > > > > I don't think there's any test so slow, in any case we could use a value higher than 10, but I think 10 seconds per test is enough. > > I guess I meant the "timedout_tests" name wasn't great but that's only my opinion. I proposed slow_tests because I couldn't come up with a better name.
Ah, you meant the name, sorry. Well, there are some tests that are slow, like BackForardList but they don't time out.
Carlos Garcia Campos
Comment 6
2012-04-26 03:25:28 PDT
(In reply to
comment #5
)
> (In reply to
comment #4
) > > > > > Tools/Scripts/run-gtk-tests:307 > > > > > + timedout_tests = [] > > > > > > > > Hum, what about slow_tests? > > > > > > I don't think there's any test so slow, in any case we could use a value higher than 10, but I think 10 seconds per test is enough. > > > > I guess I meant the "timedout_tests" name wasn't great but that's only my opinion. I proposed slow_tests because I couldn't come up with a better name. > > Ah, you meant the name, sorry. Well, there are some tests that are slow, like BackForardList but they don't time out.
btw, it's called @testsTimedOut in run-api-tests, fwiw
Philippe Normand
Comment 7
2012-04-26 03:34:21 PDT
ok then what about timed_out_tests?
Carlos Garcia Campos
Comment 8
2012-04-26 04:13:11 PDT
Created
attachment 138972
[details]
Updated patch Rebased to apply on current git master and renamed timedout_tests to timed_out_tests
Carlos Garcia Campos
Comment 9
2012-04-26 07:44:33 PDT
Committed
r115313
: <
http://trac.webkit.org/changeset/115313
>
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