You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Based on a discussion with @anorth in #497 it would be beneficial to include the bundle size delta between master and candidate branch in a PR message.
Some changes are clearly increasing bundle size, but some of them are a bit sneaky (e.g. bumping a dependency that by default would now include a large set of unused features). It would be great to not have to have it at the back of the head but right in front of us.
I'd imagine a GH bot posting a message to PR (or modifying an existing one to not bloat the discussion) with a simple cargo clean && cargo build && make bundle && du -b output/builtin-actors.car on both branches, calculating the delta in bytes and %.
An alternative implementation is a build step that writes the output size to a file that's checked in to git (orchestrate from Makefile or similar). In CI, build should check that the calculated value equals the written value. This puts the delta into code review directly rather than a comment on the GitHub issue, and makes the history of sizes easy to see.
Based on a discussion with @anorth in #497 it would be beneficial to include the bundle size delta between
master
and candidate branch in a PR message.Some changes are clearly increasing bundle size, but some of them are a bit sneaky (e.g. bumping a dependency that by default would now include a large set of unused features). It would be great to not have to have it at the back of the head but right in front of us.
I'd imagine a GH bot posting a message to PR (or modifying an existing one to not bloat the discussion) with a simple
cargo clean && cargo build && make bundle && du -b output/builtin-actors.car
on both branches, calculating the delta in bytes and %.Probably something along the lines of this workflow would do the trick (that is to say, having a modifiable message with shell output): https://github.com/LesnyRumcajs/grpc_bench/blob/master/.github/workflows/issue_bench.yml
The text was updated successfully, but these errors were encountered: