Project

General

Profile

Bug #14219

package size of Ruby 2.5 is larger than 2.4

Added by hsbt (Hiroshi SHIBATA) 10 months ago. Updated 6 months ago.

Status:
Rejected
Priority:
Normal
Target version:
-
[ruby-core:84396]

Description

A package of Ruby 2.5 was increased file size (about 15MB) from Ruby 2.4.

  • ruby-2.4.3.tar.xz: 9.6M
  • ruby-2.5.0-rc1.tar.xz: 25M

It was caused by spec directory.

~/D/ruby-2.4.3 > du -md 1 | sort -rn | head 
79  .
26  ./enc
14  ./ext
12  ./test
7   ./lib
7   ./doc
3   ./gems
2   ./sample
1   ./win32
1   ./tool

~/D/ruby-2.5.0-rc1 > du -md 1 | sort -rn | head 
121 .
40  ./spec
26  ./enc
14  ./ext
12  ./test
9   ./lib
7   ./doc
3   ./gems
2   ./sample
1   ./win32

After releasing 2.5, I (and eregon?) try to reduce it size or remove them from tar package.


Related issues

Related to Ruby trunk - Feature #12733: Bundle bundler to ruby coreAssigned

History

#1 [ruby-core:84397] Updated by normalperson (Eric Wong) 10 months ago

hsbt@ruby-lang.org wrote:

Bug #14219: package size of Ruby 2.5 is larger than 2.4
https://bugs.ruby-lang.org/issues/14219

  • ruby-2.4.3.tar.xz: 9.6M
  • ruby-2.5.0-rc1.tar.xz: 25M

It was caused by spec directory.

There's also a lot of bundler vcr data which is already
gz compressed, so not recompressible with xz.

spec/rubyspec/ still exists in SVN and it looks like there's a
lot of empty directories underneath. "git svn" ignores
empty directories, but I guess the tarball is created from SVN.
We can remove those empty trees ASAP and save our users' inodes.

#2 Updated by naruse (Yui NARUSE) 10 months ago

  • Target version deleted (2.6)

#3 [ruby-core:84533] Updated by Eregon (Benoit Daloze) 10 months ago

Could someone remove spec/rubyspec in SVN? (it's still present in the 2.5.0 tarball)
I did a "git mv" if I recall correctly, but it seems git-svn did not handle this case correctly.

I think it makes sense to keep spec/mspec and spec/ruby, just like we keep test/, if one can run them from the tarball (make test-spec works).

ruby-2.5.0.tar.xz is 11.3 MB so that seems reasonable.

#4 [ruby-core:84535] Updated by normalperson (Eric Wong) 10 months ago

eregontp@gmail.com wrote:

Could someone remove spec/rubyspec in SVN? (it's still present in the 2.5.0 tarball)

Done in r61506

I did a "git mv" if I recall correctly, but it seems git-svn did not handle this case correctly.

Sorry for the confusion, git itself doesn't detect directory renames, yet,
so git svn can't handle it, yet... It's being worked on for git proper,
so git-svn might be able to do it one day, too:

https://public-inbox.org/git/20171129014237.32570-1-newren@gmail.com/

#5 Updated by hsbt (Hiroshi SHIBATA) 8 months ago

#6 [ruby-core:86594] Updated by hsbt (Hiroshi SHIBATA) 6 months ago

  • Status changed from Assigned to Rejected

I postpone merging bundler into Ruby core. I will close this by stating it again.

Also available in: Atom PDF