RESOLVED FIXED 97143
convert apple mac TestExpectations files to the new syntax
https://bugs.webkit.org/show_bug.cgi?id=97143
Summary convert apple mac TestExpectations files to the new syntax
Dirk Pranke
Reported 2012-09-19 16:16:10 PDT
convert apple mac TestExpectations files to the new syntax
Attachments
Patch (48.13 KB, patch)
2012-09-19 16:16 PDT, Dirk Pranke
no flags
Dirk Pranke
Comment 1 2012-09-19 16:16:48 PDT
Dirk Pranke
Comment 2 2012-09-19 16:17:15 PDT
Jessie Berlin
Comment 3 2012-09-20 09:09:59 PDT
Comment on attachment 164797 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=164797&action=review > LayoutTests/platform/mac/TestExpectations:175 > +webkit.org/b/69210 fast/encoding/utf-16-big-endian.html [ Failure Skip ] http://trac.webkit.org/wiki/TestExpectations says that "WontFix and Skip must be the only expectation and cannot be specified alongside Crash or anything else; since the tests will be skipped, the other expectations will likely become stale." Is that not actually true? Why specify [ Failure Skip ] here?
Dirk Pranke
Comment 4 2012-09-20 09:19:52 PDT
(In reply to comment #3) > (From update of attachment 164797 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=164797&action=review > > > LayoutTests/platform/mac/TestExpectations:175 > > +webkit.org/b/69210 fast/encoding/utf-16-big-endian.html [ Failure Skip ] > > http://trac.webkit.org/wiki/TestExpectations says that "WontFix and Skip must be the only expectation and cannot be specified alongside Crash or anything else; since the tests will be skipped, the other expectations will likely become stale." > > Is that not actually true? Why specify [ Failure Skip ] here? At the moment, that's not actually true (and a bug). Making them be the only expectation was a relatively late design change that I forgot to implement before the conversion :(. I'll be fixing that today.
Dirk Pranke
Comment 5 2012-09-20 09:20:50 PDT
Note that Skip (and WontFix) should be overriding the other expectations, so this bug shouldn't have any effect at runtime, just be confusing and misleading.
Alexey Proskuryakov
Comment 6 2012-09-20 10:06:25 PDT
> +webkit.org/b/69210 fast/encoding/utf-16-big-endian.html [ Failure Skip ] I don't see how this bug is related (and there is something fishy going on, as the test passes for me in WK1 locally, but not in WK2). Can one have TestExpectations entries without bugs? I don't agree that every expectation needs a bug, a short inline comment can be perfectly enough for many,
Ojan Vafai
Comment 7 2012-09-20 10:13:32 PDT
(In reply to comment #6) > > +webkit.org/b/69210 fast/encoding/utf-16-big-endian.html [ Failure Skip ] > > I don't see how this bug is related (and there is something fishy going on, as the test passes for me in WK1 locally, but not in WK2). Looks like whoever added that line put the wrong bug number maybe? > Can one have TestExpectations entries without bugs? I don't agree that every expectation needs a bug, a short inline comment can be perfectly enough for many, Currently it's a linter error if you don't have a bug or Bug(username) for each line. We've found that, in practice it leads to much better thoroughness when people add lines. We did discuss it in one of the previous webkit-dev threads and the only voice that chimed in was Maciej saying that he liked the idea of keeping bug entries required. In either case, none of that is related to this patch. Feel free to bring it up on webkit-dev if you feel strongly about it.
Dirk Pranke
Comment 8 2012-09-20 10:59:15 PDT
(In reply to comment #6) > Can one have TestExpectations entries without bugs? I don't agree that every expectation needs a bug, a short inline comment can be perfectly enough for many, Yes, bugs are not required, but they are encouraged, especially for anything that isn't WontFix. I agree that comments are enough for some situations.
Dirk Pranke
Comment 9 2012-09-20 14:13:03 PDT
(In reply to comment #7) > Currently it's a linter error if you don't have a bug or Bug(username) for each line. Technically we don't complain if the bug is marked WontFix, but do otherwise.
Alexey Proskuryakov
Comment 10 2012-09-20 14:17:43 PDT
What's a "linter error"? Will my world fall apart if I add a test expectation without a bug link?
Ryosuke Niwa
Comment 11 2012-09-20 14:29:49 PDT
(In reply to comment #10) > What's a "linter error"? Will my world fall apart if I add a test expectation without a bug link? It doesn't. It'll just turn a bot on build.chromium.org red so it's likely that someone will come in and file a bug for it. I support making it optional.
Dirk Pranke
Comment 12 2012-09-20 14:47:20 PDT
(In reply to comment #10) > What's a "linter error"? Will my world fall apart if I add a test expectation without a bug link? rwt --lint-test-files and check-webkit-style will issue a warning. The chromium.org canary bots also have a 'webkit_lint' build step that runs rwt --lint-test-files , so that step will fail as well (only if the line is in the chromium files, though). Now that everyone is using the TestExpectations files, we should probably add that step to the bots.
Simon Fraser (smfr)
Comment 13 2012-09-20 14:51:03 PDT
(In reply to comment #11) > (In reply to comment #10) > > What's a "linter error"? Will my world fall apart if I add a test expectation without a bug link? > > It doesn't. It'll just turn a bot on build.chromium.org red so it's likely that someone will come in and file a bug for it. I support making it optional. What's the point of just turning a Chromium bot red? Non-Google people will never see them.
Dirk Pranke
Comment 14 2012-09-20 14:56:06 PDT
(In reply to comment #13) > (In reply to comment #11) > > (In reply to comment #10) > > > What's a "linter error"? Will my world fall apart if I add a test expectation without a bug link? > > > > It doesn't. It'll just turn a bot on build.chromium.org red so it's likely that someone will come in and file a bug for it. I support making it optional. > > What's the point of just turning a Chromium bot red? Non-Google people will never see them. See comment #12: the step checks the files that the bot actually cares about, so if someone screws up platform/mac/TestExpectations, the chromium bot doesn't turn red. I would imagine that if we add this step to other bots they would work the same way. There's not much of a performance hit either way, so we could make every bot check every port but I'm not sure that's justified.
Ryosuke Niwa
Comment 15 2012-09-20 14:59:15 PDT
(In reply to comment #14) > See comment #12: the step checks the files that the bot actually cares about, so if someone screws up platform/mac/TestExpectations, the chromium bot doesn't turn red. I would imagine that if we add this step to other bots they would work the same way. > > There's not much of a performance hit either way, so we could make every bot check every port but I'm not sure that's justified. Really? I thought we decided to lint all platforms' TestExpectations?
Dirk Pranke
Comment 16 2012-09-20 15:21:40 PDT
(In reply to comment #15) > (In reply to comment #14) > > See comment #12: the step checks the files that the bot actually cares about, so if someone screws up platform/mac/TestExpectations, the chromium bot doesn't turn red. I would imagine that if we add this step to other bots they would work the same way. > > > > There's not much of a performance hit either way, so we could make every bot check every port but I'm not sure that's justified. > > Really? I thought we decided to lint all platforms' TestExpectations? Nope. If you run rwt --lint-test-files you'll see a whole bunch of errors from the other ports about duplicates between the TestExpectations and Skipped files, so this step would always be red on our machine. Once we remove the Skipped files and people are more consistently dealing with just a single set of sources, it might make more sense to lint all of them, but even then I'm not convinced that another ports' failures should turn a port's bots red.
Note You need to log in before you can comment on or make changes to this bug.