Bug 153181 - Modern IDB: .js test files should not log database names
Summary: Modern IDB: .js test files should not log database names
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Brady Eidson
URL:
Keywords:
Depends on:
Blocks: 149117 153179
  Show dependency treegraph
 
Reported: 2016-01-15 21:47 PST by Brady Eidson
Modified: 2016-01-18 14:14 PST (History)
6 users (show)

See Also:


Attachments
Patch v1 (143.18 KB, patch)
2016-01-15 22:05 PST, Brady Eidson
achristensen: review+
buildbot: commit-queue-
Details | Formatted Diff | Diff
Archive of layout-test-results from ews107 for mac-yosemite-wk2 (894.77 KB, application/zip)
2016-01-15 22:52 PST, Build Bot
no flags Details
Archive of layout-test-results from ews101 for mac-yosemite (747.53 KB, application/zip)
2016-01-15 22:54 PST, Build Bot
no flags Details
Archive of layout-test-results from ews116 for mac-yosemite (791.83 KB, application/zip)
2016-01-15 23:00 PST, Build Bot
no flags Details
Patch for EWS then landing (170.65 KB, patch)
2016-01-16 21:59 PST, Brady Eidson
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Brady Eidson 2016-01-15 21:47:47 PST
Modern IDB: .js test files should not log database names

This is because the database name will be different based on if the html for the test changes filename, which will happen in https://bugs.webkit.org/show_bug.cgi?id=153179
Comment 1 Brady Eidson 2016-01-15 21:55:51 PST
This will be one simple change to a shared js file, followed by lots of updated test results.
Comment 2 Brady Eidson 2016-01-15 22:05:50 PST
Created attachment 269151 [details]
Patch v1
Comment 3 Alex Christensen 2016-01-15 22:24:04 PST
Comment on attachment 269151 [details]
Patch v1

But if we're going to have two identical copies of all the w3c tests, why don't we do the same with these?  r=me if not.

These include some imported mozilla tests. Are there more mozilla tests, or will we ever re-import those?
Comment 4 Build Bot 2016-01-15 22:52:44 PST
Comment on attachment 269151 [details]
Patch v1

Attachment 269151 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.webkit.org/results/697352

Number of test failures exceeded the failure limit.
Comment 5 Build Bot 2016-01-15 22:52:46 PST
Created attachment 269152 [details]
Archive of layout-test-results from ews107 for mac-yosemite-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews107  Port: mac-yosemite-wk2  Platform: Mac OS X 10.10.5
Comment 6 Build Bot 2016-01-15 22:54:17 PST
Comment on attachment 269151 [details]
Patch v1

Attachment 269151 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.webkit.org/results/697354

New failing tests:
storage/indexeddb/request-result-cache.html
Comment 7 Build Bot 2016-01-15 22:54:20 PST
Created attachment 269153 [details]
Archive of layout-test-results from ews101 for mac-yosemite

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews101  Port: mac-yosemite  Platform: Mac OS X 10.10.5
Comment 8 Build Bot 2016-01-15 23:00:27 PST
Comment on attachment 269151 [details]
Patch v1

Attachment 269151 [details] did not pass mac-debug-ews (mac):
Output: http://webkit-queues.webkit.org/results/697346

New failing tests:
storage/indexeddb/request-result-cache.html
Comment 9 Build Bot 2016-01-15 23:00:29 PST
Created attachment 269154 [details]
Archive of layout-test-results from ews116 for mac-yosemite

The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews116  Port: mac-yosemite  Platform: Mac OS X 10.10.5
Comment 10 Alex Christensen 2016-01-16 11:46:52 PST
And we will need more test expectations for the private tests anyways. Couldn't those just have a different name in the expectations?
Comment 11 Brady Eidson 2016-01-16 19:19:53 PST
(In reply to comment #3)
> Comment on attachment 269151 [details]
> Patch v1
> 
> But if we're going to have two identical copies of all the w3c tests, why
> don't we do the same with these?  r=me if not.

Because having the two identical copies of the w3c tests is *not* ideal.

It would be ideal if every single test had a common js file with two thin html wrappers.

That way any edits to the tests involve touching one js file and not two html files.

That's what this patch is moving towards.

> These include some imported mozilla tests. Are there more mozilla tests, or
> will we ever re-import those?

These were "imported" a long time ago old style; manually and piecemeal.

If we ever import any other tests they'll go into a fresh imported/* directory.

(In reply to comment #10)
> And we will need more test expectations for the private tests anyways.
> Couldn't those just have a different name in the expectations?

It's a more full proof "import" to the private copy when the expectations file can just copy over with no edits.

The DB name doesn't add anything, anyways - I see no reason to argue for its preservation.
Comment 12 Alex Christensen 2016-01-16 20:23:57 PST
Ok, sounds good
Comment 13 Brady Eidson 2016-01-16 21:59:22 PST
Created attachment 269186 [details]
Patch for EWS then landing
Comment 14 WebKit Commit Bot 2016-01-17 00:13:43 PST
Comment on attachment 269186 [details]
Patch for EWS then landing

Clearing flags on attachment: 269186

Committed r195181: <http://trac.webkit.org/changeset/195181>