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

Unit testing framework has become dependent on service_context

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.1.3
    • Affects Version/s: None
    • Component/s: Build
    • None
    • Fully Compatible
    • ALL
    • Security 2018-09-24

      The mongo/unittest/unittest library links to mongo/options_parser/options_parser, which has recently picked up a dependency on mongo/util/net/http_client. That library, in turn, links to mongo/executor/thread_pool_task_executor, which, ultimately, links in mongo/db/service_context. As a result, all unit tests now link the service_context code and its semi-extensive transitive dependencies, whether they need it or not.

      We should find a way to not make the options subsystem (or the http subsystem) force this dependency into all unit tests.

            Assignee:
            sara.golemon@mongodb.com Sara Golemon
            Reporter:
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: