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

Execute block in xcode resource exceeds the timeout limit #80

Closed
StefanRehder opened this issue Mar 25, 2018 · 1 comment
Closed

Execute block in xcode resource exceeds the timeout limit #80

StefanRehder opened this issue Mar 25, 2018 · 1 comment
Assignees
Labels
Milestone

Comments

@StefanRehder
Copy link

This execute block in the xcode resource takes more than 1 hour to complete on my machine (with ~14 Mbit/s bandwidth):

action :install_xcode do
  execute "install Xcode #{new_resource.version}" do
    environment DEVELOPER_CREDENTIALS
    command XCVersion.install_xcode(new_resource.version)
    not_if { Xcode.installed?(new_resource.version) }
  end
end

So it fails with:

ERROR: xcode[9.2] (macos::xcode line 1) had an error: Mixlib::ShellOut::CommandTimeout: execute[install Xcode 9.2] (/tmp/kitchen/cache/cookbooks/macos/resources/xcode.rb line 27) had an error: Mixlib::ShellOut::CommandTimeout: Command timed out after 3600s:
       Command exceeded allowed execution time, process terminated
       ---- Begin output of /opt/chef/embedded/bin/xcversion install '9.2' ----
       STDOUT:
######################################################################    97.7%######## 100.0%
       ---- End output of /opt/chef/embedded/bin/xcversion install '9.2' ----

It looks like it was very close to completion within the time limit though.
Is it possible to extend the timeout property of the execute block (maybe 2 hours is a better timeout limit)?

I think it is fair to assume that a 5GB download + installation will exceed 1 hour for a lot of people.

@americanhanko
Copy link
Collaborator

Resolved via #82

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

No branches or pull requests

3 participants