Skip to content

Conversation

ejizba
Copy link
Contributor

@ejizba ejizba commented May 6, 2022

A Node.js test in the Core tools e2e integration build is currently failing with an error like this:

Cannot find module '/home/vsts/work/1/s/test/end-to-end/testFunctionApp/QueueTriggerAndOutput/index.js'

The bug only happens for the webpacked version of the worker and it came about because the webpack config hard-coded a file name and I moved some code out of that file in #576. The code in question does a 'require' on the user's scriptFilePath which is a dynamic value that webpack can't/shouldn't handle. I improved the webpack config so that we can use a simple comment in the code to tell webpack to ignore that 'require'. This should prevent similar bugs from happening in the future regardless of where we put this code.

@hossam-nasr
Copy link
Contributor

It looks like some E2E tests are still failing?

@ejizba
Copy link
Contributor Author

ejizba commented May 9, 2022

The existing errors are "Condition not reached within timeout." and timeout errors are usually transient

@ejizba ejizba merged commit 680d13d into v3.x May 13, 2022
@ejizba ejizba deleted the ej/dyReqPack branch May 13, 2022 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants