Title: NGCC create-ivy-entry-points for all project libraries before parallel test · Issue #36119 · angular/angular · GitHub
Open Graph Title: NGCC create-ivy-entry-points for all project libraries before parallel test · Issue #36119 · angular/angular
X Title: NGCC create-ivy-entry-points for all project libraries before parallel test · Issue #36119 · angular/angular
Description: We based our new build pipeline on standard ng cli commands. Especially for parallel builds, we create a dependency tree reading library's package.json file and run ng build command on our libraries in a parallel way. For this particular...
Open Graph Description: We based our new build pipeline on standard ng cli commands. Especially for parallel builds, we create a dependency tree reading library's package.json file and run ng build command on our librarie...
X Description: We based our new build pipeline on standard ng cli commands. Especially for parallel builds, we create a dependency tree reading library's package.json file and run ng build command on our libr...
Opengraph URL: https://github.com/angular/angular/issues/36119
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"NGCC create-ivy-entry-points for all project libraries before parallel test","articleBody":"We based our new build pipeline on standard `ng cli` commands. Especially for parallel builds, we create a dependency tree reading library's package.json file and run ng build command on our libraries in a parallel way.\r\n\r\nFor this particular task, the `ngcc` call before all compilation steps works like a charm (see https://angular.io/guide/ivy#speeding-up-ngcc-compilation).\r\n\r\nThe main problem now is that we would like to run tests also on parallel way after we build our libraries. Actually, `ng test libraryName` command, just tries to compile in 'ivy' way all our libraries it depends on, every time we execute tests.\r\n\r\nRunning our CI pipeline with a sequential test approach doesn't raise errors (but it is slower). Feature requested is just related to a way to compile our project libraries on dist folder in 'ivy' way before run tests to support also parallel tests.\r\n\r\nSee for example error from our teamcity agent:\r\n\r\n```\r\nStart to test projects parallel with 4 cpus\r\n08:13:46\r\n Start test of @aulos/core with dependencies: []\r\n08:13:46\r\n Start test of @aulos/common with dependencies: []\r\n08:13:46\r\n Start test of @aulos/common-validators with dependencies: []\r\n08:13:55\r\n JavaScript Unit Tests\r\n08:13:55\r\n 18 03 2020 08:13:55.510:INFO [karma-server]: Karma v4.2.0 server started at http://0.0.0.0:9877/\r\n08:13:55\r\n 18 03 2020 08:13:55.526:INFO [launcher]: Launching browsers ChromeHeadless with concurrency unlimited\r\n08:13:55\r\n 18 03 2020 08:13:55.545:INFO [launcher]: Starting browser ChromeHeadless\r\n08:13:55\r\n JavaScript Unit Tests\r\n08:13:56\r\n ERROR in ngcc is already running at process with id 4565.\r\n08:13:56\r\n If you are running multiple builds in parallel then you should pre-process your node_modules via the command line ngcc tool before starting the builds;\r\n08:13:56\r\n See https://v9.angular.io/guide/ivy#speeding-up-ngcc-compilation\r\n08:13:56\r\n (If you are sure no ngcc process is running then you should delete the lockfile at /opt/teamcity-agent/work/d27e3f1950cca49c/node_modules/@angular/compiler-cli/ngcc/__ngcc_lock_file__.)\r\n08:13:56\r\n End test process of @aulos/core with code 1\r\n08:13:56\r\n We have to test 3 libraries with 2 free cpu.\r\n08:13:56\r\n Start test of @aulos/security with dependencies: [@aulos/core]\r\n08:13:56\r\n Start test of @aulos/globalization with dependencies: [@aulos/core]\r\n08:13:56\r\n Start test of @aulos/binary-resources with dependencies: [@aulos/core]\r\n08:13:59\r\n \r\n08:13:59\r\n Compiling @aulos/common : es2015 as esm2015\r\n08:14:01\r\n 18 03 2020 08:14:01.074:INFO [karma-server]: Karma v4.2.0 server started at http://0.0.0.0:9878/\r\n08:14:01\r\n 18 03 2020 08:14:01.075:INFO [launcher]: Launching browsers ChromeHeadless with concurrency unlimited\r\n08:14:01\r\n 18 03 2020 08:14:01.084:INFO [launcher]: Starting browser ChromeHeadless\r\n```\r\n\r\nAs you can see we run 3 concurrency tests but they require building our libraries (for example @aulos/common).\r\n\r\nSo request here is to enable `ngcc ..... --create-ivy-entry-points` also on ./dist/libraries folders.\r\n\r\n","author":{"url":"https://github.com/meriturva","@type":"Person","name":"meriturva"},"datePublished":"2020-03-18T07:53:04Z","url":"https://github.com/angular/angular/issues/36119"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b93a1b14-eaae-190e-c82b-f8371ab5e2a2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B496:95C88:DEE317:127E5A4:6B00FD7C |
| html-safe-nonce | 701e39ed85c583ffe804c40f2200987cedd8198206138d4383a06a1e9ecfcebf |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNDk2Ojk1Qzg4OkRFRTMxNzoxMjdFNUE0OjZCMDBGRDdDIiwidmlzaXRvcl9pZCI6IjQyNzM5MTA3NzgyNDQ5NTU1MTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 7155eea831dd297c2d554498dd467a9ab766046d54a63ad8b2d61a4f4f21438d |
| hovercard-subject-tag | issue:583536160 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular/36119/issue_layout |
| twitter:image | https://opengraph.githubassets.com/00d093c5189f0c3a04ee656c4ab91471d4f9e36e8d405c450d70dcde2b86683f/angular/angular/issues/36119 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/00d093c5189f0c3a04ee656c4ab91471d4f9e36e8d405c450d70dcde2b86683f/angular/angular/issues/36119 |
| og:image:alt | We based our new build pipeline on standard ng cli commands. Especially for parallel builds, we create a dependency tree reading library's package.json file and run ng build command on our librarie... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | meriturva |
| hostname | github.com |
| expected-hostname | github.com |
| None | e208d86428ec00a57ade75058166297440e8128a01e5287c31a53dc042bbf187 |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular git https://github.com/angular/angular.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 24195339 |
| octolytics-dimension-repository_nwo | angular/angular |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24195339 |
| octolytics-dimension-repository_network_root_nwo | angular/angular |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7dafd017fb7809a839c443dba08622af38e63c09 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width