Project

General

Profile

Support #6145

Packaging 1.10

Added by Jérôme Warnier over 6 years ago. Updated almost 4 years ago.

Status:
Feature implemented
Priority:
Normal
Category:
Global / Others / Misc
Target version:
-
Start date:
13/05/2013
Due date:
% Done:

100%

Estimated time:
Complexity:
Normal
SCRUM pts - complexity:
?

Description

Preparing 1.10 release.

Please note this version is taking significantly more disk space than 1.9.4 (250MB vs 150MB). Probably due to directory hierarchy changes, but not only.


Related issues

Related to Chamilo LMS - Support #6617: Next version number after Chamilo 1.9.8: 1.10? 2.0? 10.0? 14.0?Bug resolved23/08/2013

Actions

History

#1

Updated by Jérôme Warnier over 6 years ago

As an example, I noticed there are 20MB worth of TrueType (TTF) fonts for mpdf in the vendor directory, probably not needed at all in most case because they are already on the system elsewhere (but then we probably need to investigate how to tell MPDF to use the system ones).

#2

Updated by Jérôme Warnier about 6 years ago

It got worst (256Mo)...
This is not going into the right direction.

#3

Updated by Julio Montoya about 6 years ago

  • Status changed from Assigned to Needs more info

Jérôme Warnier wrote:

It got worst (256Mo)...
This is not going into the right direction.

This problem is kind of easy to fix, we could just remove folders! :)

- Removing main/lang (now we use po files) ~23.9MB
- Removing main/inc/lib/javascript/fckeditor now we use (ckeditor) ~16.3MB
- Removing libraries for development in composer:

        "knplabs/gaufrette": "0.2.*@dev", ~1MB
        "bt51/gaufrette-serviceprovider": "dev-master", 
        "symfony/browser-kit": "~2.3", 
        "symfony/web-profiler-bundle": "~2.3",
        "silex/web-profiler": "1.0.x-dev",
        "natxet/CssMin": "dev-master",
        "leafo/lessphp": "dev-master",
        "mheap/silex-assetic": "1.0.*@dev",
        "filp/whoops": "dev-master" 

All this files in vendor aprox ~3MB

- Removing all the unused css styles ~10MB
- Removing the /tests folder ~10MB
- Removing "tests" unused files inside some vendors:

vendor/alchemy/zippy/tests ~14.2MB
vendor/imagine/imagine/tests ~3.8MB
vendor/doctrine/orm/tests ~3.1MB
vendor/swiftmailer/swiftmailer/test-suite ~4.2MB
vendor/gedmo/doctrine-extensions/tests ~2.3 MB
vendor/ezyang/htmlpurifier/tests ~1.5MB
vendor/guzzle/guzzle ~3.6MB

I think we should create a new branch in github called "develop" or "dev". The "vendor" folder will be empty and all our commits will be sent there. Every serious PHP developer will use this branch and use composer properly. If other developer don't know how to use this, they could just use the master which is an stable-fat version and contains the vendors needed to install Chamilo, etc.

Then, in the "master" branch we could add the "production ready" vendor folder (with no dev crap). I think it was a good idea to use the git flow approach that Marco/Diego proposed. In our case we could start just with 2 branches "master" and "dev" all PR will be added in dev. Then we could import those changes in "master" that will be a "stable" version.

I highly recommend to see this:

http://vimeo.com/16018419

What do you think???

#4

Updated by Jérôme Warnier about 6 years ago

Any idea on the overall size reduction this would mean?

#5

Updated by Julio Montoya about 6 years ago

Jérôme Warnier wrote:

Any idea on the overall size reduction this would mean?

I just updated my comment with the corresponding size + other tests folders, so it will be a total of ~96MB

#6

Updated by Yannick Warnier about 6 years ago

Removing the unused CSS dirs should not be included in the cleanup. We need those for legacy Chamilo support.
I'm OK with the rest of the removal.

#7

Updated by Yannick Warnier about 6 years ago

As far as the USB keys are concerned (for our little project), this shouldn't be a worry. In PHP, only files that are included are "touched" or loaded in memory, so there's no real "loss" in having 100 more MBs, and we won't have much time to play with it. Jérôme, if you like, you can write a script to clean those dirs before they are put on the key, but I wouldn't really worry about them.

#8

Updated by Jérôme Warnier about 6 years ago

Yannick Warnier wrote:

As far as the USB keys are concerned (for our little project), this shouldn't be a worry. In PHP, only files that are included are "touched" or loaded in memory, so there's no real "loss" in having 100 more MBs, and we won't have much time to play with it. Jérôme, if you like, you can write a script to clean those dirs before they are put on the key, but I wouldn't really worry about them.

This does not belong here, I believe.

#9

Updated by Jérôme Warnier about 6 years ago

Yannick Warnier wrote:

Removing the unused CSS dirs should not be included in the cleanup. We need those for legacy Chamilo support.
I'm OK with the rest of the removal.

And what about the fonts for MPDF (if still used at all)?

#10

Updated by Jérôme Warnier about 6 years ago

It got even worst (278Mo today)...

#11

Updated by Yannick Warnier almost 4 years ago

  • Status changed from Needs more info to Feature implemented
  • Target version deleted (2.0)
  • % Done changed from 0 to 100

Could not implement size reduction, and unlikely to happen now we're including more Symfony components. Maybe in the long run this will become possible.

#12

Updated by Jérôme Warnier almost 4 years ago

Yannick Warnier wrote:

Could not implement size reduction, and unlikely to happen now we're including more Symfony components. Maybe in the long run this will become possible.

I'm still wondering if the following suggestions from Julio have been implemented:
- Removing main/lang (now we use po files) ~23.9MB
- Removing main/inc/lib/javascript/fckeditor now we use (ckeditor) ~16.3MB

This would be already really significant in size reduction.

#13

Updated by Yannick Warnier almost 4 years ago

These are matters for 2.0 now, not 1.10 (already released and doesn't use .po files)

Also available in: Atom PDF