Summary: | new-run-webkit-tests output gets confused when logging | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Adam Barth <abarth> | ||||||||
Component: | New Bugs | Assignee: | Dirk Pranke <dpranke> | ||||||||
Status: | RESOLVED FIXED | ||||||||||
Severity: | Normal | CC: | abarth, ap, dpranke, eric, ojan, webkit.review.bot | ||||||||
Priority: | P2 | ||||||||||
Version: | 528+ (Nightly build) | ||||||||||
Hardware: | Unspecified | ||||||||||
OS: | Unspecified | ||||||||||
Bug Depends on: | |||||||||||
Bug Blocks: | 64491 | ||||||||||
Attachments: |
|
Description
Adam Barth
2011-07-01 01:10:56 PDT
Created attachment 99443 [details]
Patch
Comment on attachment 99443 [details]
Patch
OK. How do we test this?
> OK. How do we test this?
Dunno. It actually fails in a different way. :(
There are actually unit tests for this module (metered_stream_unittest.py). You can at least update them with what the expected behavior would be. I'm not surprised if it is failing in a different way, because I remember having to play with the ordering once or twice to get it to even mostly work. One solution would be to route all logging from the workers to the master so that it could coordinate the cursor state. I looked into doing that once (when we were getting duplicate messages in the log from the workers) but only got about halfway through before I realized the problem was actually that there were two loggers running in that case. Another (presumably much less portable) option would be to push the MeteredStream's state into some form of shared memory. Comment on attachment 99443 [details]
Patch
Logging in NRWT is way too complicated. I'd prefer to just do something simpler.
*** Bug 67164 has been marked as a duplicate of this bug. *** Created attachment 147733 [details]
Patch
Created attachment 147902 [details]
Patch
Comment on attachment 147902 [details]
Patch
I don't really understand python logging enough to really understanding this patch. Are you looking for a real review or just a rubber stamp?
Comment on attachment 147902 [details]
Patch
dpranke told me in #webkit that he's just look for an rs here, which I'm happy to provide.
Committed r120619: <http://trac.webkit.org/changeset/120619> |