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

`pdk test unit --parallel` not using correct ruby environment

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: PDK 1.5.0, PDK 1.6.0
    • Fix Version/s: PDK 1.6.1
    • Component/s: None
    • Environment:
      • Packaged PDK installations since 1.5.0.0
    • Template:
    • Team:
      Puppet Developer Experience
    • Method Found:
      Customer Feedback
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      `pdk test unit --parallel` now creates the necessary binstubs needed to run the unit tests in parallel.
    • QA Risk Assessment:
      Needs Assessment

      Description

      It appears that `pdk test unit --parallel` (and specifically the parallel_tests gem) is not using the correct PDK-managed ruby environment since we added the Ruby/Puppet version switching functionality in 1.5.0.

      With a brand new module (`pdk new module testmod` and `pdk new class testmod`) on Ubuntu 14.04:

      $ pdk test unit --parallel
      pdk (INFO): Using Ruby 2.4.4
      pdk (INFO): Using Puppet 5.5.2
      [✔] Preparing to run the unit tests.
      [✖] Running unit tests in parallel.
      pdk (FATAL): Unit test output did not contain a valid JSON result: 1 processes for 1 specs, ~ 1 specs per process
      bundler: command not found: rspec
      Install missing gem executables with `bundle install`
      

        Attachments

          Issue Links

            Activity

              jsd-sla-details-panel

                People

                • Assignee:
                  jesse Jesse Scott
                  Reporter:
                  jesse Jesse Scott
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: