Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-3943

Include full error message when a python test asserts

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.6.9, 4.0.2, 4.1.2, WT3.2.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • 3
    • Storage Non-NYC 2018-07-02, Storage Non-NYC 2018-07-16

      With respect to a test failure in evergreen:
      https://evergreen.mongodb.com/task_log_raw/wiredtiger_macos_1012_unit_test_acc6f67c4169af3f3ba96e21089c00ef8bcafca7_18_02_26_22_43_52/0?type=T&text=true

      The error seen is as follows:

      [2018/02/27 07:41:47.377] ======================================================================
      [2018/02/27 07:41:47.377] ERROR: test_compact02.test_compact02.test_compact02(table.1mb.128KB) (subunit.RemotedTestCase)
      [2018/02/27 07:41:47.377] test_compact02.test_compact02.test_compact02(table.1mb.128KB)
      [2018/02/27 07:41:47.377] ----------------------------------------------------------------------
      [2018/02/27 07:41:47.377] _StringException: Traceback (most recent call last):
      [2018/02/27 07:41:47.377]   File "/data/mci/7ceca11bc171ea5e02066ed80200ec80/wiredtiger/test/suite/wttest.py", line 409, in tearDown
      [2018/02/27 07:41:47.377]     self.captureerr.check(self)
      [2018/02/27 07:41:47.377]   File "/data/mci/7ceca11bc171ea5e02066ed80200ec80/wiredtiger/test/suite/wttest.py", line 104, in check
      [2018/02/27 07:41:47.377]     shortenWithEllipsis(contents,100) + '"')
      [2018/02/27 07:41:47.377]   File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/case.py", line 410, in fail
      [2018/02/27 07:41:47.377]     raise self.failureException(msg)
      [2018/02/27 07:41:47.377] AssertionError: unexpected error output, contains: "[1519722555:945042][698:0x7fffb8adb3c0], test_compact02.test_compact02.test_compact02(table.1mb.1..."
      [2018/02/27 07:41:47.377] ----------------------------------------------------------------------
      

      The assertion has a truncated error message not long enough to determine the cause. This instance required us to fetch the core and debug for the error. It will be awesome if we can include more information so that it is obvious from the assertion what went wrong.

            Assignee:
            neha.khatri Neha Khatri
            Reporter:
            sulabh.mahajan@mongodb.com Sulabh Mahajan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: