Issue #1420
closedTestcase random failure
Description
when running testsiute for Nectar once in a while there is one test that fails. We need to figure out if is an issue in the nectar functionality or in the testcase itself.
$ nosetests -vs test/unit/test_threaded_downloader.py
test_build_session (test_threaded_downloader.InstantiationTests) ... ok
test_instantiation (test_threaded_downloader.InstantiationTests) ... ok
test_download_unhandled_exception (test_threaded_downloader.LiveDownloadingTests) ... ::1 - - [16/Dec/2015 14:16:22] "GET / HTTP/1.1" 200 -
<nectar.listener.AggregatingEventListener object at 0x7fec23526a90>
FAIL
test_multiple_downloads (test_threaded_downloader.LiveDownloadingTests) ... ::1 - - [16/Dec/2015 14:16:22] "GET /test/unit/data/100K_file HTTP/1.1" 200 -
::1 - - [16/Dec/2015 14:16:22] "GET /test/unit/data/500K_file HTTP/1.1" 200 -
::1 - - [16/Dec/2015 14:16:22] "GET /test/unit/data/1M_file HTTP/1.1" 200 -
::1 - - [16/Dec/2015 14:16:22] code 404, message File not found
::1 - - [16/Dec/2015 14:16:22] "GET /test/unit/data/notme HTTP/1.1" 404 -
::1 - - [16/Dec/2015 14:16:22] code 404, message File not found
::1 - - [16/Dec/2015 14:16:22] "GET /test/unit/data/notmeeither HTTP/1.1" 404 -
ok
test_single_download_failure (test_threaded_downloader.LiveDownloadingTests) ... ::1 - - [16/Dec/2015 14:16:23] code 404, message File not found
::1 - - [16/Dec/2015 14:16:23] "GET /test/unit/data/idontexistanddontcreateme HTTP/1.1" 404 -
ok
test_single_download_success (test_threaded_downloader.LiveDownloadingTests) ... ::1 - - [16/Dec/2015 14:16:23] "GET /test/unit/data/100K_file HTTP/1.1" 200 -
ok
test_throttling (test_threaded_downloader.LiveDownloadingTests) ... ::1 - - [16/Dec/2015 14:16:24] "GET /test/unit/data/500K_file HTTP/1.1" 200 -
ok
test_calls_fetch (test_threaded_downloader.TestDownloadOne) ... ok
Test that the report state is failed and that the baseurl is not tried again. ... ok
Test that the baseurl is tried again if ConnectionError reason BadStatusLine happened. ... ok
Test that the report state is failed and that the baseurl can be tried again. ... ok
test_normal_content_encoding (test_threaded_downloader.TestFetch) ... ok
test_request_headers (test_threaded_downloader.TestFetch) ... ok
Make sure that whatever headers come back on the response get added ... ok
test_wrong_content_encoding (test_threaded_downloader.TestFetch) ... ok
======================================================================
FAIL: test_download_unhandled_exception (test_threaded_downloader.LiveDownloadingTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/ipanova/pulp_development/nectar/test/unit/test_threaded_downloader.py", line 171, in test_download_unhandled_exception
self.assertEqual(len(lst.succeeded_reports), 0)
AssertionError: 1 != 0
-------------------- >> begin captured logging << --------------------
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): localhost
requests.packages.urllib3.connectionpool: DEBUG: "GET / HTTP/1.1" 200 1402
--------------------- >> end captured logging << ---------------------
----------------------------------------------------------------------
Ran 15 tests in 5.094s
FAILED (failures=1)
I am making this as high priority as this failure prevents us to make a successful build for fedora.
https://kojipkgs.fedoraproject.org//work/tasks/4943/12214943/build.log
Updated by neiljakson over 6 years ago
- File 1637a5084a8b654273e99f9686a5a533.jpg added
Updated by bmbouter about 6 years ago
- File deleted (
1637a5084a8b654273e99f9686a5a533.jpg)
Updated by bmbouter almost 6 years ago
- Status changed from NEW to CLOSED - WONTFIX
Updated by bmbouter almost 6 years ago
Pulp 2 is approaching maintenance mode, and this Pulp 2 ticket is not being actively worked on. As such, it is being closed as WONTFIX. Pulp 2 is still accepting contributions though, so if you want to contribute a fix for this ticket, please reopen or comment on it. If you don't have permissions to reopen this ticket, or you want to discuss an issue, please reach out via the developer mailing list.
Updated by Anonymous over 5 years ago
- File clipboard-201905191548-w4cca.png added
Updated by martinstone over 5 years ago
- File clipboard-201906211613-bhn2t.png added
- File clipboard-201906211613-z9u0f.png added
Updated by ttereshc over 5 years ago
- File deleted (
clipboard-201905191548-w4cca.png)
Updated by ttereshc over 5 years ago
- File deleted (
clipboard-201906211613-z9u0f.png)
Updated by ttereshc over 5 years ago
- File deleted (
clipboard-201906211613-bhn2t.png)