[SERVER-18834] Expose way for how to run jstests specified on resmoke.py command line Created: 04/Jun/15  Updated: 05/Feb/16  Resolved: 23/Jun/15

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

Type: Improvement Priority: Major - P3
Reporter: Max Hirschhorn Assignee: Max Hirschhorn
Resolution: Done Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Quint Iteration 5
Participants:

 Description   

Proposal is to add a command line option to resmoke.py called --executor that takes a path to a YAML configuration file. resmoke.py would then construct a suite that uses the "executor" from the YAML configuration and a "selector" with "roots" as the list of tests specified on the command line. The --executor should default to with_server.

Running a single test or a few tests under the same configuration as a suite is useful for when debugging failures. Example usage:

python buildscripts/resmoke.py --executor=core_small_oplog jstests/core/or9.js
# is equivalent to
python buildscripts/smoke.py --small-oplog jstests/core/or9.js

Additionally, a resmokeconfig/suites/no_server.yml configuration should be added to avoid starting a mongod (equivalent to the --dont-start-mongod option in smoke.py).

executor:
  js_test:
    config:
      shell_options:
        nodb: ''



 Comments   
Comment by Githook User [ 23/Jun/15 ]

Author:

{u'username': u'visemet', u'name': u'Max Hirschhorn', u'email': u'max.hirschhorn@mongodb.com'}

Message: SERVER-18834 Add --executor command line option to resmoke.py.

Exposes a way to specify how jstests passed in on the command line
should be run. Defaults to starting a standalone mongod.

--executor=core_small_oplog_rs

is equivalent to smoke.py's --small-oplog-rs

--executor=no_server

is equivalent to smoke.py's --dont-start-mongod
Branch: master
https://github.com/mongodb/mongo/commit/2fb814c60c065cb78e271b5a6da8d2ec2637a475

Generated at Thu Feb 08 03:48:53 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.