chef push with a ruby syntax error isn't helpful
Nobody has claimed this yet.
- Dominant language
- Ruby
- Stars
- 18
- Forks
- 23
- Avg merge
- 5d 17h
- Merged PRs (30d)
- 1
Description
Description
One of my cookbooks had a syntax error. I ran a chef push to my chef server, and it came back with [2018-07-24T13:48:47-05:00] FATAL: Cookbook file has a ruby syntax error:
The response didn't offer any idea where the syntax error occurred.
ChefDK Version
3.1.0
Platform Version
Windows 10 Enterprise 1803 17134.167
Replication Case
Create a Policyfile-based cookbook that has a syntax error.
Attempt to upload it to a chef server using chef push
Stacktrace
Lockfile written to C:/Code/devops-chef/cookbooks/trackabout_app_server/Policyfile.lock.json
Policy revision id: 94fb0efe4e1a1d1a4c1ade90910f137a380ef31e9d4157b9d134daaa2b95042a
Uploading policy to policy group azure_qa
[2018-07-24T13:48:47-05:00] FATAL: Cookbook file has a ruby syntax error:
NOTE: CHEFDK BUGS ONLY
This issue tracker is for the code contained within this repo -- chefdk.
- Server issues
- Chef-client issues
- Cookbook Issues (see the https://github.com/chef-cookbooks repos or search Supermarket or GitHub/Google)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the failure through the chef push entry point with a Policyfile-based cookbook containing a Ruby syntax error, using the reported Policyfile.lock.json output as context. Trace the error reporting path to determine why the cookbook file and syntax location are omitted; done means the failure identifies where the syntax error occurred.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ruby
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100