bundle-size-review
Passed Started
by
@alipniagov

Aleksei Lipniagov
1Running with gitlab-runner 15.9.0~beta.212.g8ccc65e7 (8ccc65e7)2 on green-4.private.runners-manager.gitlab.com/gitlab.com/gitlab-org rpvz2FF9, system ID: s_d704414ba02a3 feature flags: FF_NETWORK_PER_BUILD:true, FF_USE_FASTZIP:true, FF_USE_IMPROVED_URL_MASKING: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:567d0059b9d1c464aff0d957af14c3c210c6e4158c0097b72fccd0413f267a80 for registry.gitlab.com/gitlab-org/gitlab-build-images:danger with digest registry.gitlab.com/gitlab-org/gitlab-build-images@sha256:4ac287abd422143a85e55411a9320c23d689736077b6d3c2ed634b5e42df14f9 ...11Running on runner-rpvz2ff9-project-278964-concurrent-0 via runner-rpvz2ff9-private-1681309289-bce14fcc...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: 141454, done. 18remote: Counting objects: 100% (141454/141454), done. 19remote: Compressing objects: 100% (90831/90831), done. 20remote: Total 141454 (delta 62790), reused 98369 (delta 45315), pack-reused 0 21Receiving objects: 100% (141454/141454), 122.90 MiB | 26.90 MiB/s, done.22Resolving deltas: 100% (62790/62790), done.24 * [new ref] refs/pipelines/835170457 -> refs/pipelines/83517045725Checking out aa21306d as detached HEAD (ref is refs/merge-requests/116974/merge)...26Skipping Git submodules setup27$ git remote set-url origin "${CI_REPOSITORY_URL}"29Checking cache for ruby-gems-debian-bullseye-ruby-3.0-16...30Downloading cache.zip from https://storage.googleapis.com/gitlab-com-runners-cache/project/278964/ruby-gems-debian-bullseye-ruby-3.0-16 31Successfully extracted cache32Checking cache for node-modules-bullseye-test-16...33Downloading cache.zip from https://storage.googleapis.com/gitlab-com-runners-cache/project/278964/node-modules-bullseye-test-16 34Successfully extracted cache35Checking cache for assets-tmp-debian-bullseye-ruby-3.0-node-test-v1-16...36Downloading cache.zip from https://storage.googleapis.com/gitlab-com-runners-cache/project/278964/assets-tmp-debian-bullseye-ruby-3.0-node-test-v1-16 37Successfully extracted cache39Using docker image sha256:567d0059b9d1c464aff0d957af14c3c210c6e4158c0097b72fccd0413f267a80 for registry.gitlab.com/gitlab-org/gitlab-build-images:danger with digest registry.gitlab.com/gitlab-org/gitlab-build-images@sha256:4ac287abd422143a85e55411a9320c23d689736077b6d3c2ed634b5e42df14f9 ...40$ echo $FOSS_ONLY41$ [ "$FOSS_ONLY" = "1" ] && rm -rf ee/ qa/spec/ee/ qa/qa/specs/features/ee/ qa/qa/ee/ qa/qa/ee.rb42$ export GOPATH=$CI_PROJECT_DIR/.go43$ mkdir -p $GOPATH44$ source scripts/utils.sh45$ yarn_install_script55$ scripts/bundle_size_review56In a merge request, setting COMMIT_SHA to $CI_MERGE_REQUEST_SOURCE_BRANCH_SHA57$ yarn run webpack-prod > bundle-size-review/webpack-output.log58Browserslist: caniuse-lite is outdated. Please run:59 npx update-browserslist-db@latest60 Why you should do it regularly: https://github.com/browserslist/update-db#readme61Browserslist: caniuse-lite is outdated. Please run:62 npx update-browserslist-db@latest63 Why you should do it regularly: https://github.com/browserslist/update-db#readme64Warning: fragment with name MilestoneFragment already exists.65graphql-tag enforces all fragment names across your application to be unique; read more about66this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names67Warning: fragment with name MilestoneFragment already exists.68graphql-tag enforces all fragment names across your application to be unique; read more about69this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names70Warning: fragment with name Issue already exists.71graphql-tag enforces all fragment names across your application to be unique; read more about72this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names73Warning: fragment with name BoardListFragment already exists.74graphql-tag enforces all fragment names across your application to be unique; read more about75this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names76Warning: fragment with name BaseEpic already exists.77graphql-tag enforces all fragment names across your application to be unique; read more about78this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names79Warning: fragment with name User already exists.80graphql-tag enforces all fragment names across your application to be unique; read more about81this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names82Warning: fragment with name Label already exists.83graphql-tag enforces all fragment names across your application to be unique; read more about84this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names85Warning: fragment with name OrganizationFragment already exists.86graphql-tag enforces all fragment names across your application to be unique; read more about87this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names88Warning: fragment with name ContactFragment already exists.89graphql-tag enforces all fragment names across your application to be unique; read more about90this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names91Warning: fragment with name IssueFragment already exists.92graphql-tag enforces all fragment names across your application to be unique; read more about93this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names94==> 'yarn run webpack-prod > bundle-size-review/webpack-output.log' succeeded in 753 seconds.95yarn global v1.22.1796[1/4] Resolving packages...97warning 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/341098[2/4] Fetching packages...99[3/4] Linking dependencies...100[4/4] Building fresh packages...101success Installed "webpack-memory-metrics@1.0.0" with binaries:102 - webpack-compare-reports103 - webpack-entry-point-analyser104Done in 7.95s.105$ webpack-entry-point-analyser --from-file ./webpack-report/stats.json --json ./bundle-size-review/analysis.json --sha f4e588284c7c6d4a11fdcac99683e49c099f8a73106Start reading gargantuan JSON: /builds/gitlab-org/gitlab/webpack-report/stats.json107Found key errors108Found key warnings109Found key version110Found key hash111Found key time112Found key builtAt113Found key publicPath114Found key outputPath115Found key assetsByChunkName116Found key assets117Found key filteredAssets118Found key entrypoints119Found key namedChunkGroups120Found key chunks121Found key modules122Found key filteredModules123Found key logging124Found key children125Finished reading /builds/gitlab-org/gitlab/webpack-report/stats.json126ENV variable $CI_PROJECT_ID is set to: 278964 (gitlab-org/gitlab), using this as the project now127==> 'webpack-entry-point-analyser --from-file ./webpack-report/stats.json --json ./bundle-size-review/analysis.json --sha f4e588284c7c6d4a11fdcac99683e49c099f8a73' succeeded in 38 seconds.128$ webpack-compare-reports --job 4101394748 --to-file ./bundle-size-review/analysis.json --html ./bundle-size-review/comparison.html --markdown ./bundle-size-review/comparison.md129ENV variable $CI_PROJECT_ID is set to: 278964 (gitlab-org/gitlab), using this as the project now130Running with a diff threshold of 1 KB or 2% increase131Read data for commit f4e588284c7c6d4a11fdcac99683e49c099f8a73 from ./bundle-size-review/analysis.json 132Receiving data for job 4101394748.133It seems like you are running the analysis on a merged pipeline134Comparing results of ad763ee0306414f8a90409dcd5f6d4f5a4c02800 (master) to f4e588284c7c6d4a11fdcac99683e49c099f8a73 (refs/merge-requests/116974/merge)135Parent commit from master seems to be: ad763ee0306414f8a90409dcd5f6d4f5a4c02800136Retrieving commit mapping137Let's gather more info around ad763ee0306414f8a90409dcd5f6d4f5a4c02800138Downloading data for 3e47f6ef0986f3c63cae6ae20e27bcb53f74c2fc139Analysis result:140- 457 with minor changes141Successfully written to ./bundle-size-review/comparison.html142Successfully written to ./bundle-size-review/comparison.md143==> 'webpack-compare-reports --job 4101394748 --to-file ./bundle-size-review/analysis.json --html ./bundle-size-review/comparison.html --markdown ./bundle-size-review/comparison.md' succeeded in 1 seconds.144$ danger --dangerfile=danger/Dangerfile-bundle_size --fail-on-errors=true --verbose --danger_id=bundle-size-review-2ee1c7145Results:146Markdown:147## Bundle size analysis [beta]148This compares changes in bundle size for entry points between the commits149ad763ee0306414f8a90409dcd5f6d4f5a4c02800 and f4e588284c7c6d4a11fdcac99683e49c099f8a73150### :sparkles: Special assets151| Entrypoint / Name | Size before | Size after | Diff | Diff in percent |152| --- | --- | --- | --- | --- |153| average | 3.62 MB | 3.62 MB | - | 0.0 % |154| mainChunk | 2.08 MB | 2.08 MB | - | 0.0 % |155- - -156<p>157 <strong>Note:</strong>158 We do not have exact data for ad763ee0306414f8a90409dcd5f6d4f5a4c02800.159 So we have used data from: 3e47f6ef0986f3c63cae6ae20e27bcb53f74c2fc.<br/>160 The intended commit has no webpack pipeline, so we chose the last commit with one before it.161</p>162Please look at the [full report](https://gitlab.com/gitlab-org/gitlab/-/jobs/4101394748/artifacts/file/bundle-size-review/comparison.html) for more details163- - -164[Read more](https://gitlab.com/gitlab-org/frontend/playground/webpack-memory-metrics/-/blob/master/doc/report.md) about how this report works.166==> 'danger --dangerfile=danger/Dangerfile-bundle_size --fail-on-errors=true --verbose --danger_id=bundle-size-review-2ee1c7' succeeded in 4 seconds.168Not uploading cache ruby-gems-debian-bullseye-ruby-3.0-16 due to policy169Not uploading cache node-modules-bullseye-test-16 due to policy170Not uploading cache assets-tmp-debian-bullseye-ruby-3.0-node-test-v1-16 due to policy172Uploading artifacts...173bundle-size-review/: found 6 matching artifact files and directories 174WARNING: Upload request redirected location=https://gitlab.com/api/v4/jobs/4101394748/artifacts?artifact_format=zip&artifact_type=archive&expire_in=31d new-url=https://gitlab.com175WARNING: Retrying... context=artifacts-uploader error=request redirected176Uploading artifacts as "archive" to coordinator... 201 Created id=4101394748 responseStatus=201 Created token=64_ef5P5178Job succeeded