Jira (PUP-9815) `bundle exec rake syntax` reports invalid manifests as valid

7 views
Skip to first unread message

Alexander Fisher (JIRA)

unread,
Jul 6, 2019, 5:19:03 AM7/6/19
to puppe...@googlegroups.com
Alexander Fisher created an issue
 
Puppet / Bug PUP-9815
`bundle exec rake syntax` reports invalid manifests as valid
Issue Type: Bug Bug
Affects Versions: PUP 6.6.0, PUP 6.5.0
Assignee: Unassigned
Created: 2019/07/06 2:18 AM
Priority: Normal Normal
Reporter: Alexander Fisher

Puppet Version: 6.5.0, 6.6.0

First reported on #puppet-dev slack by Christoph Maser.

Since puppet 6.5.0, `bundle exec rake syntax` doesn't work anymore.

$ export PUPPET_GEM_VERSION="6.4.2"
$ bundle update
...
Using puppet 6.4.2
...
$ bundle exec rake  validate
---> syntax:manifests
Could not parse for environment *root*: Syntax error at '' (file: themeier-systemd_cron/manifests/init.pp, line: 39, column: 11)   # < exit 1
$ unset PUPPET_GEM_VERSION
$ bundle update
...
Using puppet 6.6.0 (was 6.4.2)
...
$ bundle exec rake  validate
---> syntax:manifests
---> syntax:templates
---> syntax:hiera:yaml   < exit 0

I've used `git bisect` to identify the breaking change as

6103786d11955371fd6327b42a3ed933c146829c is the first bad commit
commit 6103786d11955371fd6327b42a3ed933c146829c
Author: Jesse Scott <je...@puppetlabs.com>
Date:   Wed Jun 13 17:34:37 2018 -0700
 
    (PUP-8984) Implement --render-as=json in `puppet parser validate`
    
    Tools like the Puppet Development Kit which invoke `puppet parser
    validate` on behalf of the user need a consistent, machine-readable
    output format so that they don't have to rely on complex and brittle
    regular expressions matching output that may change between Puppet
    releases.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Alexander Fisher (JIRA)

unread,
Jul 6, 2019, 3:42:03 PM7/6/19
to puppe...@googlegroups.com
Alexander Fisher commented on Bug PUP-9815
 
Re: `bundle exec rake syntax` reports invalid manifests as valid

Probably best to fix in puppet-syntax. We're using a private api so we can't really expect it not to break from time to time.
https://github.com/voxpupuli/puppet-syntax/pull/106

Alexander Fisher (JIRA)

unread,
Jul 7, 2019, 1:53:02 PM7/7/19
to puppe...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages