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

Reduce number of unit test binaries

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.3.1
    • Component/s: Build
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Sprint:
      Dev Tools 2019-07-01
    • Linked BF Score:
      47

      Description

      We currently have 406 unique unit test binaries in the RHEL6 builder: https://evergreen.mongodb.com/task/mongodb_mongo_master_enterprise_rhel_62_64_bit_display_unittests!_4c95c46e1ef6de25e96d410369108110ce47c0e1_19_06_18_15_40_30

      Each of these binaries is statically linked, and many of them link the same subset of code repeatedly.

      Collapsing to a smaller number of unit test binaries based on a test-per-directory scheme resulted in a 50% reduction in build time for the unit test task.

      Building the unit tests is currently one of the long poles in the makespan, so reducing this could significantly speed patch build results for developers.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              acm Andrew Morrow
              Reporter:
              acm Andrew Morrow
              Participants:
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: