Skip to content
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 failing on initial fork #72

Open
dalesit opened this issue Oct 28, 2015 · 3 comments
Open

Tests failing on initial fork #72

dalesit opened this issue Oct 28, 2015 · 3 comments

Comments

@dalesit
Copy link

dalesit commented Oct 28, 2015

I've been following the instructions on CONTRIBUTING.md, and I have run into an issue in that the initial tests have failed before I have done anything.

bundle exec rake lint

succeeds, but

bundle exec rake syntax

throws errors:

---> syntax:manifests
Could not parse for environment *root*: Syntax error at 'String'; expected ')' at /etc/puppetlabs/code/environments/production/modules/puppet-riak/manifests/init.pp:6
Could not parse for environment *root*: Syntax error at 'String'; expected ')' at /etc/puppetlabs/code/environments/production/modules/puppet-riak/manifests/tuning.pp:8
rake aborted!

I'm running puppet 4.2.2.

Not sure what I'm doing wrong - this is all from a clean VM.

Cheers,

Joel

@dalesit
Copy link
Author

dalesit commented Oct 29, 2015

Looking into this a bit further, the syntax validation fails if using the bundled puppet:

#> puppet parser validate *.pp
Error: Could not parse for environment production: Syntax error at 'String'; expected ')' at /etc/puppetlabs/code/environments/production/modules/puppet-riak/manifests/init.pp:6

#> which puppet
/usr/local/rvm/gems/ruby-2.1.5@puppet-riak/bin/puppet
#> puppet --version
3.7.5

But if I use my system puppet, it validates:

#> /opt/puppetlabs/bin/puppet parser validate *.pp
#>
#> /opt/puppetlabs/bin/puppet --version
4.2.2

Has something moved on requiring a later version of puppet?

@dalesit
Copy link
Author

dalesit commented Oct 29, 2015

Updating the required puppet version to 4.0.0 in the Gemfile allows the syntax validation to pass.

@jaimeviloria
Copy link

specifically syntax check for 'Typing' variables fails on puppet-3.7 with ruby-2.0.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants