Skip to content

build: fix size-test integration tooling #22619

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

Merged

Conversation

devversion
Copy link
Member

Even though the size integration tests do not run
in a blocking way on CI, we should ensure they
can be run and do not fail. The tests are still
useful for local debugging and comparisons.

This commit fixes that NodeJS throws about webpack
not being found. The build optimizer imports from webpack
if we go through the public entry-point. Also simplifies the
logic for finding the angular_ivy_enabled.js file.

Error: Cannot find module 'webpack'
Require stack:
- /b/f/w/node_modules/@angular-devkit/build-optimizer/src/build-optimizer/webpack-loader.js
- /b/f/w/node_modules/@angular-devkit/build-optimizer/src/index.js
- /b/f/w/bazel-out/k8-fastbuild/bin/integration/size-test/cdk/drag-drop/_all-directives_bundle.rollup_config.js
- /b/f/w/node_modules/rollup/dist/shared/loadConfigFile.js
- /b/f/w/node_modules/rollup/dist/bin/rollup

Even though the size integration tests do not run
in a blocking way on CI, we should ensure they
can be run and do not fail. The tests are still
useful for local debugging and comparisons.

This commit fixes that NodeJS throws about `webpack`
not being found. The build optimizer imports from webpack
if we go through the public entry-point. Also simplifies the
logic for finding the `angular_ivy_enabled.js` file.
@devversion devversion added merge safe area: build & ci Related the build and CI infrastructure of the project labels May 3, 2021
@devversion devversion requested a review from jelbourn as a code owner May 3, 2021 17:08
@google-cla google-cla bot added the cla: yes PR author has agreed to Google's Contributor License Agreement label May 3, 2021
@devversion devversion added the target: patch This PR is targeted for the next patch release label May 3, 2021
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

@devversion devversion added the action: merge The PR is ready for merge by the caretaker label May 3, 2021
Copy link
Member

@crisbeto crisbeto left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@jelbourn jelbourn left a comment

Choose a reason for hiding this comment

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

LGTM

@annieyw annieyw merged commit b111d4f into angular:master May 4, 2021
annieyw pushed a commit that referenced this pull request May 4, 2021
Even though the size integration tests do not run
in a blocking way on CI, we should ensure they
can be run and do not fail. The tests are still
useful for local debugging and comparisons.

This commit fixes that NodeJS throws about `webpack`
not being found. The build optimizer imports from webpack
if we go through the public entry-point. Also simplifies the
logic for finding the `angular_ivy_enabled.js` file.

(cherry picked from commit b111d4f)
annieyw pushed a commit that referenced this pull request May 4, 2021
Even though the size integration tests do not run
in a blocking way on CI, we should ensure they
can be run and do not fail. The tests are still
useful for local debugging and comparisons.

This commit fixes that NodeJS throws about `webpack`
not being found. The build optimizer imports from webpack
if we go through the public entry-point. Also simplifies the
logic for finding the `angular_ivy_enabled.js` file.

(cherry picked from commit b111d4f)
@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 Jun 4, 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 PR author has agreed to Google's Contributor License Agreement target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants