[SERVER-68119] resmoke.py does not always respect --installDir Created: 18/Jul/22  Updated: 29/Oct/23  Resolved: 15/Aug/22

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

Type: Bug Priority: Major - P3
Reporter: Steve Tarzia Assignee: Alex Neben
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Problem/Incident
Related
Backwards Compatibility: Fully Compatible
Operating System: ALL
Steps To Reproduce:
  • Copy an old mongod binary (eg., 5.0) to ~/mongo.
  • Check out the latest master branch and do a debug build.
  • Run a js test that uses ShardingTest, eg:
    • python buildscripts/resmoke.py run --installDir=build/debug/install/bin  jstests/sharding/allow_partial_results.js
  • You'll get a failure due to mongod failing to start.  Resmoke provides new parameters such as backtraceLogFile that are not understood by the old mongod binary.
Participants:
Linked BF Score: 156

 Description   

It seems that the js ShardingTest and ReplSetTest objects will always use binaries in ~/mongo/ if they are present, even when a different installation directory is specified in the resmoke --installDir parameter.

In the best case, your js test will faily unexpectedly when setting up the cluster.  In the worst case you'll be silently testing a different binary than you expected.



 Comments   
Comment by Githook User [ 12/Aug/22 ]

Author:

{'name': 'Alexander Neben', 'email': 'alexander.neben@mongodb.com', 'username': 'IamXander'}

Message: SERVER-68119 Standardized mongo lookup
Branch: master
https://github.com/mongodb/mongo/commit/aef78a6bdb3102a331aa89e7c52f91af2d8aae5d

Comment by Githook User [ 08/Aug/22 ]

Author:

{'name': 'Sviatlana Zuiko', 'email': 'sviatlana.zuiko@mongodb.com', 'username': 'szuiko'}

Message: Revert "SERVER-68119 Standardized mongo[/d/s/q] lookup"

This reverts commit 152fde419e0d31a80f1211738f4b264892c85797.
Branch: master
https://github.com/mongodb/mongo/commit/953a8c7c168ba406242fa844e635aae4ac6edd23

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