[SERVER-28262] Add relevant test name to each hang analyzer log's file name Created: 09/Mar/17  Updated: 21/Mar/17  Resolved: 21/Mar/17

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

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

Participants:

 Description   

Currently the files are named something like:

debugger_mongos_12139.log

If, for example, 6 tests did not complete, you will have (at least) 6 such files.

Once you find the tests that did not complete, you don't have an easy way to correlate which hang analyzer files go with which tests.

You can do it by searching for the PID in the file name (e.g., 12139 in the above example) in the test logs for each failed test.

It'd be nice if the file name just included which test it matches with, e.g.:

debugger_bulk_shard_insert_js_mongos_12139.log



 Comments   
Comment by Max Hirschhorn [ 21/Mar/17 ]

The hang_analyzer.py script doesn't know to what tests the processes it is attaching to belong. One idea I recall was to add a dummy command line option to mongod and mongos that includes the JS test name. However, for the fixtures started by resmoke.py, the same processes are used for different tests, so I don't think there's an approach that would work for those test suites.

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