Bug 101976 - garden-o-matic doesn't know about reftests
Summary: garden-o-matic doesn't know about reftests
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Dirk Pranke
URL:
Keywords:
: 90765 104713 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-11-12 13:38 PST by Dirk Pranke
Modified: 2012-12-20 19:12 PST (History)
8 users (show)

See Also:


Attachments
Patch (7.46 KB, patch)
2012-12-11 17:24 PST, Dirk Pranke
no flags Details | Formatted Diff | Diff
Patch (7.70 KB, patch)
2012-12-13 16:28 PST, Dirk Pranke
eric: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Pranke 2012-11-12 13:38:11 PST
So, if a reftest fails it shows up as an ImageFailure, and will let you happily rebaseline it. However, NRWT will notice that the test is a reftest, log a warning, and ignore the baselines.

I believe the information about whether the test is or isn't a reftest is in results.json, so we probably just need to make the UI aware of it. If not, it certainly would be easy to add.
Comment 1 Ojan Vafai 2012-11-12 16:49:26 PST
In the examine view, it doesn't show you the rebaseline button for reftest. If it does, it's a regression.

On the main page, it's less clear what to do since multiple tests are grouped together. I suppose we shouldn't show the rebaseline button there either?

Also, webkit-patch can check if something is a reftest. It really should never rebaseline reftests. Fixing garden-o-matic is nice, but "webkit-patch rebaseline" should also know about reftests.
Comment 2 Dirk Pranke 2012-11-12 16:58:08 PST
I definitely get the rebaseline button when looking at the examine view under expected failures, so maybe it's just a regression.

As you say, it's really a bug if anything tries to rebaseline a reftest, not just garden-o-matic, but it's most important to fix the UI first, IMO.
Comment 3 Dirk Pranke 2012-11-12 16:58:46 PST
i.e., I think garden-o-matic, in addition to *not* showing the rebaseline button, should probably show something indicating that the test is a reftest.
Comment 4 Ojan Vafai 2012-11-12 17:01:32 PST
Yeah. I don't disagree with any of that.
Comment 5 Dirk Pranke 2012-12-11 13:43:52 PST
*** Bug 104713 has been marked as a duplicate of this bug. ***
Comment 6 Dirk Pranke 2012-12-11 17:24:23 PST
Created attachment 178929 [details]
Patch
Comment 7 Dirk Pranke 2012-12-11 17:25:08 PST
please give me feedback on what good js style would be for this; I don't know the idioms, but this looks pretty crufty.
Comment 8 Ojan Vafai 2012-12-11 19:11:14 PST
Comment on attachment 178929 [details]
Patch

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

> Tools/BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/scripts/controllers.js:44
> +        if (isAnyReftest(testName, resultsByTest)) {
> +            statusView.addMessage(id, testName + ' is a ref test, skipping');
> +        } else {

Nit: single-line if shouldn't have curlies.

> Tools/BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/scripts/controllers.js:60
> +    } else {
> +        statusView.addFinalMessage(id, 'No tests left to rebaseline!')
> +    }

Nit: single-line else shouldn't have curlies.

Non-nit: maybe make this text more explict? 'No non-reftests to rebaseline.'

> Tools/BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/scripts/controllers.js:63
> +// FIXME: This is duplicated from ui/results.js :(.

ui.results.js is probably the wrong place for it. Maybe it should just be in results.js (i.e. not in the ui directory) as results.isAnyReftest. Then this code and ui.results.js can both call it? I dunno. I don't have the intended architecture of this stuff fresh in my brain, so not sure if that makes sense.

This is fine for now w the FIXME.
Comment 9 Dirk Pranke 2012-12-11 19:39:25 PST
Committed r137407: <http://trac.webkit.org/changeset/137407>
Comment 10 Dirk Pranke 2012-12-13 15:29:46 PST
Change reverted in http://trac.webkit.org/changeset/137664 ... this totally busted garden-o-matic (the rebaseline button was broken).
Comment 11 Dirk Pranke 2012-12-13 16:28:57 PST
Created attachment 179371 [details]
Patch
Comment 12 Dirk Pranke 2012-12-13 16:29:41 PST
Eric or Dimitri, can you take a look in both Adam and Ojan's absence?
Comment 13 Dirk Pranke 2012-12-13 20:09:21 PST
(whoops, r+'ed the wrong patch by accident).
Comment 14 Eric Seidel (no email) 2012-12-13 20:09:54 PST
Comment on attachment 179371 [details]
Patch

I'm happy to rs=me, but you probably want someone more qualified to look at this, even if post-facto.
Comment 15 Dirk Pranke 2012-12-14 15:18:00 PST
Committed r137780: <http://trac.webkit.org/changeset/137780>
Comment 16 Tony Chang 2012-12-20 19:12:38 PST
*** Bug 90765 has been marked as a duplicate of this bug. ***