[SERVER-21842] Generate report.json file and dump stacks on Windows when Event object created by resmoke.py is set Created: 10/Dec/15  Updated: 06/Dec/17  Resolved: 31/Mar/17

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 3.2.14, 3.4.5, 3.5.6

Type: New Feature Priority: Major - P3
Reporter: Max Hirschhorn Assignee: Eddie Louie
Resolution: Done Votes: 1
Labels: bkp, tig-resmoke
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Gantt Dependency
has to be done before SERVER-28466 The hang analyzer should not attach t... Closed
Related
related to SERVER-12000 smoke.py should allow for optional te... Closed
is related to SERVER-21539 Generate report.json file when resmok... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v3.4, v3.2
Sprint: TIG 2017-03-27, TIG 2017-04-17
Participants:

 Description   

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

  1. Creates an Event object using win32event.CreateEvent().
  2. Waits on the Event object indefinitely using win32event.WaitForSingleObject().
  3. If the event is ever set, then dump the stacks of the process and write out the report.json file.
In hang_analyzer.py
  1. Get the handle to the Event object created by resmoke.py using win32event.OpenEvent().
  2. 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.



 Comments   
Comment by Githook User [ 28/Apr/17 ]

Author:

{u'username': u'elouie99', u'name': u'Eddie Louie', u'email': u'eddie.louie@mongodb.com'}

Message: SERVER-21842 Generate report.json file and dump resmoke stacks on Windows

(cherry picked from commit b6d2b5e5c6071f6b76072d15bf36f34babec2a14)
Branch: v3.4
https://github.com/mongodb/mongo/commit/6a81ce909e6d0a6a982476de7d193a2506847856

Comment by Githook User [ 27/Apr/17 ]

Author:

{u'username': u'elouie99', u'name': u'Eddie Louie', u'email': u'eddie.louie@mongodb.com'}

Message: SERVER-21842 Generate report.json file and dump resmoke stacks on Windows

(cherry picked from commit b6d2b5e5c6071f6b76072d15bf36f34babec2a14)
Branch: v3.2
https://github.com/mongodb/mongo/commit/6f4805c92a9099431c0d694256f6ffd3d1451d24

Comment by Githook User [ 31/Mar/17 ]

Author:

{u'username': u'elouie99', u'name': u'Eddie Louie', u'email': u'eddie.louie@mongodb.com'}

Message: SERVER-21842 Generate report.json file and dump resmoke stacks on Windows
Branch: master
https://github.com/mongodb/mongo/commit/b6d2b5e5c6071f6b76072d15bf36f34babec2a14

Comment by Eddie Louie [ 24/Mar/17 ]

Evergreen patch

Code review

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