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

chore(rum-angular): fix build warning and formatting #978

Closed

Conversation

vigneshshanmugam
Copy link
Member

@vigneshshanmugam vigneshshanmugam commented Mar 10, 2021

To be merged after #974

@vigneshshanmugam vigneshshanmugam changed the title Warnings angular chore(rum-angular): fix build warning and formatting Mar 10, 2021
@apmmachine
Copy link
Contributor

📦 Bundlesize report

Filename Size(bundled) Size(gzip) Diff(gzip)
elastic-apm-opentracing.umd.min.js 62.2 KiB 19.8 KiB
elastic-apm-rum.umd.min.js 56.3 KiB 18.4 KiB

@apmmachine
Copy link
Contributor

💔 Build Failed

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: Pull request #978 opened

  • Start Time: 2021-03-10T21:07:30.052+0000

  • Duration: 73 min 15 sec

  • Commit: 4be1c2f

Test stats 🧪

Test Results
Failed 0
Passed 1037
Skipped 13
Total 1050

Trends 🧪

Image of Build Times

Image of Tests

Steps errors 2

Expand to view the steps failures

Run tests: Elastic Stack 8.0.0-SNAPSHOT - @elastic/apm-rum-angular - none
  • Took 5 min 33 sec . View more details on here
  • Description: .ci/scripts/test.sh
Shell Script
  • Took 7 min 40 sec . View more details on here
  • Description: ./.ci/scripts/benchmarks.sh

Log output

Expand to view the last 100 lines of log output

