WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
65986
[Qt] autotests shouldn't require config.h in the style check
https://bugs.webkit.org/show_bug.cgi?id=65986
Summary
[Qt] autotests shouldn't require config.h in the style check
Pierre Rossi
Reported
2011-08-10 08:07:26 PDT
It seems for the most part, our autotests fit pretty wel in the category "consumers of the WebKit API", so they should probably undergo the appropriate style checks.
Attachments
Patch
(1.67 KB, patch)
2011-08-10 08:16 PDT
,
Pierre Rossi
no flags
Details
Formatted Diff
Diff
Patch
(2.05 KB, patch)
2011-08-11 03:05 PDT
,
Pierre Rossi
no flags
Details
Formatted Diff
Diff
Patch
(3.07 KB, patch)
2011-08-11 06:31 PDT
,
Pierre Rossi
no flags
Details
Formatted Diff
Diff
Patch
(3.32 KB, patch)
2011-08-11 11:02 PDT
,
Pierre Rossi
kling
: review+
pierre.rossi
: commit-queue-
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Pierre Rossi
Comment 1
2011-08-10 08:16:36 PDT
Created
attachment 103494
[details]
Patch
Robert Hogan
Comment 2
2011-08-10 13:49:42 PDT
Comment on
attachment 103494
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=103494&action=review
> Tools/ChangeLog:7 > + This essentially prevents Qt tests from being style-checked > + against the same rules that apply to WebCore (e.g. config.h).
I think it's better to have them style-checked myself.
Pierre Rossi
Comment 3
2011-08-11 01:24:16 PDT
(In reply to
comment #2
)
> (From update of
attachment 103494
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=103494&action=review
> > > Tools/ChangeLog:7 > > + This essentially prevents Qt tests from being style-checked > > + against the same rules that apply to WebCore (e.g. config.h). > > I think it's better to have them style-checked myself.
Hi Robert, I'm not sure to follow you. The point of this change is to allow things like what Benjamin suggested in
https://bugs.webkit.org/show_bug.cgi?id=65237
In the case of these tests (apart for the special case of mime type sniffing), we are in the position of being consumers of the API provided by QtWebKit, so it seems to me that rules that enforce including config.h don't belong here. Maybe I should rephrase the ChangeLog message.
Pierre Rossi
Comment 4
2011-08-11 03:05:00 PDT
Created
attachment 103596
[details]
Patch
Benjamin Poulain
Comment 5
2011-08-11 04:03:04 PDT
Comment on
attachment 103596
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=103596&action=review
You must also modify the tests accordingly. And you should add a new test for Source/WebKit/qt/tests/MIMESniffing.
> Tools/Scripts/webkitpy/style/checker.py:137 > + ([# The MIMESniffing test tests the code directly rather than the API, > + # let's enable the include check for this one. > + "Source/WebKit/qt/tests/MIMESniffing"], > + ["+build/include"]),
This list is order sensitive. Only the first path substring match is used. -> Source/WebKit/qt/tests/MIMESniffing will never match
Pierre Rossi
Comment 6
2011-08-11 06:31:23 PDT
Created
attachment 103614
[details]
Patch Benjamin: oops ! looks like I didn't read the comment up there properly.
Benjamin Poulain
Comment 7
2011-08-11 07:14:59 PDT
Comment on
attachment 103614
[details]
Patch Good idea for a patch. I am glad those warning will disappear.
WebKit Review Bot
Comment 8
2011-08-11 07:40:42 PDT
Comment on
attachment 103614
[details]
Patch Clearing flags on attachment: 103614 Committed
r92847
: <
http://trac.webkit.org/changeset/92847
>
WebKit Review Bot
Comment 9
2011-08-11 07:40:46 PDT
All reviewed patches have been landed. Closing bug.
Dimitri Glazkov (Google)
Comment 10
2011-08-11 09:45:04 PDT
Reverted
r92847
for reason: Broke check-webkit-style Committed
r92857
: <
http://trac.webkit.org/changeset/92857
>
Dimitri Glazkov (Google)
Comment 11
2011-08-11 09:45:53 PDT
Sorry guys, this broke the style elf, which is kind of a big deal -- I rolled it out.
Pierre Rossi
Comment 12
2011-08-11 11:02:09 PDT
Created
attachment 103646
[details]
Patch Sorry again about that guys. Since Benjamin mentioned the warnings happened in other places, I figured I'd add the WebKit2 qt tests in this.
Robert Hogan
Comment 13
2011-08-11 11:41:18 PDT
(In reply to
comment #3
)
> Hi Robert, I'm not sure to follow you. The point of this change is to allow things like what Benjamin suggested in
https://bugs.webkit.org/show_bug.cgi?id=65237
In the case of these tests (apart for the special case of mime type sniffing), we are in the position of being consumers of the API provided by QtWebKit, so it seems to me that rules that enforce including config.h don't belong here. Maybe I should rephrase the ChangeLog message.
What I meant was: "The style check keeps the code clean, which is a good thing." If noise like the warnings about config.h are annoying, maybe we should target those instead.
Andreas Kling
Comment 14
2011-08-18 05:36:06 PDT
Comment on
attachment 103646
[details]
Patch rs=me
Pierre Rossi
Comment 15
2011-08-18 05:58:50 PDT
Comment on
attachment 103646
[details]
Patch Let's just hold it for now. I still need to check if that's not messing with alphabetical sorting thingy that was brought up earlier.
Csaba Osztrogonác
Comment 16
2012-06-26 07:47:32 PDT
Is this bug still valid?
Pierre Rossi
Comment 17
2012-06-27 10:03:00 PDT
(In reply to
comment #16
)
> Is this bug still valid?
Yes, it still is AFAICT, but it's more of a "nice to have" kind of thing though, and I never got back to it. I think I remember the concern raised by Robert turned out to be right and a rule specific to config.h should be introduced and only that should be disabled for autotests.
Jocelyn Turcotte
Comment 18
2014-02-03 03:18:33 PST
=== Bulk closing of Qt bugs === If you believe that this bug report is still relevant for a non-Qt port of webkit.org, please re-open it and remove [Qt] from the summary. If you believe that this is still an important QtWebKit bug, please fill a new report at
https://bugreports.qt-project.org
and add a link to this issue. See
http://qt-project.org/wiki/ReportingBugsInQt
for additional guidelines.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug