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 prune files from the gems we install #672

Merged
merged 2 commits into from
Nov 6, 2019
Merged

Aggressively prune files from the gems we install #672

merged 2 commits into from
Nov 6, 2019

Conversation

tas50
Copy link
Contributor

@tas50 tas50 commented Nov 4, 2019

See what we can do about our overall file size and count by removing
non-library files from the package.

512MB - > 493MB. 3095 files removed

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

@tas50 tas50 requested review from a team as code owners November 4, 2019 20:39
@tas50
Copy link
Contributor Author

tas50 commented Nov 5, 2019

Paging @lamont-granquist since he probably has opinions here as well

Copy link

@afiune afiune left a comment

Choose a reason for hiding this comment

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

Is there a way we can install the gems without all these files instead of removing the files as part of a clean-up-process?

@tas50
Copy link
Contributor Author

tas50 commented Nov 5, 2019

Is there a way we can install the gems without all these files instead of removing the files as part of a clean-up-process?

Nope. We can only open PRs for each of the 100 gems to remove the files, but so far about 50% have said no since they want all their test files to ship in the gems.

CHANGES
CHANGELOG
README
Gemfile
Copy link
Contributor

Choose a reason for hiding this comment

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

think you broke appbundler here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is at the end once appbundler has already done its thing. Is that going to be a problem still?

donate.png
Appraisals
website
*.gemspec
Copy link
Contributor

Choose a reason for hiding this comment

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

and probably here

@lamont-granquist
Copy link
Contributor

seems fine other than those two

@tas50
Copy link
Contributor Author

tas50 commented Nov 5, 2019

@afiune this is the list of what we'd need to cleanup at the gem level to avoid this kind of built time cleanup: #640

See what we can do about our overall file size and counnt by removing
non-library files from the package.

Signed-off-by: Tim Smith <tsmith@chef.io>
We need to think through what this would do to appbundle udpating

Signed-off-by: Tim Smith <tsmith@chef.io>
@tas50 tas50 merged commit e19ef35 into master Nov 6, 2019
@chef-expeditor chef-expeditor bot deleted the prune branch November 6, 2019 19:41
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.

3 participants