[SERVER-66014] switch testing build targets to dynamic link model in evergreen Created: 27/Apr/22  Updated: 29/Oct/23  Resolved: 17/Apr/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.0.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Daniel Moody Assignee: Juan Gu
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Duplicate
is duplicated by SERVER-66035 Convert everything possible to use --... Closed
Problem/Incident
causes SERVER-81396 "Enterprise RHEL 8.3 s390x Shared" bu... Closed
Related
related to SERVER-68024 Prevent users and evergreen for build... Closed
is related to SERVER-49271 Convert more non-shipping non-windows... Closed
is related to SERVER-70839 Spawning dynamically linked mongod pr... Closed
Assigned Teams:
Server Development Platform
Backwards Compatibility: Fully Compatible
Sprint: Dev Platform 2022-05-16, Dev Platform 2022-05-30, Dev Platform 2022-07-25
Participants:
Linked BF Score: 19

 Description   

Due to memory pressure, we should aim to switch our testing build targets (such as compile_unittests and compile_all) to use a dynamic link model to reduce memory footprint of the build.

A reoccurring issue is running out of memory during numerous concurrent links during link-model static builds for the testing build targets. This should be straight forward due to the way scons and scons cache work, but the tradeoff for reduced memory footprint will be additional compilation and cache transfers.

There are other nuances such as jlink? We still would want jlink active for the static non testing build targets, so we would need some way to prevent that jlink from affecting the dynamic link testing targets. Possible a dynamic link-model should just ignore the jlink setting?



 Comments   
Comment by Githook User [ 12/Apr/23 ]

Author:

{'name': 'Juan Gu', 'email': 'juan.gu@mongodb.com', 'username': 'juangugit'}

Message: SERVER-66014 switch testing build targets to dynamic link model in evergreen
Branch: master
https://github.com/mongodb/mongo/commit/9c8c6b1ba77f3211140ab6b8c8243f81eb001d56

Comment by Githook User [ 31/Oct/22 ]

Author:

{'name': 'Daniel Moody', 'email': 'daniel.moody@mongodb.com', 'username': 'dmoody256'}

Message: SERVER-66014 add missing unittests runs for certain platforms
Branch: master
https://github.com/mongodb/mongo/commit/9d158b083204b845dfa878829ec119d07e0be42b

Comment by Alex Neben [ 04/Oct/22 ]

+1 to daniel.moody@mongodb.com 

Comment by Alex Neben [ 25/May/22 ]

We might want to look into some half way measures like just unit test and dbtests (and others).

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