Uploaded image for project: 'Puppet Development Kit'
  1. Puppet Development Kit
  2. PDK-400

Inconsistent time reporting for test unit with/without --parallel

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PDK 1.8.0
    • Component/s: None
    • Template:
    • Acceptance Criteria:
      Hide

      pdk test unit and pdk test unit --parallel output consistent timing.

      Show
      pdk test unit and pdk test unit --parallel output consistent timing.
    • Method Found:
      Needs Assessment
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      The output of pdk execution duration from running a command normally versus running a command with the `parallel` flag was inconsistent. This fix makes the duration output consistent.
    • QA Risk Assessment:
      Needs Assessment

      Description

      pdk test unit reports the time that rspec spends running tests. pdk test unit --parallel reports the total time rspec tests + file loading time. This results in --parallel reporting a few second run time on a new module, when without the flag it reports <0.5 seconds run time (but still takes a few seconds to finish).

      We should probably output two times for rspec tests. The CPU time that the rspec tests spent running and the total time of execution. For example,

      Evaluated 6 tests (system: 0.320675 seconds, real: 3.523 seconds): 0 failures, 0 pending.

        Attachments

          Activity

            People

            Assignee:
            tim.sharpe Tim Sharpe
            Reporter:
            austin.blatt Austin Blatt
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support