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: migrate angular e2e app to ng cli #974

Merged
merged 11 commits into from
Mar 11, 2021

Conversation

vigneshshanmugam
Copy link
Member

@vigneshshanmugam vigneshshanmugam commented Mar 6, 2021

If you want to run the E2E app in local, you can try out using ng serve app which would run the build command and watch your files for local changes.

@apmmachine
Copy link
Contributor

apmmachine commented Mar 6, 2021

📦 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

apmmachine commented Mar 6, 2021

💚 Build Succeeded

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 #974 updated

  • Start Time: 2021-03-10T16:00:17.935+0000

  • Duration: 94 min 58 sec

  • Commit: 66a8359

Test stats 🧪

Test Results
Failed 0
Passed 1037
Skipped 13
Total 1050

Trends 🧪

Image of Build Times

Image of Tests

@vigneshshanmugam vigneshshanmugam changed the base branch from master to feat-angular March 8, 2021 17:33
@@ -1,6 +1,6 @@
{
"extends": "./tsconfig.lib.json",
"angularCompilerOptions": {
"enableIvy": true
"enableIvy": false
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Publishing fails when ivy is set to true. The recommendation from Angular team is to publish the libraries by keeping enableIvy as false and Applications using the library can opt in to ivy mode by using Angular Compatibility Compiler (ngcc). More details here https://next.angular.io/guide/creating-libraries#publishing-your-library

Copy link
Contributor

@hmdhk hmdhk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @vigneshshanmugam ,

Generally looks good, however, there are a few warnings in the main build script and also in e2e build

I'm also going to run it locally.

packages/rum-angular/package.json Show resolved Hide resolved
packages/rum-angular/angular.json Show resolved Hide resolved
@vigneshshanmugam
Copy link
Member Author

vigneshshanmugam commented Mar 10, 2021

@jahtalab I have added fix for some of the warnings.

WARNING: 'NavigationStart' is imported from external module '@angular/router' but never used

For this to get fixed, we have to change to import type { NavigationStart } from '@angular/router' -> need to update typescript to 3.8 -> need to update prettier to 2.0 to understand the syntax which breaks the formatting locally. I will do a follow up PR to change the Eslint and prettier configs to get these sorted out.

@vigneshshanmugam
Copy link
Member Author

@jahtalab I am merging this to our feat-angular branch. Lets fix the NavigationStart warning in the other PR #978

@vigneshshanmugam vigneshshanmugam merged commit afbc68d into elastic:feat-angular Mar 11, 2021
@vigneshshanmugam vigneshshanmugam deleted the angular-e2e branch March 11, 2021 19:08
vigneshshanmugam added a commit that referenced this pull request Mar 11, 2021
* chore: migrate angular e2e app to ng cli

* chore: make build system work for e2e

* chore: make saucelabs work

* chore: enable saucelabs test for angular

* chore: fix test scripts

* chore: target es5 and add browserlist

* chore: only run saucelabs test in jenkins

* chore: update prod apmserver url

* chore: transpile apmservermock correctly

* chore: revert jenkinsfile

* chore: fix warnings in build
@hmdhk
Copy link
Contributor

hmdhk commented Mar 15, 2021

@vigneshshanmugam , there's also a warning about naming (I don't have the exact message since the logs are no longer accessible)

@vigneshshanmugam
Copy link
Member Author

vigneshshanmugam added a commit that referenced this pull request Mar 15, 2021
* chore: migrate angular e2e app to ng cli

* chore: make build system work for e2e

* chore: make saucelabs work

* chore: enable saucelabs test for angular

* chore: fix test scripts

* chore: target es5 and add browserlist

* chore: only run saucelabs test in jenkins

* chore: update prod apmserver url

* chore: transpile apmservermock correctly

* chore: revert jenkinsfile

* chore: fix warnings in build
vigneshshanmugam added a commit that referenced this pull request Mar 18, 2021
* chore: migrate angular e2e app to ng cli

* chore: make build system work for e2e

* chore: make saucelabs work

* chore: enable saucelabs test for angular

* chore: fix test scripts

* chore: target es5 and add browserlist

* chore: only run saucelabs test in jenkins

* chore: update prod apmserver url

* chore: transpile apmservermock correctly

* chore: revert jenkinsfile

* chore: fix warnings in build
vigneshshanmugam added a commit that referenced this pull request Mar 23, 2021
* chore: migrate angular e2e app to ng cli

* chore: make build system work for e2e

* chore: make saucelabs work

* chore: enable saucelabs test for angular

* chore: fix test scripts

* chore: target es5 and add browserlist

* chore: only run saucelabs test in jenkins

* chore: update prod apmserver url

* chore: transpile apmservermock correctly

* chore: revert jenkinsfile

* chore: fix warnings in build
vigneshshanmugam added a commit that referenced this pull request Apr 6, 2021
* chore: migrate angular e2e app to ng cli

* chore: make build system work for e2e

* chore: make saucelabs work

* chore: enable saucelabs test for angular

* chore: fix test scripts

* chore: target es5 and add browserlist

* chore: only run saucelabs test in jenkins

* chore: update prod apmserver url

* chore: transpile apmservermock correctly

* chore: revert jenkinsfile

* chore: fix warnings in build
vigneshshanmugam added a commit that referenced this pull request Apr 19, 2021
* chore: migrate angular e2e app to ng cli

* chore: make build system work for e2e

* chore: make saucelabs work

* chore: enable saucelabs test for angular

* chore: fix test scripts

* chore: target es5 and add browserlist

* chore: only run saucelabs test in jenkins

* chore: update prod apmserver url

* chore: transpile apmservermock correctly

* chore: revert jenkinsfile

* chore: fix warnings in build
vigneshshanmugam added a commit that referenced this pull request Apr 19, 2021
* chore: migrate angular e2e app to ng cli

* chore: make build system work for e2e

* chore: make saucelabs work

* chore: enable saucelabs test for angular

* chore: fix test scripts

* chore: target es5 and add browserlist

* chore: only run saucelabs test in jenkins

* chore: update prod apmserver url

* chore: transpile apmservermock correctly

* chore: revert jenkinsfile

* chore: fix warnings in build
vigneshshanmugam added a commit that referenced this pull request Apr 19, 2021
* feat(rum-angular)!: angular 9-11 support (#971)

* feat(rum-angular): add support for angular 9

* chore: set up the ng build toolchain

* chore: rewrite the apm module under src/*

* chore: set up the testing with ng

* chore: make karma:dev work

* chore: make karma:coverage work

* chore: address review and disable saucelabs

* chore: fix local link and coverage test

* chore: migrate angular e2e app to ng cli (#974)

* chore: migrate angular e2e app to ng cli

* chore: make build system work for e2e

* chore: make saucelabs work

* chore: enable saucelabs test for angular

* chore: fix test scripts

* chore: target es5 and add browserlist

* chore: only run saucelabs test in jenkins

* chore: update prod apmserver url

* chore: transpile apmservermock correctly

* chore: revert jenkinsfile

* chore: fix warnings in build

* chore(rum-angular): fix build warnings in prod

* chore(rum-angular): add prepublish command

* chore(release): publish angular

 - @elastic/apm-rum-angular@2.0.0-alpha.0

* chore(release): publish angular

 - @elastic/apm-rum-angular@2.0.0-alpha.1

* docs: update angular integration for >9 versions (#1000)

* chore: update angular to latest 11.2.5 (#996)

* chore(release): publish angular

 - @elastic/apm-rum-angular@2.0.0-alpha.2

* chore: fix license lint issue
David-Development pushed a commit to David-Development/apm-agent-rum-js that referenced this pull request Oct 20, 2021
* feat(rum-angular)!: angular 9-11 support (elastic#971)

* feat(rum-angular): add support for angular 9

* chore: set up the ng build toolchain

* chore: rewrite the apm module under src/*

* chore: set up the testing with ng

* chore: make karma:dev work

* chore: make karma:coverage work

* chore: address review and disable saucelabs

* chore: fix local link and coverage test

* chore: migrate angular e2e app to ng cli (elastic#974)

* chore: migrate angular e2e app to ng cli

* chore: make build system work for e2e

* chore: make saucelabs work

* chore: enable saucelabs test for angular

* chore: fix test scripts

* chore: target es5 and add browserlist

* chore: only run saucelabs test in jenkins

* chore: update prod apmserver url

* chore: transpile apmservermock correctly

* chore: revert jenkinsfile

* chore: fix warnings in build

* chore(rum-angular): fix build warnings in prod

* chore(rum-angular): add prepublish command

* chore(release): publish angular

 - @elastic/apm-rum-angular@2.0.0-alpha.0

* chore(release): publish angular

 - @elastic/apm-rum-angular@2.0.0-alpha.1

* docs: update angular integration for >9 versions (elastic#1000)

* chore: update angular to latest 11.2.5 (elastic#996)

* chore(release): publish angular

 - @elastic/apm-rum-angular@2.0.0-alpha.2

* chore: fix license lint issue
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.

add e2e tests for rum-angular using angular cli
3 participants