{"action":"created","issue":{"url":"https://api.github.com/repos/chef/chef/issues/3102","labels_url":"https://api.github.com/repos/chef/chef/issues/3102/labels{/name}","comments_url":"https://api.github.com/repos/chef/chef/issues/3102/comments","events_url":"https://api.github.com/repos/chef/chef/issues/3102/events","html_url":"https://github.com/chef/chef/pull/3102","id":62555245,"number":3102,"title":"Reduce size of json nested entries","user":{"login":"btm","id":4381,"avatar_url":"https://avatars.githubusercontent.com/u/4381?v=3","gravatar_id":"","url":"https://api.github.com/users/btm","html_url":"https://github.com/btm","followers_url":"https://api.github.com/users/btm/followers","following_url":"https://api.github.com/users/btm/following{/other_user}","gists_url":"https://api.github.com/users/btm/gists{/gist_id}","starred_url":"https://api.github.com/users/btm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/btm/subscriptions","organizations_url":"https://api.github.com/users/btm/orgs","repos_url":"https://api.github.com/users/btm/repos","events_url":"https://api.github.com/users/btm/events{/privacy}","received_events_url":"https://api.github.com/users/btm/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/chef/chef/labels/in%20progress","name":"in progress","color":"ededed"},{"url":"https://api.github.com/repos/chef/chef/labels/Signed%20CLA","name":"Signed CLA","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-03-18T01:13:55Z","updated_at":"2015-03-18T15:49:51Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/chef/chef/pulls/3102","html_url":"https://github.com/chef/chef/pull/3102","diff_url":"https://github.com/chef/chef/pull/3102.diff","patch_url":"https://github.com/chef/chef/pull/3102.patch"},"body":"On FreeBSD 10.1 i386 we're seeing rspec 3.2.2 raise SystemStackError if the expect line has\r\na nested hash of 255 levels. I'm going to guess we don't even need this many. I lowered this\r\ntest from 1000 to 300 arbitrarily some time ago.\r\n\r\nFixes #3101"},"comment":{"url":"https://api.github.com/repos/chef/chef/issues/comments/83029473","html_url":"https://github.com/chef/chef/pull/3102#issuecomment-83029473","issue_url":"https://api.github.com/repos/chef/chef/issues/3102","id":83029473,"user":{"login":"danielsdeleo","id":37162,"avatar_url":"https://avatars.githubusercontent.com/u/37162?v=3","gravatar_id":"","url":"https://api.github.com/users/danielsdeleo","html_url":"https://github.com/danielsdeleo","followers_url":"https://api.github.com/users/danielsdeleo/followers","following_url":"https://api.github.com/users/danielsdeleo/following{/other_user}","gists_url":"https://api.github.com/users/danielsdeleo/gists{/gist_id}","starred_url":"https://api.github.com/users/danielsdeleo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielsdeleo/subscriptions","organizations_url":"https://api.github.com/users/danielsdeleo/orgs","repos_url":"https://api.github.com/users/danielsdeleo/repos","events_url":"https://api.github.com/users/danielsdeleo/events{/privacy}","received_events_url":"https://api.github.com/users/danielsdeleo/received_events","type":"User","site_admin":false},"created_at":"2015-03-18T15:49:51Z","updated_at":"2015-03-18T15:49:51Z","body":"These test failures are odd. Anyone know what's up with them?\r\n\r\n```\r\n  1) Chef::Resource::Execute when parent resource sets :cwd guard inherits :cwd from resource and runs\r\n     Failure/Error: expect(resource).to be_updated_by_last_action\r\n       expected `<execute[foo_resource] @name: \"foo_resource\" @noop: nil @before: nil @params: {} @provider: nil @allowed_actions: [:nothing, :run] @action: \"run\" @updated: false @updated_by_last_action: false @supports: {} @ignore_failure: false @retries: 0 @retry_delay: 2 @source_line: nil @guard_interpreter: nil @default_guard_interpreter: :execute @elapsed_time: 0.290983172 @sensitive: false @resource_name: :execute @command: \"echo hello\" @backup: 5 @creates: nil @cwd: \"/home/travis/build/chef/chef/spec/data\" @environment: nil @group: nil @path: nil @returns: 0 @timeout: nil @user: nil @umask: nil @is_guard_interpreter: false>.updated_by_last_action?` to return true, got false\r\n     # ./spec/functional/resource/execute_spec.rb:71:in `block (3 levels) in <top (required)>'\r\n  2) Chef::Resource::Execute when parent resource sets :cwd guard inherits :cwd from resource and does not run\r\n     Failure/Error: expect(resource).not_to be_updated_by_last_action\r\n       expected `<execute[foo_resource] @name: \"foo_resource\" @noop: nil @before: nil @params: {} @provider: nil @allowed_actions: [:nothing, :run] @action: \"run\" @updated: true @updated_by_last_action: true @supports: {} @ignore_failure: false @retries: 0 @retry_delay: 2 @source_line: nil @guard_interpreter: nil @default_guard_interpreter: :execute @elapsed_time: 0.348037213 @sensitive: false @resource_name: :execute @command: \"echo hello\" @backup: 5 @creates: nil @cwd: \"/home/travis/build/chef/chef/spec/data\" @environment: nil @group: nil @path: nil @returns: 0 @timeout: nil @user: nil @umask: nil @is_guard_interpreter: false>.updated_by_last_action?` to return false, got true\r\n     # ./spec/functional/resource/execute_spec.rb:78:in `block (3 levels) in <top (required)>'\r\n```\r\n\r\nAs for the change itself, IIRC the JSON gem has a default max nesting level of 20 and some users were running into issues with that, which is why the test was written. I'd definitely prefer to fix the ruby build if we can since this could maybe be a problem if we use a recursive algorithm for something. Is the FreeBSD issue occurring with omnibus-built ruby?"}}