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

Aggressively clean up files in the workstation install #830

Merged
merged 4 commits into from
Dec 24, 2019
Merged

Conversation

tas50
Copy link
Contributor

@tas50 tas50 commented Dec 21, 2019

  • Remove /ext dirs from gems since we've already compiled the extensions and no longer need the hundreds of files here
  • Remove Rakefile/Gemspec/Gemfile when we don't also have a bin dir (appbundler needs these)
  • Remove specs that we're not using in our verify command

This might seem overly complex, but the win is pretty substantial so I'd argue it's worth the trouble. Stats for this PR on my mac:

9.28% reduction in size of /opt/chef-workstation (47.9 megs)
11.47% reductions in /opt/chef-workstation file count (4,934 files)

The big one here is cleaning up the ext dir post gem compilation. That frees up 34 megs from the chef-workstation install

Signed-off-by: Tim Smith <tsmith@chef.io>
Don't remove files that appbundler might need anywhere we have a bin dir
Don't remove specs we use to test in the verify command

This might seem overly complex, but the win is pretty substantial so I'd argue it's worth the trouble. Stats for this PR on my mac:

9.18% reduction in size of /opt/chef-workstation
10.63% reductions in /opt/chef-workstation file count

Signed-off-by: Tim Smith <tsmith@chef.io>
@tas50 tas50 requested review from a team as code owners December 21, 2019 22:59
This is one of the dirs leftover in backports

Signed-off-by: Tim Smith <tsmith@chef.io>
Signed-off-by: Tim Smith <tsmith@chef.io>
@tas50 tas50 merged commit 15001c9 into master Dec 24, 2019
@chef-expeditor chef-expeditor bot deleted the cleanup_v2 branch December 24, 2019 18:39
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.

2 participants