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

`pdk build` is disproportionately slow when a module contains lots of files

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: PDK 1.6.0
    • Fix Version/s: PDK 1.6.1
    • Component/s: None
    • Labels:
      None
    • Environment:

      Windows 10 - 1803
      PDK 1.6.0
      Module - puppetlabs/windows

    • Template:
    • Method Found:
      Needs Assessment
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      Resolved an issue where `pdk build` was disproportionately slow when a module directory tree contained lots of files.
    • QA Risk Assessment:
      Needs Assessment

      Description

      While doing a simple "pdk build" it took 86 seconds to build a tarball containing 28 files and 6 dirs. 4.7 million disk IOs.

      Looking at the procmon logs, it looks like it's querying the entire directory structure when searching for each filee. After removing the .bundle directory pdk build time was back to a second or so.

        Attachments

          Issue Links

            Activity

              jsd-sla-details-panel

                People

                • Assignee:
                  jesse Jesse Scott
                  Reporter:
                  glenn.sarti Glenn Sarti
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Zendesk Support