bundle-size-review
Passed Started
by
@ntepluhina

Natalia Tepluhina
1Running with gitlab-runner 15.9.0~beta.212.g8ccc65e7 (8ccc65e7)2 on green-1.private.runners-manager.gitlab.com/gitlab.com/gitlab-org 4bq1s9yM, system ID: s_9d15f3e4e7ae3 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-4bq1s9ym-project-278964-concurrent-0 via runner-4bq1s9ym-private-1684459958-3205c0bd...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: 144008, done. 18remote: Counting objects: 100% (144008/144008), done. 19remote: Compressing objects: 100% (102076/102076), done. 20remote: Total 144008 (delta 64387), reused 89305 (delta 36415), pack-reused 0 21Receiving objects: 100% (144008/144008), 126.62 MiB | 31.72 MiB/s, done.22Resolving deltas: 100% (64387/64387), done.24 * [new ref] refs/pipelines/872240128 -> refs/pipelines/87224012825Checking out 4e5a698c as detached HEAD (ref is refs/merge-requests/120843/merge)...26Skipping Git submodules setup27$ git remote set-url origin "${CI_REPOSITORY_URL}"29Checking cache for ruby-gems-debian-bullseye-ruby-3.0-16...30cache.zip is up to date 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.log58Warning: fragment with name MilestoneFragment already exists.59graphql-tag enforces all fragment names across your application to be unique; read more about60this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names61Warning: fragment with name MilestoneFragment already exists.62graphql-tag enforces all fragment names across your application to be unique; read more about63this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names64Warning: fragment with name Issue 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 BoardListFragment 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 BaseEpic 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 User 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 Label 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 IssueFragment 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 OrganizationFragment 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 ContactFragment 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-names88==> 'yarn run webpack-prod > bundle-size-review/webpack-output.log' succeeded in 790 seconds.89yarn global v1.22.1790[1/4] Resolving packages...91warning 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/341092[2/4] Fetching packages...93[3/4] Linking dependencies...94[4/4] Building fresh packages...95success Installed "webpack-memory-metrics@1.0.0" with binaries:96 - webpack-compare-reports97 - webpack-entry-point-analyser98Done in 7.21s.99$ webpack-entry-point-analyser --from-file ./webpack-report/stats.json --json ./bundle-size-review/analysis.json --sha 84c0008bc6f928072220bb19043539ea6a502fcb100Start reading gargantuan JSON: /builds/gitlab-org/gitlab/webpack-report/stats.json101Found key errors102Found key warnings103Found key version104Found key hash105Found key time106Found key builtAt107Found key publicPath108Found key outputPath109Found key assetsByChunkName110Found key assets111Found key filteredAssets112Found key entrypoints113Found key namedChunkGroups114Found key chunks115Found key modules116Found key filteredModules117Found key logging118Found key children119Finished reading /builds/gitlab-org/gitlab/webpack-report/stats.json120ENV variable $CI_PROJECT_ID is set to: 278964 (gitlab-org/gitlab), using this as the project now121==> 'webpack-entry-point-analyser --from-file ./webpack-report/stats.json --json ./bundle-size-review/analysis.json --sha 84c0008bc6f928072220bb19043539ea6a502fcb' succeeded in 37 seconds.122$ webpack-compare-reports --job 4313143482 --to-file ./bundle-size-review/analysis.json --html ./bundle-size-review/comparison.html --markdown ./bundle-size-review/comparison.md123ENV variable $CI_PROJECT_ID is set to: 278964 (gitlab-org/gitlab), using this as the project now124Running with a diff threshold of 1 KB or 2% increase125Read data for commit 84c0008bc6f928072220bb19043539ea6a502fcb from ./bundle-size-review/analysis.json 126Receiving data for job 4313143482.127It seems like you are running the analysis on a merged pipeline128Comparing results of 9d4873fd3c5cbe00cce7c20e26d3c0c87f2d6cd8 (master) to 84c0008bc6f928072220bb19043539ea6a502fcb (refs/merge-requests/120843/merge)129Parent commit from master seems to be: 9d4873fd3c5cbe00cce7c20e26d3c0c87f2d6cd8130Retrieving commit mapping131Let's gather more info around 9d4873fd3c5cbe00cce7c20e26d3c0c87f2d6cd8132Downloading data for acc31257d223a940607e35139ea54bb6db7e7b0a133Analysis result:134- 465 with minor changes135Successfully written to ./bundle-size-review/comparison.html136Successfully written to ./bundle-size-review/comparison.md137==> 'webpack-compare-reports --job 4313143482 --to-file ./bundle-size-review/analysis.json --html ./bundle-size-review/comparison.html --markdown ./bundle-size-review/comparison.md' succeeded in 1 seconds.138$ danger --dangerfile=danger/Dangerfile-bundle_size --fail-on-errors=true --verbose --danger_id=bundle-size-review-2677df139Results:140Markdown:141## Bundle size analysis [beta]142This compares changes in bundle size for entry points between the commits1439d4873fd3c5cbe00cce7c20e26d3c0c87f2d6cd8 and 84c0008bc6f928072220bb19043539ea6a502fcb144### :sparkles: Special assets145| Entrypoint / Name | Size before | Size after | Diff | Diff in percent |146| --- | --- | --- | --- | --- |147| average | 4.02 MB | 4.02 MB | - | -0.0 % |148| mainChunk | 2.88 MB | 2.88 MB | - | 0.0 % |149- - -150<p>151 <strong>Note:</strong>152 We do not have exact data for 9d4873fd3c5cbe00cce7c20e26d3c0c87f2d6cd8.153 So we have used data from: acc31257d223a940607e35139ea54bb6db7e7b0a.<br/>154 The intended commit has no webpack pipeline, so we chose the last commit with one before it.155</p>156Please look at the [full report](https://gitlab.com/gitlab-org/gitlab/-/jobs/4313143482/artifacts/file/bundle-size-review/comparison.html) for more details157- - -158[Read more](https://gitlab.com/gitlab-org/frontend/playground/webpack-memory-metrics/-/blob/master/doc/report.md) about how this report works.160==> 'danger --dangerfile=danger/Dangerfile-bundle_size --fail-on-errors=true --verbose --danger_id=bundle-size-review-2677df' succeeded in 3 seconds.162Not uploading cache ruby-gems-debian-bullseye-ruby-3.0-16 due to policy163Not uploading cache node-modules-bullseye-test-16 due to policy164Not uploading cache assets-tmp-debian-bullseye-ruby-3.0-node-test-v1-16 due to policy166Uploading artifacts...167bundle-size-review/: found 6 matching artifact files and directories 168WARNING: Upload request redirected location=https://gitlab.com/api/v4/jobs/4313143482/artifacts?artifact_format=zip&artifact_type=archive&expire_in=31d new-url=https://gitlab.com169WARNING: Retrying... context=artifacts-uploader error=request redirected170Uploading artifacts as "archive" to coordinator... 201 Created id=4313143482 responseStatus=201 Created token=64_DDx5B172Job succeeded