Project

Profile

Help

Issue #1420

Testcase random failure

Added by ipanova@redhat.com almost 5 years ago. Updated 8 months ago.

Status:
CLOSED - WONTFIX
Priority:
High
Assignee:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version - Nectar:
master
Platform Release:
Target Release - Nectar:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

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

History

#1 Updated by mhrivnak almost 5 years ago

  • Triaged changed from No to Yes

#2 Updated by neiljakson about 2 years ago

  • File 1637a5084a8b654273e99f9686a5a533.jpg added

#3 Updated by bmbouter almost 2 years ago

  • File deleted (1637a5084a8b654273e99f9686a5a533.jpg)

#4 Updated by bmbouter over 1 year ago

  • Status changed from NEW to CLOSED - WONTFIX

#5 Updated by bmbouter over 1 year 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.

#6 Updated by bmbouter over 1 year ago

  • Tags Pulp 2 added

#7 Updated by Anonymous over 1 year ago

  • File clipboard-201905191548-w4cca.png added

#8 Updated by martinstone over 1 year ago

  • File clipboard-201906211613-bhn2t.png added
  • File clipboard-201906211613-z9u0f.png added

#9 Updated by ttereshc over 1 year ago

  • File deleted (clipboard-201905191548-w4cca.png)

#10 Updated by ttereshc over 1 year ago

  • File deleted (clipboard-201906211613-z9u0f.png)

#11 Updated by ttereshc over 1 year ago

  • File deleted (clipboard-201906211613-bhn2t.png)

Please register to edit this issue

Also available in: Atom PDF