WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
52002
commit-queue mentions "Text diff mismatch" 4 times instead of once per failure
https://bugs.webkit.org/show_bug.cgi?id=52002
Summary
commit-queue mentions "Text diff mismatch" 4 times instead of once per failure
Eric Seidel (no email)
Reported
2011-01-06 12:04:46 PST
commit-queue mentions "Text diff mismatch" 4 times instead of once per failure
Attachments
Patch
(3.67 KB, patch)
2011-01-06 12:06 PST
,
Eric Seidel (no email)
no flags
Details
Formatted Diff
Diff
Patch
(4.17 KB, patch)
2011-01-06 12:54 PST
,
Eric Seidel (no email)
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Eric Seidel (no email)
Comment 1
2011-01-06 12:06:30 PST
Created
attachment 78143
[details]
Patch
Mihai Parparita
Comment 2
2011-01-06 12:21:30 PST
Comment on
attachment 78143
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=78143&action=review
> Tools/Scripts/webkitpy/layout_tests/layout_package/test_failures.py:88 > + # FIXME: We don't actually use TestFailure objects as instances,
You mean that we don't use TestFailure directly, but instead use subclaseses like FailureCrash? Perhaps the comment could be more explicit.
> Tools/Scripts/webkitpy/layout_tests/layout_package/test_failures.py:97 > + # An attempt to make sure that __class__ and self don't hash to the same value.
Though it may not matter in practice, it seems like the implementation of this should just be hash(self.__class__.__name__), since you never compare self.__class__ directly in __eq__. (roughly, you should only hash things that you compare in __eq__, otherwise they'll end up in different buckets even though they would pass the equality test).
Eric Seidel (no email)
Comment 3
2011-01-06 12:29:12 PST
Comment on
attachment 78143
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=78143&action=review
>> Tools/Scripts/webkitpy/layout_tests/layout_package/test_failures.py:88
> > You mean that we don't use TestFailure directly, but instead use subclaseses like FailureCrash? Perhaps the comment could be more explicit.
We basically always pass around FooFailure() instead of FooFailure (the class) directly, yet we *never* actually store any state on the instances. I want to re-write this module so that it works more like tool/steps does. Where you use it by importing the module, and then reference these as test_failures.Crash and don't ever bother instantiting one. Basically like a big enum.
>> Tools/Scripts/webkitpy/layout_tests/layout_package/test_failures.py:97
> > Though it may not matter in practice, it seems like the implementation of this should just be hash(self.__class__.__name__), since you never compare self.__class__ directly in __eq__. (roughly, you should only hash things that you compare in __eq__, otherwise they'll end up in different buckets even though they would pass the equality test).
I was trying to avoid having hash(FooFailure) == hash("FooFailure") isn't __class__ as singleton? So it should always have the same hash? I could alternatively just do hash(sef.__class__.__name__) + 5, to avoid it being the same hash as "FooFailure"
Eric Seidel (no email)
Comment 4
2011-01-06 12:54:00 PST
Created
attachment 78152
[details]
Patch
WebKit Commit Bot
Comment 5
2011-01-06 13:30:30 PST
Comment on
attachment 78152
[details]
Patch Clearing flags on attachment: 78152 Committed
r75191
: <
http://trac.webkit.org/changeset/75191
>
WebKit Commit Bot
Comment 6
2011-01-06 13:30:38 PST
All reviewed patches have been landed. Closing bug.
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