[2021-03-10T22:20:14.333Z] node-playwright        | @elastic/apm-rum-core:     "suite": "PerformanceMonitoring",
[2021-03-10T22:20:14.333Z] node-playwright        | @elastic/apm-rum-core:     "name": "sendEvents",
[2021-03-10T22:20:14.333Z] node-playwright        | @elastic/apm-rum-core:     "mean": 0.0007724825942938604,
[2021-03-10T22:20:14.333Z] node-playwright        | @elastic/apm-rum-core:     "count": 155,
[2021-03-10T22:20:14.333Z] node-playwright        | @elastic/apm-rum-core:     "browser": "headlesschrome",
[2021-03-10T22:20:14.333Z] node-playwright        | @elastic/apm-rum-core:     "hz": 1294.5275497296054,
[2021-03-10T22:20:14.333Z] node-playwright        | @elastic/apm-rum-core:     "unit": "ops/sec"
[2021-03-10T22:20:14.333Z] node-playwright        | @elastic/apm-rum-core:   }
[2021-03-10T22:20:14.333Z] node-playwright        | @elastic/apm-rum-core: ]
[2021-03-10T22:20:14.333Z] node-playwright        | @elastic/apm-rum: > @elastic/apm-rum@5.6.3 bench /app/packages/rum
[2021-03-10T22:20:14.333Z] node-playwright        | @elastic/apm-rum: > npm run build:umd && node test/benchmarks/run.js
[2021-03-10T22:20:14.334Z] node-playwright        | @elastic/apm-rum: > @elastic/apm-rum@5.6.3 build:umd /app/packages/rum
[2021-03-10T22:20:14.334Z] node-playwright        | @elastic/apm-rum: > webpack --colors
[2021-03-10T22:20:20.800Z] node-playwright        | @elastic/apm-rum: Webpack Bundle Analyzer saved report to /app/packages/rum/reports/apm-rum-report.html
[2021-03-10T22:20:21.498Z] node-playwright        | @elastic/apm-rum: Webpack Bundle Analyzer saved report to /app/packages/rum/reports/apm-opentracing-report.html
[2021-03-10T22:20:22.201Z] node-playwright        | @elastic/apm-rum: Webpack Bundle Analyzer saved stats file to /app/packages/rum/reports/apm-rum-stats.json
[2021-03-10T22:20:22.201Z] node-playwright        | @elastic/apm-rum: Webpack Bundle Analyzer saved stats file to /app/packages/rum/reports/apm-opentracing-stats.json
[2021-03-10T22:20:22.201Z] node-playwright        | @elastic/apm-rum: Hash: e611eeeed20782d79fd07d87443544a4c891d319169f415a380400d82ca2244267ab2027439f6044
[2021-03-10T22:20:22.201Z] node-playwright        | @elastic/apm-rum: Version: webpack 4.44.1
[2021-03-10T22:20:22.201Z] node-playwright        | @elastic/apm-rum: Child
[2021-03-10T22:20:22.201Z] node-playwright        | @elastic/apm-rum:     Hash: e611eeeed20782d79fd0
[2021-03-10T22:20:22.201Z] node-playwright        | @elastic/apm-rum:     Time: 4477ms
[2021-03-10T22:20:22.201Z] node-playwright        | @elastic/apm-rum:     Built at: 03/10/2021 10:20:19 PM
[2021-03-10T22:20:22.202Z] node-playwright        | @elastic/apm-rum:                      Asset     Size           Chunks                    Chunk Names
[2021-03-10T22:20:22.202Z] node-playwright        | @elastic/apm-rum:     elastic-apm-rum.umd.js  539 KiB  elastic-apm-rum  [emitted]  [big]  elastic-apm-rum
[2021-03-10T22:20:22.202Z] node-playwright        | @elastic/apm-rum:     Entrypoint elastic-apm-rum [big] = elastic-apm-rum.umd.js
[2021-03-10T22:20:22.202Z] node-playwright        | @elastic/apm-rum: Child
[2021-03-10T22:20:22.202Z] node-playwright        | @elastic/apm-rum:     Hash: 7d87443544a4c891d319
[2021-03-10T22:20:22.203Z] node-playwright        | @elastic/apm-rum:     Time: 5658ms
[2021-03-10T22:20:22.203Z] node-playwright        | @elastic/apm-rum:     Built at: 03/10/2021 10:20:20 PM
[2021-03-10T22:20:22.203Z] node-playwright        | @elastic/apm-rum:                              Asset      Size  Chunks                   Chunk Names
[2021-03-10T22:20:22.203Z] node-playwright        | @elastic/apm-rum:         elastic-apm-rum.umd.min.js  56.3 KiB       0  [emitted]        elastic-apm-rum
[2021-03-10T22:20:22.203Z] node-playwright        | @elastic/apm-rum:     elastic-apm-rum.umd.min.js.map   240 KiB       0  [emitted] [dev]  elastic-apm-rum
[2021-03-10T22:20:22.203Z] node-playwright        | @elastic/apm-rum:     Entrypoint elastic-apm-rum = elastic-apm-rum.umd.min.js elastic-apm-rum.umd.min.js.map
[2021-03-10T22:20:22.204Z] node-playwright        | @elastic/apm-rum: Child
[2021-03-10T22:20:22.204Z] node-playwright        | @elastic/apm-rum:     Hash: 169f415a380400d82ca2
[2021-03-10T22:20:22.204Z] node-playwright        | @elastic/apm-rum:     Time: 4462ms
[2021-03-10T22:20:22.204Z] node-playwright        | @elastic/apm-rum:     Built at: 03/10/2021 10:20:19 PM
[2021-03-10T22:20:22.204Z] node-playwright        | @elastic/apm-rum:                              Asset     Size                   Chunks                    Chunk Names
[2021-03-10T22:20:22.204Z] node-playwright        | @elastic/apm-rum:     elastic-apm-opentracing.umd.js  544 KiB  elastic-apm-opentracing  [emitted]  [big]  elastic-apm-opentracing
[2021-03-10T22:20:22.205Z] node-playwright        | @elastic/apm-rum:     Entrypoint elastic-apm-opentracing [big] = elastic-apm-opentracing.umd.js
[2021-03-10T22:20:22.205Z] node-playwright        | @elastic/apm-rum: Child
[2021-03-10T22:20:22.205Z] node-playwright        | @elastic/apm-rum:     Hash: 244267ab2027439f6044
[2021-03-10T22:20:22.205Z] node-playwright        | @elastic/apm-rum:     Time: 6128ms
[2021-03-10T22:20:22.205Z] node-playwright        | @elastic/apm-rum:     Built at: 03/10/2021 10:20:21 PM
[2021-03-10T22:20:22.205Z] node-playwright        | @elastic/apm-rum:                                      Asset      Size  Chunks                          Chunk Names
[2021-03-10T22:20:22.205Z] node-playwright        | @elastic/apm-rum:         elastic-apm-opentracing.umd.min.js  62.2 KiB       0  [emitted]        [big]  elastic-apm-opentracing
[2021-03-10T22:20:22.206Z] node-playwright        | @elastic/apm-rum:     elastic-apm-opentracing.umd.min.js.map   277 KiB       0  [emitted] [dev]         elastic-apm-opentracing
[2021-03-10T22:20:22.206Z] node-playwright        | @elastic/apm-rum:     Entrypoint elastic-apm-opentracing = elastic-apm-opentracing.umd.min.js elastic-apm-opentracing.umd.min.js.map
[2021-03-10T22:20:22.206Z] node-playwright        | @elastic/apm-rum:     
[2021-03-10T22:20:22.207Z] node-playwright        | @elastic/apm-rum:     WARNING in asset size limit: The following asset(s) exceed the recommended size limit (60 KiB).
[2021-03-10T22:20:22.207Z] node-playwright        | @elastic/apm-rum:     This can impact web performance.
[2021-03-10T22:20:22.207Z] node-playwright        | @elastic/apm-rum:     Assets: 
[2021-03-10T22:20:22.207Z] node-playwright        | @elastic/apm-rum:       elastic-apm-opentracing.umd.min.js (62.2 KiB)
[2021-03-10T22:20:22.207Z] node-playwright        | @elastic/apm-rum:     
[2021-03-10T22:20:22.207Z] node-playwright        | @elastic/apm-rum:     WARNING in webpack performance recommendations: 
[2021-03-10T22:20:22.207Z] node-playwright        | @elastic/apm-rum:     You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.
[2021-03-10T22:20:22.207Z] node-playwright        | @elastic/apm-rum:     For more info visit https://webpack.js.org/guides/code-splitting/
[2021-03-10T22:20:26.327Z] node-playwright        | @elastic/apm-rum: custom apm build -  apm-rum-with-name.umd.min.js generated
[2021-03-10T22:20:26.327Z] node-playwright        | @elastic/apm-rum: Server listening at http://localhost:9000
[2021-03-10T22:20:37.737Z] node-playwright        | @elastic/apm-rum: Error running RUM benchmark script browserType.launch: Host system is missing dependencies!
[2021-03-10T22:20:37.737Z] node-playwright        | @elastic/apm-rum:   Install missing packages with:
[2021-03-10T22:20:37.737Z] node-playwright        | @elastic/apm-rum:       sudo apt-get install gstreamer1.0-libav
[2021-03-10T22:20:37.738Z] node-playwright        | @elastic/apm-rum: Error
[2021-03-10T22:20:37.738Z] node-playwright        | @elastic/apm-rum:     at Object.captureStackTrace (/app/node_modules/playwright/lib/utils/stackTrace.js:48:19)
[2021-03-10T22:20:37.738Z] node-playwright        | @elastic/apm-rum:     at Connection.sendMessageToServer (/app/node_modules/playwright/lib/client/connection.js:69:48)
[2021-03-10T22:20:37.738Z] node-playwright        | @elastic/apm-rum:     at Proxy.<anonymous> (/app/node_modules/playwright/lib/client/channelOwner.js:64:61)
[2021-03-10T22:20:37.738Z] node-playwright        | @elastic/apm-rum:     at /app/node_modules/playwright/lib/client/browserType.js:64:67
[2021-03-10T22:20:37.738Z] node-playwright        | @elastic/apm-rum:     at BrowserType._wrapApiCall (/app/node_modules/playwright/lib/client/channelOwner.js:77:34)
[2021-03-10T22:20:37.738Z] node-playwright        | @elastic/apm-rum:     at BrowserType.launch (/app/node_modules/playwright/lib/client/browserType.js:55:21)
[2021-03-10T22:20:37.738Z] node-playwright        | @elastic/apm-rum:     at launchBrowser (/app/packages/rum/test/benchmarks/profiler.js:36:33)
[2021-03-10T22:20:37.738Z] node-playwright        | @elastic/apm-rum:     at run (/app/packages/rum/test/benchmarks/run.js:75:33)
[2021-03-10T22:20:37.738Z] node-playwright        | @elastic/apm-rum: npm ERR! code ELIFECYCLE
[2021-03-10T22:20:37.738Z] node-playwright        | @elastic/apm-rum: npm ERR! errno 1
[2021-03-10T22:20:37.738Z] node-playwright        | @elastic/apm-rum: npm ERR! @elastic/apm-rum@5.6.3 bench: `npm run build:umd && node test/benchmarks/run.js`
[2021-03-10T22:20:37.738Z] node-playwright        | @elastic/apm-rum: npm ERR! Exit status 1
[2021-03-10T22:20:37.738Z] node-playwright        | @elastic/apm-rum: npm ERR! 
[2021-03-10T22:20:37.739Z] node-playwright        | @elastic/apm-rum: npm ERR! Failed at the @elastic/apm-rum@5.6.3 bench script.
[2021-03-10T22:20:37.739Z] node-playwright        | @elastic/apm-rum: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
[2021-03-10T22:20:37.739Z] node-playwright        | @elastic/apm-rum: npm ERR! A complete log of this run can be found in:
[2021-03-10T22:20:37.739Z] node-playwright        | @elastic/apm-rum: npm ERR!     /app/.npm/_logs/2021-03-10T22_20_36_217Z-debug.log
[2021-03-10T22:20:37.739Z] node-playwright        | lerna ERR! npm run bench exited 1 in '@elastic/apm-rum'
[2021-03-10T22:20:37.739Z] node-playwright exited with code 1
[2021-03-10T22:20:37.739Z] Aborting on container exit...
[2021-03-10T22:20:39.229Z] Post stage
[2021-03-10T22:20:39.373Z] Archiving artifacts
[2021-03-10T22:20:39.566Z] [INFO] sendBenchmarks is not enabled for PRs
[2021-03-10T22:20:42.981Z] Stage "Coverage" skipped due to earlier failure(s)
[2021-03-10T22:20:43.117Z] Stage "Release" skipped due to earlier failure(s)
[2021-03-10T22:20:43.178Z] Stage "Release" skipped due to earlier failure(s)
[2021-03-10T22:20:43.302Z] Stage "Release" skipped due to earlier failure(s)
[2021-03-10T22:20:43.456Z] Stage "Release" skipped due to earlier failure(s)
[2021-03-10T22:20:43.663Z] Stage "Opbeans" skipped due to earlier failure(s)
[2021-03-10T22:20:44.170Z] Running on Jenkins in /var/lib/jenkins/workspace/ent-rum_apm-agent-rum-mbp_PR-978
[2021-03-10T22:20:44.328Z] [INFO] getVaultSecret: Getting secrets
[2021-03-10T22:20:44.604Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2021-03-10T22:20:45.747Z] + chmod 755 generate-build-data.sh
[2021-03-10T22:20:45.748Z] + ./generate-build-data.sh https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-rum/apm-agent-rum-mbp/PR-978/ https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-rum/apm-agent-rum-mbp/PR-978/runs/1 FAILURE 4395416
[2021-03-10T22:20:45.998Z] INFO: curl https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-rum/apm-agent-rum-mbp/PR-978/runs/1/steps/?limit=10000 -o steps-info.json
[2021-03-10T22:20:46.909Z] INFO: curl https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-rum/apm-agent-rum-mbp/PR-978/runs/1/tests/?status=FAILED -o tests-errors.json

@vigneshshanmugam
Copy link
Member Author

Closing this PR as it would better to have the formatting changes in master ( updating prettier and eslint in master) and then do a PR for fixing the build warnings. Split the work here - #981

@vigneshshanmugam vigneshshanmugam deleted the warnings-angular branch March 11, 2021 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants