Skip to content

Ignore files when exporting package#5527

Merged
DavertMik merged 1 commit intoCodeception:3.0from
weshooper:patch-1
Jun 2, 2019
Merged

Ignore files when exporting package#5527
DavertMik merged 1 commit intoCodeception:3.0from
weshooper:patch-1

Conversation

@weshooper
Copy link
Copy Markdown
Contributor

@weshooper weshooper commented May 27, 2019

The install file downloaded by Composer is currently 1.1 MB.

These changes reduce it to ~0.4 MB, speeding up installs. Won't matter most of the time, CI servers etc. but noticeable when a developer is installing via a mobile tethered connection for example.

Codeception is installed ~373,000 times per month, so transferring ~261 fewer GB every month should (i.e. impossible to calculate, but one website estimates) avoid 783kg of unnecessary CO2 emissions every month!

We use (and love!) Codeception daily, but someone more familiar with the package itself will hopefully be able to verify I've not excluded anything expected to be present on the developers machine after installing - and maybe even exclude some I haven't. I don't believe this to be a breaking change, since the files excluded are for developing Codeception, rather than to use it.

Background:

The [install file](https://github.com/Codeception/Codeception/archive/3.0.zip) downloaded by Composer is currently 1.1 MB.

These changes reduce it to ~0.4 MB, speeding up installs. Won't matter most of the time, CI servers etc. but noticeable when a developer is installing via a mobile tethered connection for example.

Codeception [is installed ~373,000 times per month](https://packagist.org/packages/codeception/codeception/stats), so there's also (as noted in one of the background links below) an assumed carbon reduction bonus in not transferring the ~261 GB difference every month, but I've no idea if that's even possible to measure! :-)

We use (and love!) Codeception daily, but someone more familiar with the package itself will hopefully be able to verify I've not excluded anything expected to be present on the developers machine after installing - and maybe even exclude some I haven't. I don't believe this to be a breaking change, since the files excluded are for developing Codeception, rather than to use it.

Background:

- https://madewithlove.be/gitattributes/
- https://www.reddit.com/r/PHP/comments/2jzp6k/i_dont_need_your_tests_in_my_production/
@DavertMik
Copy link
Copy Markdown
Member

Thank you I was always wondering how to do it 😎

@DavertMik DavertMik merged commit af7b4d1 into Codeception:3.0 Jun 2, 2019
@weshooper weshooper deleted the patch-1 branch June 2, 2019 11:02
@Naktibalda
Copy link
Copy Markdown
Member

It looks like this change broke AppVeyor build.

@Naktibalda
Copy link
Copy Markdown
Member

Confirmed.
Unignoring yml files makes appveyor fail with `The "C:\projects\codeception\tests" directory does not exist.

@lyrixx
Copy link
Copy Markdown

lyrixx commented Sep 15, 2019

Nice stats. But we forgot that almost all packages are cached by CI platforms 😀

simonschaufi added a commit to simonschaufi/MinkExtension that referenced this pull request Jun 6, 2020
This commit is part of a campaign to reduce the amount of data transferred to save global bandwidth and reduce the amount of CO2. See Codeception/Codeception#5527 for more info.
simonschaufi added a commit to simonschaufi/MinkExtension that referenced this pull request Jun 6, 2020
This commit is part of a campaign to reduce the amount of data transferred to save global bandwidth and reduce the amount of CO2. See Codeception/Codeception#5527 for more info.
simonschaufi added a commit to simonschaufi/Goutte that referenced this pull request Jun 6, 2020
This commit is part of a campaign to reduce the amount of data transferred to save global bandwidth and reduce the amount of CO2. See Codeception/Codeception#5527 for more info.
simonschaufi added a commit to simonschaufi/hamcrest-php that referenced this pull request Jun 6, 2020
This commit is part of a campaign to reduce the amount of data transferred to save global bandwidth and reduce the amount of CO2. See Codeception/Codeception#5527 for more info.
fedeisas pushed a commit to fedeisas/laravel-mail-css-inliner that referenced this pull request Sep 12, 2020
This commit is part of a campaign to reduce the amount of data transferred to save global bandwidth and reduce the amount of CO2. See Codeception/Codeception#5527 for more info.
simonschaufi added a commit to simonschaufi/Goutte that referenced this pull request Oct 16, 2020
This commit is part of a campaign to reduce the amount of data transferred to save global bandwidth and reduce the amount of CO2. See Codeception/Codeception#5527 for more info.
simonschaufi added a commit to simonschaufi/fusion-form that referenced this pull request Oct 16, 2020
This commit is part of a campaign to reduce the amount of data transferred to save global bandwidth and reduce the amount of CO2. See Codeception/Codeception#5527 for more info.
stof pushed a commit to Behat/Gherkin that referenced this pull request Oct 19, 2020
This commit is part of a campaign to reduce the amount of data transferred to save global bandwidth and reduce the amount of CO2. See Codeception/Codeception#5527 for more info.
simonschaufi added a commit to simonschaufi/MinkExtension that referenced this pull request Oct 22, 2020
This commit is part of a campaign to reduce the amount of data transferred to save global bandwidth and reduce the amount of CO2. See Codeception/Codeception#5527 for more info.
simonschaufi added a commit to simonschaufi/MinkExtension that referenced this pull request Oct 23, 2020
This commit is part of a campaign to reduce the amount of data transferred to save global bandwidth and reduce the amount of CO2. See Codeception/Codeception#5527 for more info.
simonschaufi added a commit to simonschaufi/Laravel-Phone that referenced this pull request Oct 31, 2020
This commit is part of a campaign to reduce the amount of data transferred to save global bandwidth and reduce the amount of CO2. See Codeception/Codeception#5527 for more info.
Propaganistas pushed a commit to Propaganistas/Laravel-Phone that referenced this pull request Nov 4, 2020
This commit is part of a campaign to reduce the amount of data transferred to save global bandwidth and reduce the amount of CO2. See Codeception/Codeception#5527 for more info.
smartycoder pushed a commit to smartycoder/json-raw-encoder that referenced this pull request Nov 10, 2020
    
This commit is part of a campaign to reduce the amount of data transferred to save global bandwidth and reduce the amount of CO2. See Codeception/Codeception#5527 for more info.
dragonmantank pushed a commit to dragonmantank/cron-expression that referenced this pull request Nov 24, 2020
This commit is part of a campaign to reduce the amount of data transferred to save global bandwidth and reduce the amount of CO2. See Codeception/Codeception#5527 for more info.
simonschaufi added a commit to simonschaufi/avatar that referenced this pull request Dec 16, 2020
This commit is part of a campaign to reduce the amount of data transferred to save global bandwidth and reduce the amount of CO2. See Codeception/Codeception#5527 for more info.
simonschaufi added a commit to simonschaufi/menus that referenced this pull request Dec 28, 2020
This commit is part of a campaign to reduce the amount of data transferred to save global bandwidth and reduce the amount of CO2. See Codeception/Codeception#5527 for more info.
simonschaufi added a commit to simonschaufi/git-wrapper that referenced this pull request Jan 2, 2021
This commit is part of a campaign to reduce the amount of data transferred to save global bandwidth and reduce the amount of CO2. See Codeception/Codeception#5527 for more info.
simonschaufi added a commit to simonschaufi/Geonames that referenced this pull request Jan 8, 2021
This commit is part of a campaign to reduce the amount of data transferred to save global bandwidth and reduce the amount of CO2. See Codeception/Codeception#5527 for more info.
simonschaufi added a commit to simonschaufi/php-slack-api that referenced this pull request Feb 1, 2021
This commit is part of a campaign to reduce the amount of data transferred to save global bandwidth and reduce the amount of CO2. See Codeception/Codeception#5527 for more info.
uyab pushed a commit to laravolt/avatar that referenced this pull request Feb 9, 2021
This commit is part of a campaign to reduce the amount of data transferred to save global bandwidth and reduce the amount of CO2. See Codeception/Codeception#5527 for more info.
damienalexandre pushed a commit to jolicode/slack-php-api that referenced this pull request Feb 26, 2021
This commit is part of a campaign to reduce the amount of data transferred to save global bandwidth and reduce the amount of CO2. See Codeception/Codeception#5527 for more info.
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.

4 participants