Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-27647

resmoke should inject test name into command line of all mongo servers started by a test

      I'm told by judah.schvimer that it is sometimes useful to be able to correlate a process via its command line arguments to the test that started the process. Currently we achieve this by passing a "name" to ReplicaSetTest and ShardingTest. This has a few downsides relative to having resmoke inject the test name:

      • It is optional so not every test passes it in
      • The name may not exactly match the test name
      • There is nothing to prevent two tests from passing the same name
        • This is actually the default state since most tests start as a copy of another
      • Updating the name manually when writing or renaming tests is busywork

      Injecting the test name can be done in a few ways:

      • Adding a --comment argument to mongo binaries that is ignored and can be repeated
      • Setting a default name that ReplSetTest and ShardingTest use by default if none is passed in
      • Adding the test name to the dbpath prefix passed to tests

            Assignee:
            backlog-server-tig DO NOT USE - Backlog - Test Infrastructure Group (TIG)
            Reporter:
            mathias@mongodb.com Mathias Stearn
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: