rabadon

overview / findings / tj/commander.js

tj/commander.js: 4 upstream defects

Each entry is a real fix from the project's own history. Apply its patch and run the project's own suite, and the tests written in that same upstream commit fall.

the suite it was checked against

languagetestsgreen run, sflaky runstest files locked
node1,3735.060/10123

One of the pinned external suites the repair arbiter was run against, as listed on the benchmarks page (fixed values in site/build.py).

the defects

Make .configureOutput() create copy of settings instead of in-place change (#2350)

6 source line(s), 1 test(s) fall, deterministic over three runs. upstream fix 68199e64b318. the test that catches it was written by the same engineer in the same commit and was never touched.

file lib/command.js · status reported · 2026-08-01

git apply bench/evidence/2026-08-01-real-defect-mine/patches/commander-configureoutput-shared-object.patch && <the project's own suite>

Trim description when there's only extra info (#2348)

6 source line(s), 1 test(s) fall, deterministic over three runs. upstream fix 672e3806c684. the test that catches it was written by the same engineer in the same commit and was never touched.

file lib/help.js · status reported · 2026-08-01

git apply bench/evidence/2026-08-01-real-defect-mine/patches/commander-help-option-description-leading-space.patch && <the project's own suite>

Assume a string parameter to implies is name of boolean option. (#1854)

7 source line(s), 1 test(s) fall, deterministic over three runs. upstream fix f4c7349a78a5. the test that catches it was written by the same engineer in the same commit and was never touched.

file lib/option.js · status reported · 2026-08-01

git apply bench/evidence/2026-08-01-real-defect-mine/patches/commander-implies-string-argument.patch && <the project's own suite>

Exit with non-zero code when subprocess terminated by signal (#2023)

16 source line(s), 3 test(s) fall, deterministic over three runs. upstream fix 5aaca0d66627. the test that catches it was written by the same engineer in the same commit and was never touched.

file lib/command.js · status reported · 2026-08-01

git apply bench/evidence/2026-08-01-real-defect-mine/patches/commander-subprocess-signal-exit-code.patch && <the project's own suite>