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

fix(autoclean): Include only common CI configs in default .yarnclean #4724

Merged
merged 1 commit into from
Oct 17, 2017

Conversation

lzhang
Copy link
Contributor

@lzhang lzhang commented Oct 17, 2017

Summary

Remove entries to clean *.yml and .*.yml from the default filter list in .yarnclean. Instead, include configuration files from common CI and build tools.

  • Travis CI
  • CircleCI
  • AppVeyor
  • Codeship
  • Wercker

Fixes #4281, fixes #2276.

Test plan

$ yarn autoclean --init
yarn autoclean v1.2.1
[1/1] Creating ".yarnclean"...
info Created ".yarnclean". Please review the contents of this file then run "yarn autoclean --force" to perform a clean.
✨  Done in 0.15s.
$ grep yml .yarnclean 
appveyor.yml
circle.yml
codeship-services.yml
codeship-steps.yml
wercker.yml
.travis.yml

Address yarnpkg#4281 by removing entries to clean `*.yml` and `.*.yml` from the
default filter list in `.yarnclean`.
@buildsize
Copy link

buildsize bot commented Oct 17, 2017

This change will increase the build size from 9.94 MB to 9.94 MB, an increase of 215 bytes (0%)

File name Previous Size New Size Change
yarn-[version].noarch.rpm 859.41 KB 859.39 KB -21 bytes (0%)
yarn-[version].js 3.78 MB 3.78 MB 62 bytes (0%)
yarn-legacy-[version].js 3.83 MB 3.83 MB 62 bytes (0%)
yarn-v[version].tar.gz 865.03 KB 865.04 KB 6 bytes (0%)
yarn_[version]all.deb 654.06 KB 654.16 KB 106 bytes (0%)

@lzhang
Copy link
Contributor Author

lzhang commented Oct 17, 2017

Also resolves #2276.

@BYK
Copy link
Member

BYK commented Oct 17, 2017

Very well thought out patch. Thanks a lot!

@BYK BYK merged commit b97c797 into yarnpkg:master Oct 17, 2017
@lzhang lzhang deleted the explicit-ci-config-autoclean branch October 17, 2017 11:12
joaolucasl pushed a commit to joaolucasl/yarn that referenced this pull request Oct 27, 2017
…arnpkg#4724)

**Summary**

Remove entries to clean `*.yml` and `.*.yml` from the default filter list in `.yarnclean`. Instead, include configuration files from common CI and build tools.

- Travis CI
- CircleCI
- AppVeyor
- Codeship
- Wercker

Fixes yarnpkg#4281, fixes yarnpkg#2276.

**Test plan**

```shell
$ yarn autoclean --init
yarn autoclean v1.2.1
[1/1] Creating ".yarnclean"...
info Created ".yarnclean". Please review the contents of this file then run "yarn autoclean --force" to perform a clean.
✨  Done in 0.15s.
$ grep yml .yarnclean 
appveyor.yml
circle.yml
codeship-services.yml
codeship-steps.yml
wercker.yml
.travis.yml
```
@crashuniverse
Copy link

If you reach here looking at one of the related bugs, starting Nov 1, 2017 this fix is available in yarn version 1.3.0.

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.

[SUGGESTION] Make *.yml optional in initial .yarnclean Don't auto clean .yml files.
3 participants