Repository navigation
Update Angular CLI ivy tests - #28372
filipesilva wants to merge 6 commits into
Conversation
|
@filipesilva Dumb question: if this enables smaller bundles, shouldn't https://github.com/angular/angular/blob/master/integration/_payload-limits.json be updated with smaller numbers for |
|
@cexbrayat not a dumb question at all, but rather a very valid point I did not address. Thanks for a heads up! |
|
You can preview a2e7fb6 at https://pr28372-a2e7fb6.ngbuilds.io/. |
|
You can preview 9d7620e at https://pr28372-9d7620e.ngbuilds.io/. |
|
You can preview a943c32 at https://pr28372-a943c32.ngbuilds.io/. |
|
You can preview 82f3686 at https://pr28372-82f3686.ngbuilds.io/. |
gkalpak
left a comment
There was a problem hiding this comment.
The permission changes (100755 --> 100644) in integration/cli-hello-world-ivy/debug-test.sh should be reverted (afaict).
There was a problem hiding this comment.
cli-hello-world-ivy --> cli-hello-world-ivy-compat
There was a problem hiding this comment.
CliHelloWorldIvy --> CliHelloWorldIvyCompat
There was a problem hiding this comment.
cli-hello-world --> cli-hello-world-ivy
There was a problem hiding this comment.
This integration test is meant to mimic https://github.com/angular/angular/tree/master/packages/core/test/bundling/hello_world and obtain similar sizes bundles. For that reason it doesn't have anything more than that app does.
I suppose this isn't clear because I have mentioned it exactly 0 times, and nothing in the test name reflects that either.
Maybe this test should be called cli-minimal-ivy-hello-world, WDYT? And reference that it's a version of that other one somewhere too.
There was a problem hiding this comment.
I see. It is definitely worth mentioning somewhere, because my general assumption is that cli-* projects in integration/ are sort of equivalent to each other (which would make much more sense imo, especially given that their tracked payload sizes are included side-by-side in the same JSON file).
But if this one must much the one in packages/, your suggestions SGTM.
There was a problem hiding this comment.
Renamed to cli-hello-world-ivy-minimal, added a note to the integration test README, and to the app main.ts.
There was a problem hiding this comment.
Same answer as the pipe comment above.
There was a problem hiding this comment.
Maybe we could log a warning for now? Or is it safe to always return all lazy routes?
There was a problem hiding this comment.
I wouldn't like a warning because there's no way to turn it off.
I think it's ok to always return all lazy routes but will confirm with the team.
There was a problem hiding this comment.
| // Listing specific routes is unsupported for now. | |
| // Listing specific routes is unsupported for now, so we erroneously | |
| // return all lazy routes instead (which should be okay for the CLI's | |
| // usage). |
|
You can preview 6dbcf85 at https://pr28372-6dbcf85.ngbuilds.io/. |
|
@gkalpak the permissions change should be gone now. |
|
You can preview cf3ecbc at https://pr28372-cf3ecbc.ngbuilds.io/. |
|
You can preview e513ab5 at https://pr28372-e513ab5.ngbuilds.io/. |
|
You can preview 778bea7 at https://pr28372-778bea7.ngbuilds.io/. |
|
You can preview 5507426 at https://pr28372-5507426.ngbuilds.io/. |
There was a problem hiding this comment.
CliHelloWorldIvy --> CliHelloWorldIvyMinimal 😇
|
You can preview 61d6de9 at https://pr28372-61d6de9.ngbuilds.io/. |
|
You can preview 4162517 at https://pr28372-4162517.ngbuilds.io/. |
|
You can preview 1def325 at https://pr28372-1def325.ngbuilds.io/. |
|
You can preview be6ef37 at https://pr28372-be6ef37.ngbuilds.io/. |
There was a problem hiding this comment.
| // Listing specific routes is unsupported for now. | |
| // Listing specific routes is unsupported for now, so we erroneously | |
| // return all lazy routes instead (which should be okay for the CLI's | |
| // usage). |
…route In #27697 the listLazyRoutes was fixed to work with ivy. Since the entryRoute argument is not supported, it was made to also error. But by erroring it breaks existing usage with Angular CLI where the entry route is sent in as an argument. This commit changes listLazyRoutes to not error out, but instead ignore the argument.
There are two ways to bootstrap an Ivy app: with `platformBrowserDynamic().bootstrapModule` and `renderComponent`. To distinguish between these two approaches we call the `platformBrowserDynamic().bootstrapModule` way `ivy-compat` and the `renderComponent` way just `ivy`.
|
You can preview 4b9641b at https://pr28372-4b9641b.ngbuilds.io/. |
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
This PR updates the versions of Angular CLI and Build Optimizer used in Angular tests.
The updated versions contain improvements in code optimization that enable smaller bundle sizes with Ivy on Angular CLI and Bazel projects.
What is the new behavior?
Does this PR introduce a breaking change?
Other information