-
Notifications
You must be signed in to change notification settings - Fork 22
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
RHCLOUD-24738: Fix bug in ValidateCompilationPlugin #213
RHCLOUD-24738: Fix bug in ValidateCompilationPlugin #213
Conversation
@vojtechszocs: This pull request references RHCLOUD-24738 which is a valid jira issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: vojtechszocs The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@vojtechszocs: This pull request references RHCLOUD-24738 which is a valid jira issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
1 similar comment
@vojtechszocs: This pull request references RHCLOUD-24738 which is a valid jira issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@vojtechszocs: This pull request references RHCLOUD-24738 which is a valid jira issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Codecov ReportPatch and project coverage have no change.
Additional details and impacted files@@ Coverage Diff @@
## main #213 +/- ##
=======================================
Coverage 39.69% 39.69%
=======================================
Files 68 68
Lines 1665 1665
Branches 356 356
=======================================
Hits 661 661
Misses 969 969
Partials 35 35 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
/lgtm |
@vojtechszocs: all tests passed! Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
Fixes RHCLOUD-24738
Some webpack plugins like html-webpack-plugin use
compilation.createChildCompiler
API to run a "child" compilation inside the actual "root" compilation.Since our
ValidateCompilationPlugin
usesafterCompile
hook which is automatically copied to all child compilers, using e.g.html-webpack-plugin
(*) caused this hook to be executed withinhtml-webpack-plugin
's child compilation which doesn't include any of the expected root compilation's actual chunks.(*) see here for details
The fix is to use an appropriate webpack compiler hook that isn't automatically copied to all child compilers.
The list of compiler hooks that are not automatically copied to all child compilers is in
webpack/lib/Compiler.js