[SERVER-60722] Resmoke - bad error message when suite does not exist Created: 14/Oct/21  Updated: 29/Oct/23  Resolved: 25/Oct/21

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

Type: Bug Priority: Major - P3
Reporter: Mark Benvenuto Assignee: Robert Guo (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Steps To Reproduce:

python3 buildscripts/resmoke.py run --suite=suite_that_does_not_exist

Sprint: STM 2021-11-01
Participants:
Linked BF Score: 70
Story Points: 0

 Description   

Expected error message:

Unknown suite 'suite_that_does_not_exist'

 

Actual error message:

TypeError: not all arguments converted during string formatting

 

$ python3 buildscripts/resmoke.py run --suite=suite_that_does_not_exist
[resmoke] 16:47:11.246Z verbatim resmoke.py invocation: buildscripts/resmoke.py run --suite=suite_that_does_not_exist
Traceback (most recent call last):
  File "/home/mark/src/mongo/buildscripts/resmoke.py", line 14, in <module>
    cli.main(sys.argv)
  File "/home/mark/src/mongo/buildscripts/resmokelib/cli.py", line 21, in main
    subcommand.execute()
  File "/home/mark/src/mongo/buildscripts/resmokelib/run/__init__.py", line 131, in execute
    self.run_tests()
  File "/home/mark/src/mongo/buildscripts/resmokelib/run/__init__.py", line 252, in run_tests
    suites = self._get_suites()
  File "/home/mark/src/mongo/buildscripts/resmokelib/run/__init__.py", line 336, in _get_suites
    return suitesconfig.get_suites(config.SUITE_FILES, config.TEST_FILES)
  File "/home/mark/src/mongo/buildscripts/resmokelib/suitesconfig.py", line 114, in get_suites
    suite_config = _get_suite_config(suite_filename)
  File "/home/mark/src/mongo/buildscripts/resmokelib/suitesconfig.py", line 129, in _get_suite_config
    return SuiteFinder.get_config_obj(suite_name_or_path)
  File "/home/mark/src/mongo/buildscripts/resmokelib/suitesconfig.py", line 334, in get_config_obj
    raise errors.SuiteNotFound("Unknown suite 's'" % suite_path)
TypeError: not all arguments converted during string formatting



 Comments   
Comment by Githook User [ 25/Oct/21 ]

Author:

{'name': 'Robert Guo', 'email': 'robert.guo@mongodb.com'}

Message: SERVER-60722 fix missing resmoke suite
Branch: master
https://github.com/mongodb/mongo/commit/13a0f383f7b7a4e13659d0f8b11c43dffb53ed9f

Comment by Githook User [ 21/Oct/21 ]

Author:

{'name': 'Robert Guo', 'email': 'robert.guo@mongodb.com'}

Message: SERVER-60722 fix typo in resmoke suitesconfig error message
Branch: master
https://github.com/mongodb/mongo/commit/62cf5c7391dfd6ffc9a678e99ed4755aeb8fc281

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