Replies: 1 comment 22 replies
-
Can you provide your configuration? |
Beta Was this translation helpful? Give feedback.
22 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
Every time I run our build, if I look at the size of the output chunk files, it is different every single time. Usually the number of chunk files is the same, but the size on disk of the files is different. None of the source code or settings have changed in between builds. This is just running the same build multiple times.
Here are the total chunk sizes from 8 runs of our build, one after another, in bytes:
The difference between the biggest and smallest is 39171 bytes. Percentage-wise this is totally insignificant, like 0.02% of the total build size. So it's not a problem for the build itself.
The problem is that we are trying to implement build checks that detect when somebody has made a change that is causing the build output to increase. And with non-deterministic output, it makes it difficult to pin down a specific change to blame, so we can catch it before it gets merged. A commit that increases the size, might make it under the current threshold, and then that code could accidentally fail the check in somebody else's PR because they happen to be unlucky and hit a build that comes in on the high side.
We could implement our check based on module sizes, but that doesn't take into consideration the duplication that can happen during chunk splitting. We're hoping to have out check be done on the true final output size of the build.
Any ideas about why this non-deterministic output might be happening? I'm guessing it's during splitChunks, but I don't know for sure.
Beta Was this translation helpful? Give feedback.
All reactions