Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-1883

PR (2416): (maint) Add rake task for parallelizing specs. - peterhuene

    Details

    • Type: Task
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PUP 3.5.0
    • Component/s: None
    • Labels:
    • Template:

      Description

      (maint) Add rake task for parallelizing specs.

      Pull Request Description


      Adding a 'parallel:spec' task that will group specs and then run those
      groups in a parallel set of processes.

      By default, parallel:spec will bunch the specs into groups of
      approximately 1000 and concurrently run each group up to the number of
      processors reported by facter.

      The task takes two parameters: process_count and group_size.

      Running with a process_count of 1 (parallel:spec[1]) will behave like
      the existing 'spec' task, except it will still group the tests and
      recycle the spec running process between groups. This has the added
      benefit of limiting the spec running process' working set, at the cost
      of being a little slower.


      (webhooks-id: 4d77233448e4eaa59e7397a76d8eb02a)

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              gepetto-bot gepetto-bot
              QA Contact:
              Kurt Wall
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Zendesk Support