-
Notifications
You must be signed in to change notification settings - Fork 162
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
Adding support for nodejs20 #683
base: master
Are you sure you want to change the base?
Adding support for nodejs20 #683
Conversation
@NiketaPopatChaudhari can you please add a validate for version 20 here:
and integration for version 20 in 2 places:
|
version 20 added in validate.yml and integration.yml |
Done |
@NiketaPopatChaudhari looks like validate failed for node 20, can you please have a look, the failures can be found here https://github.com/serverless/serverless-azure-functions/actions/runs/8715495822/job/23909330268?pr=683 |
Looking into @gligorkot |
@NiketaPopatChaudhari you can try run the tests locally |
yes @gligorkot i am testing it on local and working on it to fix UT |
@gligorkot have tested on local with master branch Observation as below Node Version 18.20.2 without any changes on the master branch Node Version 20.12.1 without any changes on the master branch |
@NiketaPopatChaudhari make sure you have cleared node_modules and re-installed them when running with node 18. When I run node 18.20.2, all tests pass on the master branch for me: However when I run using node 20.12.2 some of them do fail - can you please investigate what fails and what we need to do to fix these? |
Hey @gligorkot, @NiketaPopatChaudhari I tried executing Tests (with Node Version: 20.12.2) in master branch (Without any changes) and it still fails in 27 cases. Most/Almost All of the failed cases are related to Mock FS module. Mock FS is already having Open issue with Node 20. We can try to change MockFs to MemFs but it will take some time to make these changes. |
Hey @yashGanatraHK, thank you for looking into this issue. I'd first look at if removing mock-fs altogether is a viable approach, and failing that, yes updating to memfs would be my second choice. |
@gligorkot Have replaced all mockFs with memfs and made some additional changes now fail test count as below |
Thanks for keeping me in the loop @NiketaPopatChaudhari. Could you please have a look at what else needs changing to fix the remaining tests? |
@gligorkot @NiketaPopatChaudhari please let me know if there is a way I can help with this |
@jonatandorozco would you like to fork Niketa's branch and finish off the implementation then raise a PR for this? |
What did you implement:
Adding support for Nodejs 20
How can we verify it:
Use it to deploy a nodejs20 function app to Azure.
Todos:
Note: Run npm run test:ci to run all validation checks on proposed changes
Ensure there are no lint errors.
Validate via npm run lint
Note: Some reported issues can be automatically fixed by running npm run lint:fix
Validate via npm test
Is this ready for review?: YES
Is it a breaking change?: NO