Node.js

  • Yeti 0.2.26 released

    I’ve released a new version of Yeti, the test runner we use here on Yahoo’s YUI team. Since August 2013, Yeti has automated 33,661,505 tests in CI for us.

    Today’s release prints useful feedback to stderr when Yeti is used in CI. It also includes a fix for issue #74 (Unable to serve error) and #68 (improve DOH support).

    When using Yeti to in CI, e.g. to produce JUnit XML output, previous versions of Yeti would go silent after testing began as Yeti produced XML output on stdout. This made it difficult to determine if Yeti was doing anything while tests ran. When using Yeti with --junit, today’s release prints status after every test completion to stderr while XML prints to stdout.

    Big thanks to @henryqdineen for contributing the fix for DOH support!

    In addition to fixing bugs, we have made some improvements to Yeti’s own tests and to Yeti’s documentation. Yeti’s website now uses Pure for your viewing pleasure on desktop and mobile devices.

    Expect more updates soon. Code coverage is next on my list.

  • Node.js postmortem debugging for Linux

    You can now debug your Linux-based Node.js application on SmartOS using a core dump.

    TJ Fontaine:

    Max Bruning and I decided we wanted to be able to load a core file from a Node.js Linux process and be able to run ::findjsobjects on it in mdb.

    If you run Node on Linux with --abort-on-uncaught-exception, you can inspect the state of JavaScript objects using the core dump created when your process crashes.

    This gives you a fighting chance at tracking down the unique kinds of errors that occur most frequently in production. If you’ve ever ran non-trivial Node programs in production, you’ll understand that this is a huge accomplishment.

    Update: If you’re new to debugging Node on SmartOS, check out the latest MDB and Node.js article by David Pacheco.

  • Code coverage for executable Node.js scripts

    Collecting code coverage for executable scripts in Node.js is tricky. I’ve ran into this problem a handful of times at Yahoo, so I published a module that mocks stdin, stdout, and stderr and my experience using it in this post for Yahoo Engineering’s tumblr.

  • npm, Inc. first hires announced

    Raquel Vélez (@rockbot) and CJ Silverio (@ceejbot) are the first hires of npm, Inc., joining @izs and @seldo.

    I’m excited for this team. Congratulations to all of you!

    If you’d like to join them, they’re hiring for a Senior Ops position.