Bug 97295 - check-webkit-style is checking all the files, not just my changes
Summary: check-webkit-style is checking all the files, not just my changes
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-20 22:58 PDT by Tim Horton
Modified: 2012-09-21 16:49 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Horton 2012-09-20 22:58:29 PDT
I have local changes:

> git status
# On branch WKTRTiledDrawing
#
# Changes not staged for commit:
#   (use "git add <file>..." to update what will be committed)
#   (use "git checkout -- <file>..." to discard changes in working directory)
#
#	modified:   Tools/ChangeLog
#	modified:   Tools/WebKitTestRunner/TestController.cpp
#	modified:   Tools/WebKitTestRunner/TestController.h
#	modified:   Tools/WebKitTestRunner/mac/PlatformWebViewMac.mm

But check-webkit-style is going nuts checking all the files:

LayoutTests/platform/efl/tables/mozilla/bugs/bug13105-expected.png:0:  Have to enable auto props in the subversion config file (/Users/hortont/.subversion/config "enable-auto-props = yes"). Have to set the svn:mime-type in the subversion config file (/Users/hortont/.subversion/config "*.png = svn:mime-type=image/png").  [image/png] [5]
WARNING: Using the chromium port without having the downstream skia_test_expectations.txt file checked out. Expectations related things might be wonky.
Source/WebKit2/UIProcess/API/gtk/tests/TestWebKitSettings.cpp:34:  Alphabetical sorting problem.  [build/include_order] [4]
Source/WebCore/inspector/InjectedScriptCanvasModule.h:59:  The parameter type should use PassRefPtr instead of RefPtr.  [readability/pass_ptr] [5]

And so on and so forth.

This is definitely not how it used to work. (unless I'm missing something
Comment 1 Adam Barth 2012-09-21 09:06:12 PDT
What is the branch structure of your repository?  If you've done a non-fast-forward merge of origin/master, then we might not be computing the diff you expect.
Comment 2 Tim Horton 2012-09-21 11:48:51 PDT
(In reply to comment #1)
> What is the branch structure of your repository?  If you've done a non-fast-forward merge of origin/master, then we might not be computing the diff you expect.

That seems a bit odd, I'd expect check-webkit-style to check the same set of files prepare-ChangeLog will write a changelog about...
Comment 3 Adam Barth 2012-09-21 12:01:45 PDT
That's more or less what it used to do, but there was a discussion on webkit-dev a while back where folks asked for different semantics.
Comment 4 Tim Horton 2012-09-21 12:02:29 PDT
Okiedokie.
Comment 5 Dirk Pranke 2012-09-21 12:13:02 PDT
hm. don't remember that discussion. I certainly wouldn't expect it to be trying to check baselines or expectations files if they weren't changed ...
Comment 6 Adam Barth 2012-09-21 16:43:48 PDT
It's not checking the diff since HEAD it's checking the diff against origin/master (or whatever I really mean in git-speak).
Comment 7 Dirk Pranke 2012-09-21 16:49:52 PDT
(In reply to comment #6)
> It's not checking the diff since HEAD it's checking the diff against origin/master (or whatever I really mean in git-speak).

Oh. That seems more reasonable :).