Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(541)

Issue 2409903002: When rebaselining testharness tests with new all-PASS results, remove the baseline. (Closed)

Created:
4 years, 2 months ago by qyearsley
Modified:
4 years, 2 months ago
Reviewers:
Dirk Pranke, wkorman
CC:
blink-reviews, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

When rebaselining testharness tests with new all-PASS results, remove the baseline. For testharness.js tests where the result just contains PASS lines with no console errors or warnings, our way of representing that is to have no baseline (no -expected.txt file). So, when rebaselining, the proper "baseline" for tests like this is to have no baseline. Example case for how I think this might work: Let's imagine there's a testharness test which fails on mac and linux, but passes on windows. The existing baselines may be: LayoutTests/platform/mac/foo/bar-expected.txt LayoutTests/platform/linux/foo/bar-expected.txt If we rebaseline and it now passes on linux, then I imagine that the copy-existing-baselines baselines step would copy linux/foo/bar-expected.txt to linux-precise/, and the baselines in both linux/ and linux-precise/ would be deleted on the rebaseline-test step. Then, we'd be left with just LayoutTests/platform/mac/foo/bar-expected.txt. Although I haven't really tested out this whole flow yet. This CL also extracts a function import is_all_pass_testharness_result from webkitpy.layout_tests.models.testharness_results to avoid duplicating code. BUG=654030 Committed: https://crrev.com/0bb11a3670a64f56774881350f8f4b0035ba2eeb Cr-Commit-Position: refs/heads/master@{#424509}

Patch Set 1 #

Patch Set 2 : Revert unrelated changes in rebaseline_unittest #

Patch Set 3 : Undo docstrings that no longer apply #

Messages

Total messages: 16 (8 generated)
qyearsley
4 years, 2 months ago (2016-10-11 00:24:29 UTC) #2
Dirk Pranke
lgtm, but you have some typos in your CL description: the second paragraph ends abruptly, ...
4 years, 2 months ago (2016-10-11 00:30:50 UTC) #3
qyearsley
On 2016/10/11 at 00:30:50, dpranke wrote: > lgtm, but you have some typos in your ...
4 years, 2 months ago (2016-10-11 03:54:04 UTC) #6
Dirk Pranke
On 2016/10/11 03:54:04, qyearsley wrote: > On 2016/10/11 at 00:30:50, dpranke wrote: > > lgtm, ...
4 years, 2 months ago (2016-10-11 18:18:12 UTC) #9
qyearsley
On 2016/10/11 at 18:18:12, dpranke wrote: > On 2016/10/11 03:54:04, qyearsley wrote: > > On ...
4 years, 2 months ago (2016-10-11 18:48:14 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2409903002/40001
4 years, 2 months ago (2016-10-11 18:48:37 UTC) #13
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 2 months ago (2016-10-11 19:21:32 UTC) #14
commit-bot: I haz the power
4 years, 2 months ago (2016-10-11 19:23:07 UTC) #16
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/0bb11a3670a64f56774881350f8f4b0035ba2eeb
Cr-Commit-Position: refs/heads/master@{#424509}

Powered by Google App Engine
This is Rietveld 408576698