Conversation
e192eb0 to
1aa6349
Compare
a0d37e0 to
84a3bc0
Compare
9305651 to
25f8d86
Compare
filipesilva
left a comment
There was a problem hiding this comment.
Is the next master a minor or a major?
If it's a minor, this change raises discoverability problems. A user won't know to update TS when updating Angular. They can only know after they get an error for the AOT compiler. For setups that skip the TS version check, they might not even get that error.
If it's a major, then ng update should have a migration for TS. Users are instructed to run ng update between majors but not between minors.
|
@IgorMinar can correct me if I'm wrong, but I believe the next release on master is 10.0.0-next.0. Either way, I'm going to split this PR up into two commits and we can drop the second one if it's not the right time for it:
|
|
@filipesilva - I've encountered frequent failures on the test_aio/aio_preview jobs due to OOM/unexpected crashes. Could TS 3.8 have more memory pressure that's causing our CI to be unstable? Some example failures: |
|
The issue I'm currently investigating relates to a runtime error due to incorrect import eliding. It appears that TS 3.8 when used within build optimizer is incorrectly marking certain imports as unreferenced. However, this only appears to occur within the very specific build optimizer usage. From the logs, the errors appear to be occurring during the ngcc parallel worker phase (one of them looks to be with a standalone ngcc execution). Do these errors occur with 9.1 when using TS 3.7? It looks like ngcc will limit the number of process workers to 8 but that may be too much for that CI instance (4 GB of memory). CPU counts on CI systems tend to be inaccurate due to the number of underlying virtual CPUs being quite high (16/32/128/etc.) so even though it's a 2 CPU instance the count will most likely not be 2. |
|
@clydin - based on my very unscientific testing in #36380, it does seem like the issue happens with the update to 9.1, not the TS 3.8 upgrade: https://app.circleci.com/pipelines/github/angular/angular/12538/workflows/5f75318c-510a-4de9-aa86-8862a0efcc30/jobs/668882 |
|
FYI, @gkalpak has been investigating ngcc worker crashes, which have also been observed on ngcc-validation CI since 9.1. There's FW-2008 to track that work. |
|
From dealing with similar issues within the CLI's build pipeline, the minimum of 8 workers may be too large in relation to the memory usage profile of the ngcc workers. |
ee1193d to
ef97ccb
Compare
|
Hi @filipesilva and @IgorMinar - PTAL. This PR has been rebased with master since FW-2008 was resolved. I was also having issues with the main |
Glad that fixed it. Another +1 to remove the fallback cache. Having an incremental node_modules update on yarn.lock changes has broken things a few times now. @alan-agius4 did you have some measurements on fallback cache performance? |
IgorMinar
left a comment
There was a problem hiding this comment.
I'm still good with this change.
LGTM! Thank you!
Reviewed-for: global-approverse
|
@alan-agius4 looked into the Angular CLI fallback cache in angular/angular-cli#17533 and removed it because it wasn't worth it. |
Update the typescript version to 3.8 as well as the Angular version to 9.1, which is the one which added TS 3.8 support.
Remove TypeScript 3.6 and 3.7 support from Angular along with tests that ensure those TS versions work. BREAKING CHANGE: typescript 3.6 and 3.7 are no longer supported, please update to typescript 3.8
Remove TypeScript 3.6 and 3.7 support from Angular along with tests that ensure those TS versions work. BREAKING CHANGE: typescript 3.6 and 3.7 are no longer supported, please update to typescript 3.8 PR Close #36329
Support for TypeScript version <3.8 was dropped from Angular in angular/angular#36329. In order to allow updates to the latest Angular framework, this commit updates TypeScript to the latest 3.8.x version.
Support for TypeScript version <3.8 was dropped from Angular in angular/angular#36329. In order to allow updates to the latest Angular framework, this commit updates TypeScript to the latest 3.8.x version.
|
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. |
…ular#36329) Update the typescript version to 3.8 as well as the Angular version to 9.1, which is the one which added TS 3.8 support. PR Close angular#36329
Remove TypeScript 3.6 and 3.7 support from Angular along with tests that ensure those TS versions work. BREAKING CHANGE: typescript 3.6 and 3.7 are no longer supported, please update to typescript 3.8 PR Close angular#36329
BREAKING CHANGE: typescript 3.6 and 3.7 are no longer supported, please
update to typescript 3.8