-
Type: New Feature
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Testing Infrastructure
-
Fully Compatible
-
v3.4, v3.2
-
TIG 2017-03-27, TIG 2017-04-17
The following describes Windows support for generating a report.json file when the task times out in Evergreen. It is adapted from what is currently done in shell_utils_launcher.cpp and signal_handlers.cpp.
In resmoke.py
Spawn a new thread in resmoke.py that
- Creates an Event object using win32event.CreateEvent().
- Waits on the Event object indefinitely using win32event.WaitForSingleObject().
- If the event is ever set, then dump the stacks of the process and write out the report.json file.
In hang_analyzer.py
- Get the handle to the Event object created by resmoke.py using win32event.OpenEvent().
- Set the event.
We still need to come up with some naming convention for the Event object. One idea is for it to use the task_id from Evergreen.
- has to be done before
-
SERVER-28466 The hang analyzer should not attach to resmoke.py in Evergreen
- Closed
- is related to
-
SERVER-21539 Generate report.json file when resmoke.py receives a SIGUSR1
- Closed
- related to
-
SERVER-12000 smoke.py should allow for optional test suite timeout
- Closed