[SERVER-41809] Reduce number of unit test binaries Created: 18/Jun/19  Updated: 29/Oct/23  Resolved: 20/Jun/19

Status: Closed
Project: Core Server
Component/s: Build
Affects Version/s: None
Fix Version/s: 4.3.1

Type: Improvement Priority: Major - P3
Reporter: Andrew Morrow (Inactive) Assignee: Andrew Morrow (Inactive)
Resolution: Fixed Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-47548 Fix or remove the unittests_*.yml tes... Backlog
Backwards Compatibility: Fully Compatible
Sprint: Dev Tools 2019-07-01
Participants:
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.



 Comments   
Comment by Githook User [ 28/Jun/19 ]

Author:

{'name': 'Andrew Morrow', 'email': 'acm@mongodb.com', 'username': 'acmorrow'}

Message: SERVER-41809 Undo collapse of integration tests in mongo/client
Branch: master
https://github.com/mongodb/mongo/commit/5253aea55a817b36b30312cc9966536e038d494d

Comment by Githook User [ 27/Jun/19 ]

Author:

{'name': 'Benety Goh', 'username': 'benety', 'email': 'benety@mongodb.com'}

Message: SERVER-41809 disable failing tests temporarily
Branch: master
https://github.com/mongodb/mongo/commit/339ccc5bdbe59680d16181fca0503654ffb6bdb5

Comment by Githook User [ 20/Jun/19 ]

Author:

{'name': 'Andrew Morrow', 'email': 'acm@mongodb.com', 'username': 'acmorrow'}

Message: SERVER-41809 Collapse unit tests on a per-directory basis
Branch: master
https://github.com/mongodb/mongo/commit/e3f4aa4cf938be00e33874408185767ad256a769

Comment by Githook User [ 20/Jun/19 ]

Author:

{'name': 'Andrew Morrow', 'email': 'acm@mongodb.com', 'username': 'acmorrow'}

Message: SERVER-41809 Collapse unit tests on a per-directory basis
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/7ac02078a7fe512834b56280b9c1acb24db3de91

Generated at Thu Feb 08 04:58:44 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.