RESOLVED FIXED 159224
Use a regex to check if a test step is for JavaScriptCore
https://bugs.webkit.org/show_bug.cgi?id=159224
Summary Use a regex to check if a test step is for JavaScriptCore
Srinivasan Vijayaraghavan
Reported 2016-06-28 13:51:02 PDT
Use a regex to check if a test step is for JavaScriptCore
Attachments
Patch (5.63 KB, patch)
2016-06-28 13:54 PDT, Srinivasan Vijayaraghavan
no flags
Patch (5.67 KB, patch)
2016-06-28 14:27 PDT, Srinivasan Vijayaraghavan
no flags
Patch (5.68 KB, patch)
2016-06-28 14:32 PDT, Srinivasan Vijayaraghavan
no flags
Patch (5.65 KB, patch)
2016-06-28 14:59 PDT, Srinivasan Vijayaraghavan
no flags
Srinivasan Vijayaraghavan
Comment 1 2016-06-28 13:54:50 PDT
Geoffrey Garen
Comment 2 2016-06-28 13:56:16 PDT
Comment on attachment 282279 [details] Patch r=me
Alexey Proskuryakov
Comment 3 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.
Srinivasan Vijayaraghavan
Comment 4 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.
Srinivasan Vijayaraghavan
Comment 5 2016-06-28 14:20:11 PDT
/(?=.*test)(?=.*jsc)/ or /(?=.*test)(?=.*jsc)/ would work, as would using two regexes. Will upload after testing locally.
Srinivasan Vijayaraghavan
Comment 6 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.
Srinivasan Vijayaraghavan
Comment 7 2016-06-28 14:27:44 PDT
Srinivasan Vijayaraghavan
Comment 8 2016-06-28 14:29:07 PDT
Nope, one more change.
Srinivasan Vijayaraghavan
Comment 9 2016-06-28 14:32:37 PDT
Alexey Proskuryakov
Comment 10 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).
Srinivasan Vijayaraghavan
Comment 11 2016-06-28 14:59:01 PDT
Srinivasan Vijayaraghavan
Comment 12 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.
WebKit Commit Bot
Comment 13 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>
WebKit Commit Bot
Comment 14 2016-06-28 20:56:43 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.