Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 425764 - www-client/chromium-22.0.1201.0 fails several URLFetcher tests
Summary: www-client/chromium-22.0.1201.0 fails several URLFetcher tests
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Chromium Project
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2012-07-11 03:10 UTC by Mike Gilbert
Modified: 2012-09-04 08:38 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Build log (www-client:chromium-22.0.1201.0:20120711-014112.log.xz,384.03 KB, application/x-xz)
2012-07-11 03:10 UTC, Mike Gilbert
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Gilbert gentoo-dev 2012-07-11 03:10:20 UTC
Created attachment 317884 [details]
Build log

[==========] 3240 tests from 222 test cases ran. (152810 ms total)
[  PASSED  ] 3229 tests.
[  FAILED  ] 11 tests, listed below:
[  FAILED  ] URLFetcherDownloadProgressTest.Basic
[  FAILED  ] URLFetcherDownloadProgressCancelTest.CancelWhileProgressReport
[  FAILED  ] URLFetcherProtectTest.ServerUnavailable
[  FAILED  ] URLFetcherProtectTestPassedThrough.ServerUnavailablePropagateResponse
[  FAILED  ] URLFetcherFileTest.SmallGet
[  FAILED  ] URLFetcherFileTest.LargeGet
[  FAILED  ] URLFetcherFileTest.CanTakeOwnershipOfFile
[  FAILED  ] URLFetcherFileTest.OverwriteExistingFile
[  FAILED  ] URLFetcherFileTest.SmallGetToTempFile
[  FAILED  ] URLFetcherFileTest.LargeGetToTempFile
[  FAILED  ] URLFetcherFileTest.CanTakeOwnershipOfTempFile

11 FAILED TESTS

I have filtered URLFetcher* for now.
Comment 1 Mike Gilbert gentoo-dev 2012-07-11 03:19:20 UTC
The failures are all very similar to this.

[ RUN      ] URLFetcherDownloadProgressTest.Basic
HTTP server started on 127.0.0.1:60555...
specified data dir not found: /tmp/portage/www-client/chromium-22.0.1201.0/work/chromium-22.0.1201.0/chrome/test/data exiting...
sending server_data: {"host": "127.0.0.1", "port": 60555} (36 bytes)
----------------------------------------
Exception happened during processing of request from ('127.0.0.1', 51191)
Traceback (most recent call last):
  File "/usr/lib64/python2.7/SocketServer.py", line 284, in _handle_request_noblock
    self.process_request(request, client_address)
  File "/usr/lib64/python2.7/SocketServer.py", line 310, in process_request
    self.finish_request(request, client_address)
  File "/usr/lib64/python2.7/SocketServer.py", line 323, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/tmp/portage/www-client/chromium-22.0.1201.0/work/chromium-22.0.1201.0/net/tools/testserver/testserver.py", line 453, in __init__
    post_handlers, put_handlers)
  File "/tmp/portage/www-client/chromium-22.0.1201.0/work/chromium-22.0.1201.0/net/tools/testserver/testserver.py", line 338, in __init__
    self, request, client_address, socket_server)
  File "/usr/lib64/python2.7/SocketServer.py", line 638, in __init__
    self.handle()
  File "/usr/lib64/python2.7/BaseHTTPServer.py", line 340, in handle
    self.handle_one_request()
  File "/usr/lib64/python2.7/BaseHTTPServer.py", line 328, in handle_one_request
    method()
  File "/tmp/portage/www-client/chromium-22.0.1201.0/work/chromium-22.0.1201.0/net/tools/testserver/testserver.py", line 361, in do_GET
    if handler():
  File "/tmp/portage/www-client/chromium-22.0.1201.0/work/chromium-22.0.1201.0/net/tools/testserver/testserver.py", line 957, in FileHandler
    return self._FileHandlerHelper(prefix)
  File "/tmp/portage/www-client/chromium-22.0.1201.0/work/chromium-22.0.1201.0/net/tools/testserver/testserver.py", line 993, in _FileHandlerHelper
    file_path = os.path.join(self.server.data_dir, *entries)
  File "/usr/lib64/python2.7/posixpath.py", line 68, in join
    elif path == '' or path.endswith('/'):
AttributeError: 'NoneType' object has no attribute 'endswith'
----------------------------------------
net/url_request/url_fetcher_impl_unittest.cc:144: Failure
Value of: source->GetStatus().is_success()
  Actual: false
Expected: true
net/url_request/url_fetcher_impl_unittest.cc:145: Failure
Value of: source->GetResponseCode()
  Actual: -1
Expected: 200
net/url_request/url_fetcher_impl_unittest.cc:149: Failure
Value of: data.empty()
  Actual: true
Expected: false
[  FAILED  ] URLFetcherDownloadProgressTest.Basic (264 ms)
[----------] 1 test from URLFetcherDownloadProgressTest (264 ms total)
Comment 2 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2012-07-31 12:00:00 UTC
(In reply to comment #1)
> The failures are all very similar to this.
> 
> [ RUN      ] URLFetcherDownloadProgressTest.Basic
> HTTP server started on 127.0.0.1:60555...
> specified data dir not found:
> /tmp/portage/www-client/chromium-22.0.1201.0/work/chromium-22.0.1201.0/
> chrome/test/data exiting...

chrome/test/data is removed from the tarballs we're using. I think we should disable those tests, with a link to this bug and a short explanation about chrome/test/data . I think I won't be committing anything soon, so feel totally free to do that.
Comment 3 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2012-09-04 08:38:25 UTC
Tests are excluded now. The bug can be closed, we can revisit this after we have separate tarballs with chrome/test/data.