-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tests are failing for Facter 4 #238
Comments
See the failures at the bottom of #236 |
Okay, so it's a bug in Facter 4.0.16. 4.0.15 is fine. I am 99% sure it's due to https://github.com/puppetlabs/facter-ng/blame/master/lib/facter.rb#L189 |
@glennsarti do you have a short repro? I can follow up with the team |
Apologies for Windows paths. Will fail to find the custom fact in the cache dir fixture. If you lock Facter to 4.0.15 e.g. in Gemfile add |
|
Interestingly... using Editor Services Facter.reset gets called twice, but I guess it must REALLY be reset by then... |
The failing tests failed to find a custom fact in the puppet cache dir, or in a modulepath |
It appears that Facter 4.0.16 is resetting the Facter search dirs which then causes the sidecar to not find some external or custom facts. This commit monkey patches the Facter module and makes it possible to limit the number of resets to one.
@glennsarti with the fix from https://github.com/puppetlabs/facter-ng/tree/FACT-2562-2 the tests pass.
|
I had a look at the branch. It does concern me there weren't tests for this though. |
(GH-238) Monkey patch Facter for minimal resets
This reverts commit f8e88a5.
Revert "(GH-238) Monkey patch Facter for minimal resets"
This reverts commit f8e88a5.
…services into mergeup-master * 'master' of https://github.com/glennsarti/puppet-editor-services: (maint) Release 0.26.0 (puppetlabsGH-245) Remove facts_all sidecar request (puppetlabsGH-245) Use object cache for fact data (puppetlabsGH-245) Add acceptance tests for getFacts request (puppetlabsGH-242) Puppet Facts Endpoint Revert "(puppetlabsGH-238) Monkey patch Facter for minimal resets" (maint) Update branding urls (puppetlabsGH-238) Monkey patch Facter for minimal resets (maint) Update rubocop to 0.80.x
The Travis and Appveyor tests are failing now that Facter 4 is available.
The text was updated successfully, but these errors were encountered: