Debugging Node.js Upgrades
Talkat Open Source in Finance Forum New York 2022 · on Thursday, 2022-12-08· at 13:55· HALL 1, New York, NY, USA·
summary
Upgrading from Node 14 to 16 breaks a client because a commit (net auto destroy socket) changes socket/stream behavior: Node 14 emits an error when writing to a destroyed socket but Node 16 does not, so tests hang waiting for an event that never fires. Debugging path: isolate failing test, run Chrome inspector, use git bisect to find the commit, enable NODE_DEBUG to inspect runtime logs, then confirm with a minimal Node core reproduce and patch the client to emit the missing callback. Continuous CI on odd releases catches this earlier.
AI-written summary · about
chapters (8)
- 0:00Node.js upgrades intro
- 3:50Upgrading Node.js challenges
- 6:16Node.js releases and versioning
- 10:11Debugging failing tests
- 13:20Git bisect for breaking changes
- 17:42Minimal Node.js core reproduce
- 20:37Debugging techniques summary
- 22:02Preparing for Node.js upgrade
related talks
23mDebugging Your Way Through a Node.js Upgrade
22mThe Journey About How I Fixed a Bug in the Node.js Core That Affected Thousands of Packages
23mThe Journey About How I Fixed a Bug in the Node.js Core that Affected Thousands of P...
39mNode.js - What's Next - Catalyzing Change in the Node.js Ecosystem
30mNode.js Deep Debugging
39mNode.js - What's Next - Catalyzing Change in the Node.js Ecosystem
26mHow Fixing a Bug in NodeJS Accidentally Doubled Performance
29mNode.js: The New and the Experimental
