~/talk

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· [nodejs]
slides:none on file

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

  1. 0:00Node.js upgrades intro
  2. 3:50Upgrading Node.js challenges
  3. 6:16Node.js releases and versioning
  4. 10:11Debugging failing tests
  5. 13:20Git bisect for breaking changes
  6. 17:42Minimal Node.js core reproduce
  7. 20:37Debugging techniques summary
  8. 22:02Preparing for Node.js upgrade
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.