[SERVER-27647] resmoke should inject test name into command line of all mongo servers started by a test Created: 10/Jan/17  Updated: 20/Jan/17  Resolved: 20/Jan/17

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

Type: Improvement Priority: Major - P3
Reporter: Mathias Stearn Assignee: DO NOT USE - Backlog - Test Infrastructure Group (TIG)
Resolution: Won't Fix Votes: 0
Labels: tig-resmoke
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-27766 ReplicaSetTest should use jsTest.name... Closed
Participants:

 Description   

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


 Comments   
Comment by Mathias Stearn [ 20/Jan/17 ]

Replacing this ticket with SERVER-27766 which leverages info we already inject into js tests.

Generated at Thu Feb 08 04:15:46 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.