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

Create a resmoke option that better manages output for reproducing runs locally

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.7.0
    • Affects Version/s: None
    • Component/s: Testing Infrastructure
    • Labels:
      None
    • Fully Compatible
    • STM 2020-06-29, STM 2020-07-13, STM 2020-07-27, STM 2020-08-10
    • 3

      Resmoke will dump all output into either stdout or a log file. When people are running things locally, they often want:

      • To save all the detailed output into a log file for perusal
      • A way to know that the run may have hit an error condition
      • A way to know that the set of tests is making progress

      Many people use a series of mrlog, greps, tee and output redirection to achieve this, e.g:

      resmoke run --suite sample_suite | mrlog | tee output_file.log | egrep "invariant|fassert|BACKTRACE|failed to load|..."
      

      Additionally, many people that craft those for individual reproduction attempts, haven't yet realized that saving it as a shell alias/function/script would be useful in the future.

      The goal of this ticket is to provide a useful starting point for accomplishing the bullet points using the current keywords that MongoDB tests generate.

            Assignee:
            daniel.gottlieb@mongodb.com Daniel Gottlieb (Inactive)
            Reporter:
            daniel.gottlieb@mongodb.com Daniel Gottlieb (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: