Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-51172

resmoke sometimes throws TypeError when calculating elapsed time for test

    • Fully Compatible
    • ALL
    • v4.4
    • STM 2020-10-19
    • 0

      From this task

      Stack trace:

      [2020/09/25 21:59:57.013]   File "/data/mci/bf378576eef557fd157a81fc32b8b34c/src/buildscripts/resmokelib/run/__init__.py", line 234, in _execute_suite
      [2020/09/25 21:59:57.013]     executor.run()
      [2020/09/25 21:59:57.013]   File "/data/mci/bf378576eef557fd157a81fc32b8b34c/src/buildscripts/resmokelib/testing/executor.py", line 120, in run
      [2020/09/25 21:59:57.013]     (report, interrupted) = self._run_tests(test_queue, setup_flag, teardown_flag)
      [2020/09/25 21:59:57.013]   File "/data/mci/bf378576eef557fd157a81fc32b8b34c/src/buildscripts/resmokelib/testing/executor.py", line 196, in _run_tests
      [2020/09/25 21:59:57.015]     joined = test_queue.join(TestSuiteExecutor._TIMEOUT)
      [2020/09/25 21:59:57.015]   File "/data/mci/bf378576eef557fd157a81fc32b8b34c/src/buildscripts/resmokelib/utils/queue.py", line 43, in join
      [2020/09/25 21:59:57.025]     self.all_tasks_done.wait(remaining)
      [2020/09/25 21:59:57.025]   File "/opt/mongodbtoolchain/stow/osx-python3-v3.kRB/lib/python3.7/threading.py", line 300, in wait
      [2020/09/25 21:59:57.025]     gotit = waiter.acquire(True, timeout)
      [2020/09/25 21:59:57.025]   File "/data/mci/bf378576eef557fd157a81fc32b8b34c/src/buildscripts/resmokelib/sighandler.py", line 37, in _handle_sigusr1
      [2020/09/25 21:59:57.025]     _dump_and_log(header_msg)
      [2020/09/25 21:59:57.025]   File "/data/mci/bf378576eef557fd157a81fc32b8b34c/src/buildscripts/resmokelib/sighandler.py", line 63, in _dump_and_log
      [2020/09/25 21:59:57.026]     reportfile.write(suites)
      [2020/09/25 21:59:57.026]   File "/data/mci/bf378576eef557fd157a81fc32b8b34c/src/buildscripts/resmokelib/reportfile.py", line 19, in write
      [2020/09/25 21:59:57.026]     combined_report_dict = _report.TestReport.combine(*reports).as_dict()
      [2020/09/25 21:59:57.026]   File "/data/mci/bf378576eef557fd157a81fc32b8b34c/src/buildscripts/resmokelib/testing/report.py", line 284, in as_dict
      [2020/09/25 21:59:57.026]     "elapsed": test_info.end_time - test_info.start_time,
      [2020/09/25 21:59:57.026] TypeError: unsupported operand type(s) for -: 'float' and 'NoneType'
      

      Not sure why the start time is None.

            Assignee:
            carl.worley@mongodb.com Raiden Worley (Inactive)
            Reporter:
            richard.samuels@mongodb.com Richard Samuels (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: