RESOLVED FIXED 86242
garden-o-matic should specify which types of baselines to rebaseline
https://bugs.webkit.org/show_bug.cgi?id=86242
Summary garden-o-matic should specify which types of baselines to rebaseline
Dirk Pranke
Reported 2012-05-11 12:34:39 PDT
garden-o-matic should specify which types of baselines to rebaseline
Attachments
Patch (13.37 KB, patch)
2012-05-11 12:37 PDT, Dirk Pranke
no flags
make js tests work, update w/ review feedback (16.50 KB, patch)
2012-05-11 15:44 PDT, Dirk Pranke
abarth: review+
Dirk Pranke
Comment 1 2012-05-11 12:37:31 PDT
Dirk Pranke
Comment 2 2012-05-11 12:38:29 PDT
Okay, I think this roughly does what we want, but I don't really know this code and my javascript coding ability is, shall we say, weak. So, feedback is encouraged.
Dirk Pranke
Comment 3 2012-05-11 12:39:00 PDT
Comment on attachment 141474 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=141474&action=review > Tools/BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/scripts/checkout.js:106 > + // FIXME: Do we need to handle lists with multiple failure types? This part in particular I'm not sure about?
Adam Barth
Comment 4 2012-05-11 13:29:11 PDT
Comment on attachment 141474 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=141474&action=review > Tools/BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/scripts/checkout.js:83 > + 'suffixes': suffixes, Do we need to suffixes.join(',') here too? >> Tools/BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/scripts/checkout.js:106 >> + // FIXME: Do we need to handle lists with multiple failure types? > > This part in particular I'm not sure about? Yeah, we need to handle multiple failure types. By the way, this file should have some associated unit tests in checkout_unittests.js. You can run them your browser by opening run_unittests.html. It should be easy to test this change. > Tools/BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/scripts/checkout.js:107 > + var suffixes = results.failureTypeToExtensionList(failureInfo.failureTypeList[0]); I think what you want to do is something like the following: base.uniquifyArray(base.flattenArray(failureInfo.failureTypeList.map(results.failureTypeToExtensionList)))
Adam Barth
Comment 5 2012-05-11 13:29:56 PDT
Generally looks good. I think the main thing is you just need to update the unittests to test the new behavior.
Ojan Vafai
Comment 6 2012-05-11 13:37:13 PDT
Comment on attachment 141474 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=141474&action=review LGTM as well with more tests. > Tools/Scripts/webkitpy/tool/commands/rebaseline.py:182 > + self._baseline_suffix_list = options.suffixes.split(',') Dead code. > Tools/Scripts/webkitpy/tool/commands/rebaseline.py:211 > + self._baseline_suffix_list = options.suffixes.split(',') Looks like if you avoid the join in the calling code, you could avoid needing to call split here as well, a la line 183 above.
Dirk Pranke
Comment 7 2012-05-11 15:44:47 PDT
Created attachment 141515 [details] make js tests work, update w/ review feedback
Adam Barth
Comment 8 2012-05-11 15:48:15 PDT
Comment on attachment 141515 [details] make js tests work, update w/ review feedback Looks great. Thanks!
Dirk Pranke
Comment 9 2012-05-14 13:10:37 PDT
Note You need to log in before you can comment on or make changes to this bug.