bundlesize
bundlesize copied to clipboard
BundleSize CircleCI Not Failing Build if bundle check fails
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
When BundleSize maxSize fails the process ends with Exit Code 0 instead of 1
If the current behavior is a bug, please provide the steps to reproduce.
What is the expected behavior? Expect failed bundlesize run to exit with Exit Code 1 and cause a failed build. If this is a feature request, what is motivation or use case for changing the behavior?
Please mention other relevant information.
- node version 8.9.1
- npm version 5.5.1
- Operating system
- bundlesize version 0.15.3
- CI you are using CircleCI
Wow, how long has it been that way 😧
Would you like to dig in deeper to find why is not correctly set?
Could you also paste the content of the test:size
script in package.json
? It could be as simple as || true
in there, would be a shame to dig into this issue only to find out the problem was in the usage :-)
Same here https://travis-ci.org/kenwheeler/cash/builds/510054291
:/