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

Windows process helper that can be used instead of Ruby fork

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Normal
    • Resolution: Won't Fix
    • PUP 3.4.0
    • None
    • Types and Providers
    • 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

            People

              Unassigned Unassigned
              ethan Ethan Brown
              Eric Thompson Eric Thompson
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support