Project

Profile

Help

Issue #1420

closed

Testcase random failure

Added by ipanova@redhat.com over 8 years ago. Updated about 4 years 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

Actions #1

Updated by mhrivnak over 8 years ago

  • Triaged changed from No to Yes
Actions #2

Updated by neiljakson over 5 years ago

  • File 1637a5084a8b654273e99f9686a5a533.jpg added
Actions #3

Updated by bmbouter over 5 years ago

  • File deleted (1637a5084a8b654273e99f9686a5a533.jpg)
Actions #4

Updated by bmbouter about 5 years ago

  • Status changed from NEW to CLOSED - WONTFIX
Actions #5

Updated by bmbouter about 5 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.

Actions #6

Updated by bmbouter about 5 years ago

  • Tags Pulp 2 added
Actions #7

Updated by Anonymous almost 5 years ago

  • File clipboard-201905191548-w4cca.png added
Actions #8

Updated by martinstone almost 5 years ago

  • File clipboard-201906211613-bhn2t.png added
  • File clipboard-201906211613-z9u0f.png added
Actions #9

Updated by ttereshc almost 5 years ago

  • File deleted (clipboard-201905191548-w4cca.png)
Actions #10

Updated by ttereshc almost 5 years ago

  • File deleted (clipboard-201906211613-z9u0f.png)
Actions #11

Updated by ttereshc almost 5 years ago

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

Also available in: Atom PDF