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

Fix idempotency issues in build_essential on the mac #10647

Merged
merged 2 commits into from Nov 14, 2020
Merged

Conversation

tas50
Copy link
Contributor

@tas50 tas50 commented Nov 13, 2020

2 issues this solves:

  • On some systems the Command Line Tools aren't showing up in the install history plist we're parsing. This means we attempt to install the tools each time chef runs, which takes a LONG time even on a top of the line mac. It was suggested in mac admins slack to just use xcode-select -p which lists the command line tools path or exits 2 if not installed.

  • When the :upgrade action is used we were parsing out the software update list twice for no reason, which made it take even longer.

Signed-off-by: Tim Smith tsmith@chef.io

2 issues this solves:

- On some systems the Command Line Tools aren't showing up in the install history plist we're parsing. This means we attempt to install the tools each time chef runs, which takes a LONG time even on a top of the line mac. It was suggested in mac admins slack to just use xcode-select -p which lists the command line tools path or exits 2 if not installed.

- When the :upgrade action is used we were parsing out the software update list twice for no reason, which made it take even longer.

Signed-off-by: Tim Smith <tsmith@chef.io>
@tas50 tas50 requested review from a team as code owners November 13, 2020 23:59
There's really no point in testing this method now since it would be us mocking out junk only.

Signed-off-by: Tim Smith <tsmith@chef.io>
Copy link
Contributor

@phiggins phiggins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! 👍

@tas50 tas50 merged commit 76452f7 into master Nov 14, 2020
@tas50 tas50 deleted the build_essential branch November 14, 2020 02:22
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

Successfully merging this pull request may close these issues.

None yet

2 participants