[SERVER-47818] Unable to run unittests with + when building with --link=model=dynamic and hygienic Created: 28/Apr/20  Updated: 29/Oct/23  Resolved: 29/Apr/20

Status: Closed
Project: Core Server
Component/s: Build
Affects Version/s: None
Fix Version/s: 4.4.0-rc4, 4.7.0

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

Issue Links:
Backports
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.4
Sprint: Dev Platform 2020-05-04
Participants:

 Description   

When building and running a unittest with the + operator, tests fail to link if SCons was invoked with link-mode dynamic, install-mode hygienic.

SCons invocation:

python buildscripts/scons.py --link-model=dynamic VARIANT_DIR=ninja MONGO_VERSION="0.0.0" MONGO_GIT_HASH="unknown" CCACHE=ccache --disable-warnings-as-errors --ninja --install-mode=hygienic build.ninja

Error:

ninja +authenticate_test
 
...
 
[2422/2423] Building +authenticate_test
           
build/ninja/mongo/client/client_test: error while loading shared libraries: libunittest_main.so: cannot open shared object file: No such file or directory
FAILED: +authenticate_test 
PATH=/usr/local/bin:/opt/bin:/bin:/usr/bin build/ninja/mongo/client/client_test -fileNameFilter authenticate_test



 Comments   
Comment by Githook User [ 29/Apr/20 ]

Author:

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

Message: SERVER-47818 Repair test execution aliases in hygienic mode

(cherry picked from commit 0b50b48a2baad106f822fd01674c5617a0ed3444)
Branch: v4.4
https://github.com/mongodb/mongo/commit/8cada05bf78b152f159da4e316a54698724ab6d0

Comment by Githook User [ 29/Apr/20 ]

Author:

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

Message: SERVER-47818 Repair test execution aliases in hygienic mode
Branch: master
https://github.com/mongodb/mongo/commit/0b50b48a2baad106f822fd01674c5617a0ed3444

Comment by Andrew Morrow (Inactive) [ 28/Apr/20 ]

I believe this was broken here:

The cooresponding change was made to mongo_test_list.py: https://github.com/mongodb/mongo/commit/12b63497b80c46f31cb1ece3a23887e50a129504#diff-80113047f93fd01b29f0c5059cb9d894R25. But not to mongo_test_execution. The fix should be easiy.

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