In this article
The tests-only revision isolates regression-test changes from the cleaned repair; preserve that distinction when diagnosing why a test fails.
Keep the server-side benchmark scope visible
The original BugsJS paper presents manually validated bugs in Node.js programs using the Mocha testing framework. Its research context is server-side JavaScript testing and debugging, rather than browser rendering or every JavaScript runtime. Each bug is associated with a report, tests, and a fix. Preserve the project and bug identity when extracting examples so a short code fragment remains connected to its executable context and historical evidence.
Distinguish the prepared revision states
The official framework documentation defines buggy, fixed-only-test-change, and fixed. The middle state applies tests introduced by the fixing commit to the buggy revision; the fixed state additionally contains the cleaned repair. This separation lets an experiment examine whether regression tests expose the problem before evaluating the repair. It is not equivalent to comparing two untouched neighboring commits. Record the selected state alongside the framework revision and any candidate patch in provenance metadata.
Read commands and reports as different artifacts
Project directories provide bug-information CSV files, command CSV files, and serialized issue records. The issue schema distinguishes a benchmark id from orig_id, retains creation and closure timestamps, and includes a fixing-commit record and comments. Keep those roles separate when joining failures to reports. A bug-report closure timestamp should not silently become the execution timestamp or fixing-commit date. Likewise, a test command is an instruction for reproducing the case, not part of the natural-language bug description.
Preserve environment and coverage granularity
The official environment repository provides the Docker-based setup and notes host requirements. The framework documentation specifically warns that Node-redis tests require IPv6. A failed network-dependent setup can therefore prevent the intended test from running. BugsJS distinguishes running all tests with coverage from running tests individually with per-test coverage. These outputs support different localization analyses. Retain runtime conditions, runner command, and coverage mode rather than treating every coverage artifact as an interchangeable project-wide execution trace.
Define what enters a debugging model
An editorial repair experiment can expose the report and buggy program while reserving the cleaned fix. A localization study must state whether per-test coverage or developer-modified locations are provided. These inputs change the task. Group versions of the same bug before a learning split, following leakage controls. BugsJS supports controlled comparisons under its selected historical projects and harness. Passing its checks establishes evidence for that test context, without proving correctness across browser environments or all asynchronous behaviors of a new application.
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.