Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(docs-infra): change test order and track payload size for local and Ivy #31047

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
24 changes: 12 additions & 12 deletions .circleci/config.yml
Expand Up @@ -250,16 +250,14 @@ jobs:
- run: yarn --cwd aio build --progress=false
# Lint the code
- run: yarn --cwd aio lint
# Run PWA-score tests
# (Run before unit and e2e tests, which destroy the `dist/` directory.)
- run: yarn --cwd aio test-pwa-score-localhost $CI_AIO_MIN_PWA_SCORE
# Check the bundle sizes.
# (Run before unit and e2e tests, which destroy the `dist/` directory.)
- run: yarn --cwd aio payload-size
# Run unit tests
- run: yarn --cwd aio test --progress=false --watch=false
# Run e2e tests
- 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
# Run unit tests for Firebase redirects
- run: yarn --cwd aio redirects-test

Expand All @@ -285,13 +283,14 @@ jobs:
- *init_environment
# Build aio (with local Angular packages)
- run: yarn --cwd aio build-local --progress=false
# Run PWA-score tests
# (Run before unit and e2e tests, which destroy the `dist/` directory.)
- run: yarn --cwd aio test-pwa-score-localhost $CI_AIO_MIN_PWA_SCORE
# Run unit tests
- run: yarn --cwd aio test --progress=false --watch=false
# Run e2e tests
- 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
Expand All @@ -303,13 +302,14 @@ jobs:
- *init_environment
# Build aio with Ivy (using local Angular packages)
- run: yarn --cwd aio build-with-ivy --progress=false
# Run PWA-score tests
# (Run before unit and e2e tests, which destroy the `dist/` directory.)
- run: yarn --cwd aio test-pwa-score-localhost $CI_AIO_MIN_PWA_SCORE
# Run unit tests
- run: yarn --cwd aio test --progress=false --watch=false
# Run e2e tests
- 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
Expand Down
24 changes: 24 additions & 0 deletions aio/scripts/_payload-limits.json
Expand Up @@ -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
}
}
}
}
4 changes: 2 additions & 2 deletions aio/scripts/payload.sh
Expand Up @@ -4,12 +4,12 @@ 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

# 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"