ci(docs-infra): check and track payload sizes for `test_aio_local` and `test_aio_local_ivy` (#31047)

PR Close #31047
This commit is contained in:
George Kalpakas 2019-06-14 13:01:37 +03:00 committed by Andrew Kushnir
parent a6cb20cbe7
commit c596795e64
3 changed files with 30 additions and 2 deletions

View File

@ -289,6 +289,8 @@ jobs:
- run: yarn --cwd aio e2e --configuration=ci
# Run PWA-score tests
- run: yarn --cwd aio test-pwa-score-localhost $CI_AIO_MIN_PWA_SCORE
# Check the bundle sizes.
- run: yarn --cwd aio payload-size aio-local
test_aio_local_ivy:
<<: *job_defaults
@ -306,6 +308,8 @@ jobs:
- run: yarn --cwd aio e2e --configuration=ci
# Run PWA-score tests
- run: yarn --cwd aio test-pwa-score-localhost $CI_AIO_MIN_PWA_SCORE
# Check the bundle sizes.
- run: yarn --cwd aio payload-size aio-local-ivy
test_aio_tools:
<<: *job_defaults

View File

@ -10,5 +10,29 @@
"polyfills-es2015": 53295
}
}
},
"aio-local": {
"master": {
"uncompressed": {
"runtime-es5": 3005,
"runtime-es2015": 3011,
"main-es5": 511054,
"main-es2015": 450560,
"polyfills-es5": 129161,
"polyfills-es2015": 53295
}
}
},
"aio-local-ivy": {
"master": {
"uncompressed": {
"runtime-es5": 2895,
"runtime-es2015": 2901,
"main-es5": 564586,
"main-es2015": 582731,
"polyfills-es5": 129161,
"polyfills-es2015": 53295
}
}
}
}

View File

@ -4,6 +4,7 @@ set -eu -o pipefail
readonly thisDir=$(cd $(dirname $0); pwd)
readonly parentDir=$(dirname $thisDir)
readonly target=${1:-aio}
# Track payload size functions
source ../scripts/ci/payload-size.sh
@ -11,5 +12,4 @@ source ../scripts/ci/payload-size.sh
# Provide node_modules from aio
NODE_MODULES_BIN=$PROJECT_ROOT/aio/node_modules/.bin/
trackPayloadSize "aio" "dist/*.js" true true "${thisDir}/_payload-limits.json"
trackPayloadSize "$target" "dist/*.js" true true "${thisDir}/_payload-limits.json"