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

Add log message at the beginning and end of each test hook

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Testing Infrastructure
    • None
    • Fully Compatible

      Normal tests log messages in the task logs that show the beginning and end of each test:

      [2016/12/27 11:00:42.461] [executor:js_test:job1] 2016-12-27T16:00:42.461+0000 Running profile_geonear.js...
      ...
      [2016/12/27 11:00:45.048] [executor:js_test:job1] 2016-12-27T16:00:45.047+0000 profile_geonear.js ran in 2.59 seconds.
      

      This makes it easy to see which test did not finish when there is a task timeout. The hooks however, do not have log messages at their beginning and end. CleanEveryN has one at the beginning but not at the end, and the rest do not have any. We should add log messages at the beginning and end to every hook to easily diagnose hangs in them.

            Assignee:
            backlog-server-tig DO NOT USE - Backlog - Test Infrastructure Group (TIG)
            Reporter:
            judah.schvimer@mongodb.com Judah Schvimer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: