bundle-size-review
Passed Started
by
@rob.hunt

Robert Hunt
1Running with gitlab-runner 15.2.0~beta.17.g34ae4a68 (34ae4a68)2 on green-2.private.runners-manager.gitlab.com/gitlab.com/gitlab-org GaSD-S1F3 feature flags: FF_USE_FASTZIP:true6Using Docker executor with image registry.gitlab.com/gitlab-org/gitlab-build-images:danger ...7Authenticating with credentials from job payload (GitLab Registry)8Pulling docker image registry.gitlab.com/gitlab-org/gitlab-build-images:danger ...9Using docker image sha256:dceb87abfc31afd4c42011e0f437a8d0fd8ceb9450f5e57326a0b5352ecda858 for registry.gitlab.com/gitlab-org/gitlab-build-images:danger with digest registry.gitlab.com/gitlab-org/gitlab-build-images@sha256:2a86dae18d7f9e5b7056a6bff782019e5b63e397448e71f626e7ab429029837e ...11Running on runner-gasd-s1f-project-278964-concurrent-0 via runner-gasd-s1f-private-1657265410-59a407d2...13$ eval "$CI_PRE_CLONE_SCRIPT"14Fetching changes with git depth set to 20...15Initialized empty Git repository in /builds/gitlab-org/gitlab/.git/16Created fresh repository.17remote: Enumerating objects: 116498, done. 18remote: Counting objects: 100% (116498/116498), done. 19remote: Compressing objects: 100% (81419/81419), done. 20remote: Total 116498 (delta 48636), reused 75864 (delta 30671), pack-reused 0 21Receiving objects: 100% (116498/116498), 109.05 MiB | 35.07 MiB/s, done.22Resolving deltas: 100% (48636/48636), done.24 * [new ref] refs/pipelines/583136335 -> refs/pipelines/58313633525Checking out 8e0acc89 as refs/merge-requests/90821/merge...26Skipping Git submodules setup27$ git remote set-url origin "${CI_REPOSITORY_URL}"29Downloading artifacts for compile-production-assets (2695151932)...30Downloading artifacts from coordinator... ok id=2695151932 responseStatus=200 OK token=zbzZbKNw32Using docker image sha256:dceb87abfc31afd4c42011e0f437a8d0fd8ceb9450f5e57326a0b5352ecda858 for registry.gitlab.com/gitlab-org/gitlab-build-images:danger with digest registry.gitlab.com/gitlab-org/gitlab-build-images@sha256:2a86dae18d7f9e5b7056a6bff782019e5b63e397448e71f626e7ab429029837e ...33$ source scripts/utils.sh34$ mkdir -p bundle-size-review35$ cp webpack-report/index.html bundle-size-review/bundle-report.html37yarn global v1.22.1738[1/4] Resolving packages...39warning https://gitlab.com/gitlab-org/frontend/playground/webpack-memory-metrics.git > axios@0.19.2: Critical security vulnerability fixed in v0.21.1. For more information, see https://github.com/axios/axios/pull/341040[2/4] Fetching packages...41[3/4] Linking dependencies...42[4/4] Building fresh packages...43success Installed "webpack-memory-metrics@1.0.0" with binaries:44 - webpack-compare-reports45 - webpack-entry-point-analyser46Done in 6.48s.47$ danger_id=$(echo -n ${DANGER_GITLAB_API_TOKEN} | md5sum | awk '{print $1}' | cut -c5-10) # collapsed multi-line command48$ danger --dangerfile=danger/Dangerfile-bundle_size --fail-on-errors=true --verbose --danger_id=bundle-size-review-7feab849ENV variable $CI_PROJECT_ID is set to: 278964 (gitlab-org/gitlab), using this as the project now50ENV variable $CI_PROJECT_ID is set to: 278964 (gitlab-org/gitlab), using this as the project now51Running with a diff threshold of 1 KB or 2% increase52Read data for commit db27a159b0302ebad242e154315b292979942955 from ./bundle-size-review/analysis.json 53Receiving data for job 2695152008.54It seems like you are running the analysis on a merged pipeline55Comparing results of 5f4332fe18ec0c306bce475289197d0610f40669 (master) to db27a159b0302ebad242e154315b292979942955 (refs/merge-requests/90821/merge)56Parent commit from master seems to be: 5f4332fe18ec0c306bce475289197d0610f4066957Retrieving commit mapping58Let's gather more info around 5f4332fe18ec0c306bce475289197d0610f4066959Downloading data for 90c309dd507371a88af6c26f7b74d18368b45df760Analysis result:61- 2 new entry points62- 2 deleted entry points63- 17 entry points with significant growth64- 395 with minor changes65Successfully written to ./bundle-size-review/comparison.html66Successfully written to ./bundle-size-review/comparison.md67Results:68Markdown:69## Bundle size analysis [beta]70This compares changes in bundle size for entry points between the commits715f4332fe18ec0c306bce475289197d0610f40669 and db27a159b0302ebad242e154315b29297994295572### :sparkles: Special assets73| Entrypoint / Name | Size before | Size after | Diff | Diff in percent |74| --- | --- | --- | --- | --- |75| mainChunk | 1.98 MB | 1.96 MB | -11.92 KB | -0.6 % |76| average | 3.54 MB | 3.53 MB | -8.89 KB | -0.2 % |77### :fearful: Significant Growth: 1778<details>79<summary>Expand</summary>81| Entrypoint / Name | Size before | Size after | Diff | Diff in percent |82| --- | --- | --- | --- | --- |83| pages.projects.work_items | 974.08 KB | 1.35 MB | +403.72 KB | 41.4 % |84| pages.projects.merge_requests.show | 5.38 MB | 5.52 MB | +144.69 KB | 2.6 % |85| pages.projects.releases.edit | 1.56 MB | 1.61 MB | +55.58 KB | 3.5 % |86| pages.projects.releases.new | 1.56 MB | 1.61 MB | +55.58 KB | 3.5 % |87| pages.admin.audit_logs | 1.22 MB | 1.25 MB | +31.43 KB | 2.5 % |88| pages.projects.audit_events | 1.39 MB | 1.42 MB | +30.01 KB | 2.1 % |89| pages.groups.audit_events | 1.22 MB | 1.25 MB | +29.59 KB | 2.4 % |90| pages.operations.environments | 339.03 KB | 351.27 KB | +12.24 KB | 3.6 % |91| pages.operations.index | 467.45 KB | 479.69 KB | +12.24 KB | 2.6 % |92| pages.admin | 18.64 KB | 20.48 KB | +1.84 KB | 9.9 % |93The table above is limited to 10 entries. Please look at the [full report](https://gitlab.com/gitlab-org/gitlab/-/jobs/2695152008/artifacts/file/bundle-size-review/comparison.html) for more details94</details>95### :new: New entry points: 296<details>97<summary>Expand</summary>99| Entrypoint / Name | Size before | Size after | Diff | Diff in percent |100| --- | --- | --- | --- | --- |101| pages.groups.runners.index | 0 Bytes | 1.39 MB | +1.39 MB | 100.0 % |102| pages.groups.runners.show | 0 Bytes | 1013.91 KB | +1013.91 KB | 100.0 % |103</details>104- - -105Your MR has at least one entrypoint growing significantly (more > 1 KB or 2%).106If you write new or extend existing features, this is expected and there is nothing to worry about.107**Please consider pinging** someone from the FE Foundations (`@dmishunov`, `@justin_ho`, `@mikegreiling` or `@nmezzopera`) for review, if you are unsure about the size increase.108<p>109 <strong>Note:</strong>110 We do not have exact data for 5f4332fe18ec0c306bce475289197d0610f40669.111 So we have used data from: 90c309dd507371a88af6c26f7b74d18368b45df7.<br/>112 The target commit was too new, so we used the latest commit from master we have info on.<br/>113It might help to rerun the <code>bundle-size-review</code> job<br/>114This might mean that you have a few false positives in this report.115If something unrelated to your code changes is reported, you can check <a href="https://gitlab.com/gitlab-org/gitlab/-/compare/90c309dd507371a88af6c26f7b74d18368b45df7...5f4332fe18ec0c306bce475289197d0610f40669">this comparison</a> in order to see if they caused this change.116</p>117Please look at the [full report](https://gitlab.com/gitlab-org/gitlab/-/jobs/2695152008/artifacts/file/bundle-size-review/comparison.html) for more details118- - -119[Read more](https://gitlab.com/gitlab-org/frontend/playground/webpack-memory-metrics/-/blob/master/doc/report.md) about how this report works.121==> 'danger --dangerfile=danger/Dangerfile-bundle_size --fail-on-errors=true --verbose --danger_id=bundle-size-review-7feab8' succeeded in 34 seconds.123Uploading artifacts...124bundle-size-review: found 5 matching files and directories 125WARNING: Upload request redirected location=https://gitlab.com/api/v4/jobs/2695152008/artifacts?artifact_format=zip&artifact_type=archive&expire_in=31d new-url=https://gitlab.com126WARNING: Retrying... context=artifacts-uploader error=request redirected127Uploading artifacts as "archive" to coordinator... 201 Created id=2695152008 responseStatus=201 Created token=zbzZbKNw129Job succeeded