Skip to content
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

Initialize buildDependencies after beforeLoaders Hook #14384

Merged
merged 1 commit into from
Oct 22, 2021

Conversation

swissmanu
Copy link
Contributor

@swissmanu swissmanu commented Oct 1, 2021

What kind of change does this PR introduce?

Did you add tests for your changes?

🙋‍♂️ I read the test/README.md file and had a look at the existing test cases. Still, I require advice where I should put a test for my change. (I tend to test/cases/loaders, but I am really not sure if this would be the right place. :) )

Test case added to test/configCases/loaders/pr-14384

Does this PR introduce a breaking change?

No.

What needs to be documented once your changes are merged?

Nothing.

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Oct 1, 2021

CLA Signed

The committers are authorized under a signed CLA.

@webpack-bot
Copy link
Contributor

For maintainers only:

  • This needs to be documented (issue in webpack/webpack.js.org will be filed when merged)
  • This needs to be backported to webpack 4 (issue will be created when merged)

@sokra
Copy link
Member

sokra commented Oct 4, 2021

🙋‍♂️ I read the test/README.md file and had a look at the existing test cases. Still, I require advice where I should put a test for my change. (I tend to test/cases/loaders, but I am really not sure if this would be the right place. :) )

test/configCases/loaders/ is a good place. e. g. start by cloning the module-default one.

@swissmanu
Copy link
Contributor Author

test/configCases/loaders/ is a good place. e. g. start by cloning the module-default one.

thank you @sokra! i will have a look there.

@swissmanu swissmanu force-pushed the fix-normalmodule-beforeLoaders-hook branch from 262c245 to 9b1d35d Compare October 17, 2021 14:25
@swissmanu
Copy link
Contributor Author

finally added the test case. let me know if you need any more changes from my side in order to get this merged :-)

@alexander-akait
Copy link
Member

@swissmanu CI failed, can you fix it?

@swissmanu swissmanu force-pushed the fix-normalmodule-beforeLoaders-hook branch from 9b1d35d to ab8e118 Compare October 17, 2021 15:04
@swissmanu
Copy link
Contributor Author

swissmanu commented Oct 17, 2021

@alexander-akait thanks for the nudge. i fixed one part of the problem... but don't understand how to fix the other. the config test cases template is giving me the following error:

  ● ConfigTestCases › loaders › pr-14384 › pr-14384 should compile

    No tests exported by test case

      566 |                                                                             }
      567 |                                                                             if (getNumberOfTests() < filesCount) {
    > 568 |                                                                                     return done(new Error("No tests exported by test case"));
          |                                                                                                    ^
      569 |                                                                             }
      570 |                                                                             done();
      571 |                                                                     })

     at test/ConfigTestCases.template.js:568:24

is there something in particular i am missing with my test case? i compared it with some others, but could not identify any significant differences imo :-/

@swissmanu
Copy link
Contributor Author

i was not aware that the actual test file containing the assertions is also required via webpack. my dummy plugin injected the loader for all files loaded; hence, also for the test file and with that, the actual assertions were overwritten by the loader 🙈

anyway: @alexander-akait @sokra should be all green now. ✅

@alexander-akait
Copy link
Member

@swissmanu can you fix tests on windows?

@swissmanu swissmanu force-pushed the fix-normalmodule-beforeLoaders-hook branch from 88a9476 to 8e53818 Compare October 21, 2021 11:26
@swissmanu
Copy link
Contributor Author

@alexander-akait lesson learned: wait for the CI results before informing you guys 😇 sry for the buzz.

everything looks good now, except that node-16 on linux could not install yarn: https://dev.azure.com/webpack/webpack/_build/results?buildId=14951&view=logs&jobId=fcdf401a-6636-533b-f723-8a3435a281c2

could anyone of you restart that particular job?

@webpack-bot
Copy link
Contributor

@swissmanu The most important CI builds failed. This way your PR can't be merged.

Please take a look at the CI results from azure (1 errors / 6 warnings) and appveyor (success) and fix these issues.

@alexander-akait
Copy link
Member

All is fine, ignore random fails (when it happens for only one platform) 👍

@sokra sokra merged commit 5d9cab6 into webpack:main Oct 22, 2021
@sokra
Copy link
Member

sokra commented Oct 22, 2021

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants