-
Notifications
You must be signed in to change notification settings - Fork 69
Node v22 LTS upgrade #128
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
base: master
Are you sure you want to change the base?
Node v22 LTS upgrade #128
Conversation
Hey thanks for the PR @spwoodcock 👋 It's great you're attempting to update, but please don't assume you can just upgrade Node version and a few packages without introducing errors 🙏 . You need to throughly test every single code branch/endpoint (including the autoscaling mechanism) manually because of changes to node-libcurl (among other packages that might have changed behavior between releases). There's also been changes to how unhandled promises are caught in newer versions (in the current version, they are ignored with a warning message, in the latest version the node process exits with code 1 !!) Also, I can't build this on M1 due to:
|
I fully agree, but as there aren't any automated tests in this lib it needs some good manual testing as you say. Apologies I haven't got around to that yet - I was hoping for a bit of feedback before diving into something like that - I should have probably marked this as draft 😅 I'm sure we can fix the M1 issues 👍 |
Note There is one point where this test is a bit flaky and I need to debug - it mostly works, but sometimes the responseJson for the task polling is |
} | ||
|
||
// Options to reduce processing time, only generate simple ortho | ||
form.append('options', JSON.stringify([ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NodeODM has a test mode, check https://github.com/OpenDroneMap/NodeODM/blob/master/config.js#L39-L44 which might be useful for your case here.
Continuation from #127 (anticipates merge of or replaces PR)
Fixes #116
Attempted to continue upgrading past Node v16.
It wasn't too tricky & things don't seem to be broken.
Notes:
rimraf
removed support for require / es6 imports are needed, max v4.4.1 possiblerimraf
no longer supportsrequire
and needs ES6 imports. But the lib is no longer needed, as in node 16+ fs.rm() does everything we need.busboy
is old & unmaintained - may need to be removed in future?minimist
is also pretty old and unmaintained - may also need removal in future?