[SERVER-69817] Nonsensical message when calling resmoke.py run with `--installDir` argument Created: 20/Sep/22  Updated: 27/Oct/23  Resolved: 20/Sep/22

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

Type: Bug Priority: Major - P3
Reporter: Kaloian Manassiev Assignee: [DO NOT ASSIGN] Backlog - Server Development Platform Team (SDP) (Inactive)
Resolution: Works as Designed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Server Development Platform
Operating System: ALL
Participants:

 Description   

The Resmoke.py Invocation for Local Usage links from Evergreen result in command lines containing --installDir=dist-test/bin.

I have different builds in my working tree - optimised and debug, so naturally I saw this parameter and pointed it to my optimised directory (build/install/bin):

python3 build/install/bin/resmoke.py run -j16 --log=file --dbpathPrefix=$HOME/Temp/Data/resmoke --suites=concurrency_sharded_multi_stmt_txn_terminate_primary --installDir='build/install/bin' --continueOnFailure --excludeWithAnyTags=incompatible_with_shard_merge --jobs=1 --shuffle --storageEngineCacheSizeGB=1

This however gives me the following error:

ubuntu@kal-virtual-workstation:~/workspace/mongo$ python3 build/install/bin/resmoke.py run -j16 --log=file --dbpathPrefix=$HOME/Temp/Data/resmoke --suites=concurrency_sharded_multi_stmt_txn_terminate_primary --installDir=build/install/bin --continueOnFailure --excludeWithAnyTags=incompatible_with_shard_merge --jobs=1 --shuffle --storageEngineCacheSizeGB=1
Traceback (most recent call last):
  File "/home/ubuntu/workspace/mongo/build/install/bin/resmoke.py", line 33, in <module>
    raise RuntimeError(err)
RuntimeError: Argument '--installDir' passed to resmoke wrapper script, but this action can
have unforeseen consequences. Either remove --installDir, or call resmoke as
`buildscripts/resmoke.py run --installDir=build/install/bin`

The error persists no matter how I wrap the --installDir parameter (with or without quotes, double quotes, etc).

Either the message should be updated to say what actually is the problem and how exactly I should be invoking it or Evergreen's link should be changed.



 Comments   
Comment by Kaloian Manassiev [ 20/Sep/22 ]

Thank you, Daniel. I guess I misunderstood what "resmoke wrapper script" means and didn't pay attention to the different path that the script is telling me. Sorry about that.

I am closing this ticket.

Comment by Daniel Moody [ 20/Sep/22 ]

The link says to use buildscripts/resmoke.py but you used build/install/bin/resmoke.py. The latter is meant to target just the install dir that it lives in, and therefore the --installDir argument makes no sense for this script. The --installDir argument is intended for the buildscripts/resmoke.py because that could target any install directory.

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