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

Investigate failure of fixture to start

    • Server Tooling & Methods
    • Fully Compatible
    • ALL

      Acceptance Criteria:
      Let's try to add an invalid arg to a fixture to have it fail to start and make this error nicer by showing the process that failed, not the current error of pid is none

      The fixture failed to start in this patch here: https://spruce.mongodb.com/version/61857bcbd6d80a7db68bc382/tasks?sorts=STATUS%3AASC%3BBASE_STATUS%3ADESC

      But did succeed on an earlier base commit from 2 days ago https://spruce.mongodb.com/version/6185eb580305b97f3195d3b2/tasks?sorts=STATUS%3AASC%3BBASE_STATUS%3ADESC

      I was not able to reproduce this issue locally. If it happens again in another context, we can try to remove possible offending commits to narrow down the root cause.

      [2021/11/05 21:50:02.066] [executor:fsm_workload_test:job0] 21:50:02.065Z Encountered an error during test execution.
      [2021/11/05 21:50:02.066] Traceback (most recent call last):
      [2021/11/05 21:50:02.066]   File "/data/mci/e5f0d03fe0dfe8a0da4deb738f43d753/src/buildscripts/resmokelib/testing/job.py", line 85, in __call__
      [2021/11/05 21:50:02.066]     self._run(queue, interrupt_flag, teardown_flag, hook_failure_flag)
      [2021/11/05 21:50:02.066]   File "/data/mci/e5f0d03fe0dfe8a0da4deb738f43d753/src/buildscripts/resmokelib/testing/job.py", line 131, in _run
      [2021/11/05 21:50:02.066]     self._execute_test(test, hook_failure_flag)
      [2021/11/05 21:50:02.066]   File "/data/mci/e5f0d03fe0dfe8a0da4deb738f43d753/src/buildscripts/resmokelib/testing/job.py", line 172, in _execute_test
      [2021/11/05 21:50:02.066]     self.report.logging_prefix = create_fixture_table(self.fixture)
      [2021/11/05 21:50:02.066]   File "/data/mci/e5f0d03fe0dfe8a0da4deb738f43d753/src/buildscripts/resmokelib/testing/fixtures/interface.py", line 358, in create_fixture_table
      [2021/11/05 21:50:02.066]     info: List[NodeInfo] = fixture.get_node_info()
      [2021/11/05 21:50:02.066]   File "/data/mci/e5f0d03fe0dfe8a0da4deb738f43d753/src/buildscripts/resmokelib/testing/fixtures/standalone.py", line 162, in get_node_info
      [2021/11/05 21:50:02.066]     port=self.port, pid=self.mongod.pid)
      [2021/11/05 21:50:02.066] AttributeError: 'NoneType' object has no attribute 'pid'
      [2021/11/05 21:50:02.067] [executor] 21:50:02.066Z Waiting for threads to complete
      [2021/11/05 21:50:02.067] [executor] 21:50:02.067Z Threads are completed!
      [2021/11/05 21:50:02.067] [executor] 21:50:02.067Z Summary of latest execution: 0 test(s) ran in 0.00 seconds (0 succeeded, 1 were skipped, 0 failed, 0 errored)
      [2021/11/05 21:50:02.068] [executor] 21:50:02.067Z Encountered an error when running fsm_workload_tests of suite generated_resmoke_config/concurrency_0.yml.
      [2021/11/05 21:50:02.068] Traceback (most recent call last):
      [2021/11/05 21:50:02.068]   File "/data/mci/e5f0d03fe0dfe8a0da4deb738f43d753/src/buildscripts/resmokelib/testing/executor.py", line 160, in run
      [2021/11/05 21:50:02.068]     raise errors.ResmokeError(
      [2021/11/05 21:50:02.068] buildscripts.resmokelib.errors.ResmokeError: 0 reported tests is less than 1 expected tests
      [2021/11/05 21:50:02.068] During handling of the above exception, another exception occurred:
      [2021/11/05 21:50:02.068] Traceback (most recent call last):
      [2021/11/05 21:50:02.068]   File "/data/mci/e5f0d03fe0dfe8a0da4deb738f43d753/src/buildscripts/resmokelib/run/__init__.py", line 306, in _execute_suite
      [2021/11/05 21:50:02.068]     executor.run()
      [2021/11/05 21:50:02.068]   File "/data/mci/e5f0d03fe0dfe8a0da4deb738f43d753/src/buildscripts/resmokelib/testing/executor.py", line 170, in run
      [2021/11/05 21:50:02.068]     if not self._teardown_fixtures():
      [2021/11/05 21:50:02.068]   File "/data/mci/e5f0d03fe0dfe8a0da4deb738f43d753/src/buildscripts/resmokelib/testing/executor.py", line 242, in _teardown_fixtures
      [2021/11/05 21:50:02.068]     if not job.manager.teardown_fixture(self.logger):
      [2021/11/05 21:50:02.068]   File "/data/mci/e5f0d03fe0dfe8a0da4deb738f43d753/src/buildscripts/resmokelib/testing/job.py", line 386, in teardown_fixture
      [2021/11/05 21:50:02.068]     self.report.logging_prefix = create_fixture_table(self.fixture)
      [2021/11/05 21:50:02.068]   File "/data/mci/e5f0d03fe0dfe8a0da4deb738f43d753/src/buildscripts/resmokelib/testing/fixtures/interface.py", line 358, in create_fixture_table
      [2021/11/05 21:50:02.068]     info: List[NodeInfo] = fixture.get_node_info()
      [2021/11/05 21:50:02.068]   File "/data/mci/e5f0d03fe0dfe8a0da4deb738f43d753/src/buildscripts/resmokelib/testing/fixtures/standalone.py", line 162, in get_node_info
      [2021/11/05 21:50:02.068]     port=self.port, pid=self.mongod.pid)
      [2021/11/05 21:50:02.068] AttributeError: 'NoneType' object has no attribute 'pid'
      

            Assignee:
            backlog-server-stm Backlog - Server Tooling and Methods (STM) (Inactive)
            Reporter:
            robert.guo@mongodb.com Robert Guo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: