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

File type errors when statting paths with unrecognized characters on Windows with Ruby 2.5.1

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • None
    • None
    • None
    • Platform OS
    • Platform OS Kanban
    • Not Needed
    • Needs Assessment

    Description

      This bug came up during the upgrade to Ruby 2.5.1 - here are some example jobs:

      https://jenkins-master-prod-1.delivery.puppetlabs.net/view/Adhoc/job/platform_puppet-agent-extra_puppet-agent-integration-suite_adhoc-ad_hoc/245/

      Puppet tests are failing with ruby 2.5.1 on all Windows platforms with the following:

      (goetlmrq321co4r.delivery.puppetlabs.net) executed in 6.27 seconds
      RuntimeError: PuppetAcceptance::DSL::Helpers.with_puppet_running_on failed (check backtrace for location) because: Host 'jys7ycm74y4ujr7.delivery.puppetlabs.net' exited with 1 running:
       env LANG="en_US.UTF-8" cmd.exe /c puppet resource file 'C:/cygwin64/tmp/file€‰ㄘ万竹ÜÖ.5EIVKW' ensure=absent
      Last 10 lines of output were:
      	Error: /File[C:/cygwin64/tmp/file?????ÜÖ.5EIVKW]: Could not evaluate: Invalid argument @ rb_file_s_lstat - C:/cygwin64/tmp/file?????ÜÖ.5EIVKW
      	Error: Could not run: Invalid argument @ rb_file_s_lstat - C:/cygwin64/tmp/file?????ÜÖ.5EIVKW

      The unrecognized characters in the log are a red herring - passing tests also print ????? in this filename. 

      The tests for applying and caching a utf8 catalog pass, but this one, which applies the cached utf8 catalog, does not.

      Attachments

        Issue Links

          Activity

            People

              casey.williams Casey Williams
              casey.williams Casey Williams
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support