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

Disk access from PUP-1133 test file isolation has increased test suite run time

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Normal
    • Resolution: Won't Fix
    • Affects Version/s: PUP 3.5.0
    • Fix Version/s: None
    • Component/s: None
    • Template:
    • Team:
      Agent

      Description

      As part of the work with PUP-266, some changes were introduced as PUP-1133 to the tests to properly isolate environmental configuration files during test runs.

      While this has cleaned up a number of issues with executing tests and properly isolating the state across runs, it has also increased I/O by rapidly creating / deleting test directories and files.

      On Windows (inside of VMWare Fusion), suite execution time has risen from 6:54 to 8:12 – an increase of 1:16 (about 18%). On OSX 10.9 (not virtualized), suite execution time has risen from 2:12 to 2:37 (about 19%).

      The solution may be to lazily create `confdir` instead of initializing it each run with `tmpdir` in `spec_helper.rb`. Another potential solution is to find where settings are loaded from disk unnecessarily, and to stub these calls via `Puppet.settings.stubs(:use)`

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            ethan Ethan Brown
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support