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

Windows process helper that can be used instead of Ruby fork

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Normal
    • Resolution: Won't Fix
    • Affects Version/s: PUP 3.4.0
    • Fix Version/s: None
    • Component/s: Types and Providers
    • Labels:
    • Template:
    • Team:
      Agent

      Description

      There are a number of tests that fork to simulate contention behavior. On Windows however, we punt on these since Ruby's fork is unsupported on Windows.

      Ruby 1.9.3 added `spawn`, and while this is not the same thing as `fork`, in instances where we need to simulate file locking behavior for the sake of tests, this might be a reasonable substitute.

      A recent pull has landed for Puppet::Util::Lockfile that attempts to fix a race condition:
      https://github.com/puppetlabs/puppet/pull/2168

      However, there are no Windows tests, and a cross-platform helper would certainly be convenient to add here.

        Attachments

          Issue Links

            Activity

              jsd-sla-details-panel

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  ethan Ethan Brown
                  QA Contact:
                  Eric Thompson
                • Votes:
                  1 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: