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

Exception thrown during mongos_test.yml does not report the error

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Critical - P2 Critical - P2
    • None
    • Affects Version/s: None
    • Component/s: Testing Infrastructure
    • None
    • Correctness
    • ALL
    • 2025-03-18

      There is a codepath in resmoke which allows Python exceptions to not result in a test being marked as erroring.

      [2025/02/25 03:07:12.567] [executor:mongos_test:job0] 2025-02-25T03:07:12.566Z Encountered an error during test execution.
      [2025/02/25 03:07:12.567] Traceback (most recent call last):
      [2025/02/25 03:07:12.567]   File "/data/mci/40522b28f1c68de6daf140419a2fc015/src/buildscripts/resmokelib/testing/job.py", line 125, in start
      [2025/02/25 03:07:12.567]     self._run(queue, interrupt_flag, teardown_flag, hook_failure_flag)
      [2025/02/25 03:07:12.567]   File "/data/mci/40522b28f1c68de6daf140419a2fc015/src/buildscripts/resmokelib/testing/job.py", line 180, in _run
      [2025/02/25 03:07:12.567]     self._execute_test(test, hook_failure_flag)
      [2025/02/25 03:07:12.567]   File "/opt/mongodbtoolchain/revisions/5c38b5f1f5fd9eb734d4d8da79892ff2b4e2e5af/stow/python3-v4.518/lib/python3.10/contextlib.py", line 79, in inner
      [2025/02/25 03:07:12.567]     return func(*args, **kwds)
      [2025/02/25 03:07:12.567]   File "/data/mci/40522b28f1c68de6daf140419a2fc015/src/buildscripts/resmokelib/testing/job.py", line 239, in _execute_test
      [2025/02/25 03:07:12.567]     test.configure(self.fixture, config.NUM_CLIENTS_PER_FIXTURE, config.USE_TENANT_CLIENT)
      [2025/02/25 03:07:12.567]   File "/data/mci/40522b28f1c68de6daf140419a2fc015/src/buildscripts/resmokelib/testing/testcases/mongos_test.py", line 28, in configure
      [2025/02/25 03:07:12.567]     self.options["test"] = ""
      [2025/02/25 03:07:12.567] TypeError: list indices must be integers or slices, not str
      ...
      [2025/02/25 03:07:12.568] [executor] 2025-02-25T03:07:12.568Z Summary of latest execution: 2 test(s) ran in 0.00 seconds (2 succeeded, 1 were skipped, 0 failed, 0 errored)
      ...
      [2025/02/25 03:07:12.568] [resmoke] 2025-02-25T03:07:12.568Z Exiting with code: 0
      

            Assignee:
            eric.lavigne@mongodb.com Eric Lavigne
            Reporter:
            eric.lavigne@mongodb.com Eric Lavigne
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: