Bug 159224 - Use a regex to check if a test step is for JavaScriptCore
Summary: Use a regex to check if a test step is for JavaScriptCore
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-28 13:51 PDT by Srinivasan Vijayaraghavan
Modified: 2016-06-28 20:56 PDT (History)
1 user (show)

See Also:


Attachments
Patch (5.63 KB, patch)
2016-06-28 13:54 PDT, Srinivasan Vijayaraghavan
no flags Details | Formatted Diff | Diff
Patch (5.67 KB, patch)
2016-06-28 14:27 PDT, Srinivasan Vijayaraghavan
no flags Details | Formatted Diff | Diff
Patch (5.68 KB, patch)
2016-06-28 14:32 PDT, Srinivasan Vijayaraghavan
no flags Details | Formatted Diff | Diff
Patch (5.65 KB, patch)
2016-06-28 14:59 PDT, Srinivasan Vijayaraghavan
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Srinivasan Vijayaraghavan 2016-06-28 13:51:02 PDT
Use a regex to check if a test step is for JavaScriptCore
Comment 1 Srinivasan Vijayaraghavan 2016-06-28 13:54:50 PDT
Created attachment 282279 [details]
Patch
Comment 2 Geoffrey Garen 2016-06-28 13:56:16 PDT
Comment on attachment 282279 [details]
Patch

r=me
Comment 3 Alexey Proskuryakov 2016-06-28 14:06:52 PDT
Comment on attachment 282279 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=282279&action=review

> Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotCombinedQueueView.js:112
> -                    } else if (mostRecentFinishedIteration.failedTestSteps.length === 1 && ["jscore-test", "webkit-32bit-jsc-test", "webkit-jsc-cloop-test"].indexOf(mostRecentFinishedIteration.failedTestSteps[0].name) >= 0) {
> +                    } else if (mostRecentFinishedIteration.failedTestSteps.length === 1 && /jsc/.test(mostRecentFinishedIteration.failedTestSteps[0].name) === true) {

Would it make sense to make sure that "test" is in the name too? That would decrease the chances of something like "build-jsc" or "configure-jsc-dependencies" to confuse the logic.
Comment 4 Srinivasan Vijayaraghavan 2016-06-28 14:10:40 PDT
(In reply to comment #3)
> Would it make sense to make sure that "test" is in the name too? That would
> decrease the chances of something like "build-jsc" or
> "configure-jsc-dependencies" to confuse the logic.

Agreed, working on that now.
Comment 5 Srinivasan Vijayaraghavan 2016-06-28 14:20:11 PDT
/(?=.*test)(?=.*jsc)/ or /(?=.*test)(?=.*jsc)/ would work, as would using two regexes. Will upload after testing locally.
Comment 6 Srinivasan Vijayaraghavan 2016-06-28 14:25:35 PDT
(In reply to comment #5)
> /(?=.*test)(?=.*jsc)/ or /(?=.*test)(?=.*jsc)/ would work, as would using
> two regexes. Will upload after testing locally.

Meant to say /(?=.*test)(?=.*jsc)/ or /(?=.*jsc)(?=.*test)/, since they are equivalent.
Comment 7 Srinivasan Vijayaraghavan 2016-06-28 14:27:44 PDT
Created attachment 282285 [details]
Patch
Comment 8 Srinivasan Vijayaraghavan 2016-06-28 14:29:07 PDT
Nope, one more change.
Comment 9 Srinivasan Vijayaraghavan 2016-06-28 14:32:37 PDT
Created attachment 282286 [details]
Patch
Comment 10 Alexey Proskuryakov 2016-06-28 14:44:50 PDT
Comment on attachment 282286 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=282286&action=review

> Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotIteration.js:254
> +            else if (/(?=.*test)(?=.*jsc)/.test(step.name) === true)

WebKit coding style calls for no comparison to true, should be just if (/(?=.*test)(?=.*jsc)/.test(step.name))

Sorry for missing it the first time around (I blame Geoff of course).
Comment 11 Srinivasan Vijayaraghavan 2016-06-28 14:59:01 PDT
Created attachment 282288 [details]
Patch
Comment 12 Srinivasan Vijayaraghavan 2016-06-28 15:00:18 PDT
(In reply to comment #10)
> Comment on attachment 282286 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=282286&action=review
> 
> > Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotIteration.js:254
> > +            else if (/(?=.*test)(?=.*jsc)/.test(step.name) === true)
> 
> WebKit coding style calls for no comparison to true, should be just if
> (/(?=.*test)(?=.*jsc)/.test(step.name))
> 
> Sorry for missing it the first time around (I blame Geoff of course).

Sorry about that, just resubmitted.
Comment 13 WebKit Commit Bot 2016-06-28 20:56:40 PDT
Comment on attachment 282288 [details]
Patch

Clearing flags on attachment: 282288

Committed r202606: <http://trac.webkit.org/changeset/202606>
Comment 14 WebKit Commit Bot 2016-06-28 20:56:43 PDT
All reviewed patches have been landed.  Closing bug.