Skip to content

Conversation

@alan-agius4
Copy link
Contributor

@alan-agius4 alan-agius4 commented Apr 3, 2021

test: remove cli-hello-world-lazy-rollup tests

In version 12 of the Angular CLI the experimentalRollupPass has been removed.

build: update Angular CLI packages to 12.0.0-next.7

With this change we update Angular CLI packages that are used in the repo for testing to 12.0.0-next.7

test(ngcc): provide correct source-mappings for renderer tests

The recent update to MagicString, results in a different basic set of mappings in the renderer. This change updates our tests to match.

build(docs-infra): update dgeni-packages dependency

This update includes fixes that prevented us from updating
other dependencies.

ci: improve renovate configuration

With this change we add several packages to ignored ignoreDeps as these packages cannot be updated safely as they cause a large number of errors.

In addition, we add a group for remark packages.

build: update several dependencies

With this change we update several dependencies to avoid Renovate from create a lot of PRs during onboarding. We also remove yarn workspaces as after further analysis these are not needed.

Certain dependencies such as @octokit/rest, remark and @babel/* have not been updated as they require a decent amount of work to update, and it's best to leave them for a seperate PR.

@alan-agius4 alan-agius4 added the target: major This PR is targeted for the next major release label Apr 3, 2021
@google-cla google-cla bot added the cla: yes label Apr 3, 2021
@gkalpak gkalpak self-requested a review April 3, 2021 12:11
@atscott atscott added the area: build & ci Related the build and CI infrastructure of the project label Apr 5, 2021
@ngbot ngbot bot added this to the Backlog milestone Apr 5, 2021
@google-cla

This comment has been minimized.

@google-cla google-cla bot added cla: no and removed cla: yes labels Apr 6, 2021
@petebacondarwin
Copy link
Contributor

@googlebot I consent.

@google-cla google-cla bot added cla: yes and removed cla: no labels Apr 6, 2021
@alan-agius4 alan-agius4 added the action: review The PR is still awaiting reviews from at least one requested reviewer label Apr 7, 2021
@alan-agius4 alan-agius4 marked this pull request as ready for review April 7, 2021 08:49
@alan-agius4 alan-agius4 requested review from josephperrott and removed request for IgorMinar April 7, 2021 08:50
@alan-agius4
Copy link
Contributor Author

Thanks to our Englishman (@petebacondarwin) for all the help in NGTSC and Dgeni.

@alan-agius4
Copy link
Contributor Author

alan-agius4 commented Apr 7, 2021

Note: Once this lands you might experience "weird" errors when using ng-dev or some tests targets.

Example:

node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-node/index.js:24
    if (isPlainObject(options[key])) {
        ^

TypeError: isPlainObject is not a function

This is related to incorrect module hoisting. Please run the below:

$ rm -rf node_modules aio/node_modules
$ yarn

Or even better, but make sure you don't have any untracked files as you will loose them.

$ git clean -dxf
$ yarn

Copy link
Member

Choose a reason for hiding this comment

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

@JiaLiPassion Should this test be removed or reenabled?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note: The reason why I didn’t spend time fixing the compile time error of this test is that it was disabled.

Copy link
Contributor

@JiaLiPassion JiaLiPassion Apr 8, 2021

Choose a reason for hiding this comment

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

The case is not correct, So please just keep the case comment out, I will fix it later.

Copy link
Member

@gkalpak gkalpak left a comment

Choose a reason for hiding this comment

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

Yay! 🎉

Copy link
Member

Choose a reason for hiding this comment

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

OOC, why this change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Without these changes, this test failed. The default behaviour was not prevented which caused the error to bubble up.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@JiaLiPassion can you please take a look?

Copy link
Member

Choose a reason for hiding this comment

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

Just to be clear, I am not asking about the addition of evt.preventDefault() but the switch from arrow functions to regular functions.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I know, both are needed.

Copy link
Contributor

Choose a reason for hiding this comment

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

I will fix this case and the related case laster, @alan-agius4 , could you please also comment out this case?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I disabled the test.

Copy link
Member

@gkalpak gkalpak left a comment

Choose a reason for hiding this comment

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

BTW, there are a couple of commit message typos:

  • avoid Renovate from create --> avoid Renovate creating
  • add several package --> add several packages
  • updated safly --> updated safely

@Julien-Marcou
Copy link
Contributor

Even though it is not required, I believe it would be better to update TypeScript to v4.2.4 for these files too, so it's easier to track TypeScript version usage for futur updates :

  • aio/aio-builds-setup/dockerbuild/scripts-js/package.json
  • aio/aio-builds-setup/dockerbuild/scripts-js/yarn.lock
  • integration/typings_test_ts42/package.json
  • packages/bazel/package.json
  • packages/compiler-cli/package.json
  • packages/zone.js/package.json
  • packages/zone.js/test/typings/package.json
  • packages/zone.js/yarn.lock

And also update packages/compiler-cli/src/typescript_support.ts with const MIN_TS_VERSION = '4.2.4';

Copy link
Member

@josephperrott josephperrott left a comment

Choose a reason for hiding this comment

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

LGTM

petebacondarwin and others added 12 commits April 12, 2021 09:42
The recent update to MagicString, results in a different basic set of
mappings in the renderer. This change updates our tests to match.
With this change we update Angular CLI packages that are used in the repo for testing to `12.0.0-next.7`
In version 12 of the Angular CLI the `experimentalRollupPass` has been removed.
This is a temporary workaround until the CLI version containing a fix for the regression caused by deacc74 is available on NPM.

Without this change CLI builds will fail with;
```
angularCompiler.getNextProgram is not a function
```
In Angular CLI 12, application can only be compiled using Ivy, therefore we shouldn't run these tests when Bazel runs with View Engine context.
Copy link
Contributor

@AndrewKushnir AndrewKushnir left a comment

Choose a reason for hiding this comment

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

Reviewed-for: size-tracking

@alan-agius4 alan-agius4 added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Apr 12, 2021
@zarend zarend closed this in ed7d288 Apr 12, 2021
zarend pushed a commit that referenced this pull request Apr 12, 2021
With this change we add several packages to ignored `ignoreDeps` as these packages cannot be updated safely as they cause a large number of errors.

In addition, we add a group for `remark` packages.

PR Close #41434
zarend pushed a commit that referenced this pull request Apr 12, 2021
This update includes fixes that prevented us from updating
other dependencies.

PR Close #41434
zarend pushed a commit that referenced this pull request Apr 12, 2021
The recent update to MagicString, results in a different basic set of
mappings in the renderer. This change updates our tests to match.

PR Close #41434
zarend pushed a commit that referenced this pull request Apr 12, 2021
With this change we update Angular CLI packages that are used in the repo for testing to `12.0.0-next.7`

PR Close #41434
zarend pushed a commit that referenced this pull request Apr 12, 2021
In version 12 of the Angular CLI the `experimentalRollupPass` has been removed.

PR Close #41434
zarend pushed a commit that referenced this pull request Apr 12, 2021
This is a temporary workaround until the CLI version containing a fix for the regression caused by deacc74 is available on NPM.

Without this change CLI builds will fail with;
```
angularCompiler.getNextProgram is not a function
```

PR Close #41434
zarend pushed a commit that referenced this pull request Apr 12, 2021
In Angular CLI 12, application can only be compiled using Ivy, therefore we shouldn't run these tests when Bazel runs with View Engine context.

PR Close #41434
@alan-agius4 alan-agius4 deleted the packages-update branch April 13, 2021 05:21
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators May 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: build & ci Related the build and CI infrastructure of the project cla: yes target: major This PR is targeted for the next major release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants