|
|
Chromium Code Reviews|
Created:
4 years, 1 month ago by qyearsley Modified:
4 years, 1 month ago Reviewers:
Dirk Pranke CC:
chromium-reviews, wkorman Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionUse Port.skips_test in copy-existing-baselines command.
After this CL, I expect that when rebaselining (with rebaseline-cl or other rebaseline commands), new baselines shouldn't be added for non-smoke-tests on android.
BUG=655196
Committed: https://crrev.com/f2543789d3b0638e3afed6efaf0a9e8e244a3c42
Cr-Commit-Position: refs/heads/master@{#428540}
Patch Set 1 #Patch Set 2 : For copying existing baselines, continue skipping if test is skipped in generic expectations. #
Total comments: 2
Messages
Total messages: 23 (11 generated)
Description was changed from ========== Use Port.skips_test in copy-existing-baselines command. BUG=655196 ========== to ========== Use Port.skips_test in copy-existing-baselines command. After this CL, I expect that when rebaselining (with rebaseline-cl or other rebaseline commands), new baselines shouldn't be added for non-smoke-tests on android. BUG=655196 ==========
qyearsley@chromium.org changed reviewers: + dpranke@chromium.org
Note: I'm not sure whether a test for this belongs in rebaseline_unittest, or whether it would make more sense to put it in port/base_unittest. Also, I think that skips_test probably doesn't need to take two TestExpectations objects, and it should just need to take "full_expectations" (the copy that includes overriding test expectations files); so I think this could be done in a follow-up?
lgtm. On 2016/10/27 21:41:01, qyearsley wrote: > Note: I'm not sure whether a test for this belongs in rebaseline_unittest, or > whether it would make more sense to put it in port/base_unittest. I'd put the tests for skips_tests() in port/base_unittest.py > > Also, I think that skips_test probably doesn't need to take two TestExpectations > objects, and it should just need to take "full_expectations" (the copy that > includes overriding test expectations files); so I think this could be done in a > follow-up? Okay, I stared at this some more to try and remember why things are this way, and I think I know now. The problem is that you need to distinguish between a test that is being skipped temporarily due to a bug (in which case we should rebaseline it) and a test that is intentionally skipped because we never want to run it. The latter class of things are specified in NeverFixTests. By computing the two sets of expectations with and without including NeverFixTests, you're able to figure out which case you have. Assuming I'm right here, obviously we could make that clearer in the code.
On 2016/10/27 at 22:27:34, dpranke wrote: > lgtm. > > On 2016/10/27 21:41:01, qyearsley wrote: > > Note: I'm not sure whether a test for this belongs in rebaseline_unittest, or > > whether it would make more sense to put it in port/base_unittest. > > I'd put the tests for skips_tests() in port/base_unittest.py > > > > > Also, I think that skips_test probably doesn't need to take two TestExpectations > > objects, and it should just need to take "full_expectations" (the copy that > > includes overriding test expectations files); so I think this could be done in a > > follow-up? > > Okay, I stared at this some more to try and remember why things are this way, and I think I know now. > > The problem is that you need to distinguish between a test that is being skipped temporarily due to > a bug (in which case we should rebaseline it) and a test that is intentionally skipped because we > never want to run it. The latter class of things are specified in NeverFixTests. By computing the > two sets of expectations with and without including NeverFixTests, you're able to figure out > which case you have. > > Assuming I'm right here, obviously we could make that clearer in the code. Ah! Makes sense. In a follow-up I'd like to add clarifying comments and tests for skips_test.
The CQ bit was checked by qyearsley@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_...)
The CQ bit was checked by qyearsley@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
On 2016/10/28 at 01:39:04, commit-bot wrote: > Try jobs failed on following builders: > mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_...) So, the current unit test for copy-existing-baselines tests that the behavior is that baseline shouldn't be copied to a platform's directory if the test is skipped in the generic test expectations file. Since the purpose of this CL is just to make it so that baselines aren't copied to android for non-smoke-tests (http://crbug.com/655196), I think I'd like to commit this with a minor tweak and then follow-up with another CL. Does this look OK?
On 2016/10/28 22:02:30, qyearsley wrote: > On 2016/10/28 at 01:39:04, commit-bot wrote: > > Try jobs failed on following builders: > > mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, > http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_...) > > So, the current unit test for copy-existing-baselines tests that the behavior is > that baseline shouldn't be copied to a platform's directory if the test is > skipped in the generic test expectations file. > > Since the purpose of this CL is just to make it so that baselines aren't copied > to android for non-smoke-tests (http://crbug.com/655196), I think I'd like to > commit this with a minor tweak and then follow-up with another CL. Does this > look OK? That's fine, I think.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by qyearsley@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from dpranke@chromium.org Link to the patchset: https://codereview.chromium.org/2455233002/#ps20001 (title: "For copying existing baselines, continue skipping if test is skipped in generic expectations.")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Committed patchset #2 (id:20001)
Message was sent while issue was closed.
Description was changed from ========== Use Port.skips_test in copy-existing-baselines command. After this CL, I expect that when rebaselining (with rebaseline-cl or other rebaseline commands), new baselines shouldn't be added for non-smoke-tests on android. BUG=655196 ========== to ========== Use Port.skips_test in copy-existing-baselines command. After this CL, I expect that when rebaselining (with rebaseline-cl or other rebaseline commands), new baselines shouldn't be added for non-smoke-tests on android. BUG=655196 Committed: https://crrev.com/f2543789d3b0638e3afed6efaf0a9e8e244a3c42 Cr-Commit-Position: refs/heads/master@{#428540} ==========
Message was sent while issue was closed.
Patchset 2 (id:??) landed as https://crrev.com/f2543789d3b0638e3afed6efaf0a9e8e244a3c42 Cr-Commit-Position: refs/heads/master@{#428540}
Message was sent while issue was closed.
Just an FYI. https://codereview.chromium.org/2455233002/diff/20001/third_party/WebKit/Tool... File third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/base.py (right): https://codereview.chromium.org/2455233002/diff/20001/third_party/WebKit/Tool... third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/base.py:933: runs smoke tests only, or because the I think this patch truncated the comment on accident (I just noticed it while working on this file).
Message was sent while issue was closed.
https://codereview.chromium.org/2455233002/diff/20001/third_party/WebKit/Tool... File third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/base.py (right): https://codereview.chromium.org/2455233002/diff/20001/third_party/WebKit/Tool... third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/base.py:933: runs smoke tests only, or because the On 2016/10/31 at 22:49:29, chenwilliam wrote: > I think this patch truncated the comment on accident (I just noticed it while working on this file). Good catch, thanks! I'll fix this in a follow-up. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
