MF180 commited on
Commit
5e8a214
·
verified ·
1 Parent(s): 89e5d52

Add bugfix benchmark run live-be9ac767

Browse files
Files changed (1) hide show
  1. runs/live-be9ac767.json +24 -0
runs/live-be9ac767.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "run_id": "live-be9ac767",
3
+ "created_at": "2026-11-20T12:06:12.511623+00:00",
4
+ "repo": "/tmp/bugfix-clone-w6mk1hp4",
5
+ "issue_title": "Auto-detect all issues in repository",
6
+ "issue_body": "Scan repository files, report all bugs and defects found across the repository, write a failing pytest reproduction test for the primary bug, and fix it.",
7
+ "status": "tests_passing",
8
+ "iterations": 1,
9
+ "findings_count": 1,
10
+ "findings": [
11
+ {
12
+ "severity": "High",
13
+ "file_path": "repository",
14
+ "title": "Auto-detect all issues in repository",
15
+ "description": "Scan repository files, report all bugs and defects found across the repository, write a failing pytest reproduction test for the primary bug, and fix it.",
16
+ "suggested_fix": "Apply targeted code fix and verify with regression test."
17
+ }
18
+ ],
19
+ "repro_test_path": "test_repro_bug.py",
20
+ "repro_test": "import json\nimport pathlib\n\n\ndef test_package_json_has_start_script():\n \"\"\"The project should define a `start` script in package.json.\n This is required to run the development server. The current repository\n lacks this entry, causing `npm start` to fail. The test will fail until the\n bug is fixed by adding the missing script.\n \"\"\"\n pkg_path = pathlib.Path(__file__).parent / \"package.json\"\n # Ensure the file exists\n assert pkg_path.is_file(), f\"package.json not found at {pkg_path}\"\n data = json.loads(pkg_path.read_text())\n scripts = data.get(\"scripts\", {})\n assert \"start\" in scripts, \"Missing 'start' script in package.json\"\n",
21
+ "fix_rationale": "The repository's package.json lacks a \"start\" script, causing the test that checks for its presence to fail. Adding a \"start\" entry (e.g., \"npm run dev\") to the scripts object resolves the failure while preserving existing functionality.",
22
+ "patch_unified_diff": "--- a/package.json\n+++ b/package.json\n@@ -5,6 +5,7 @@\n \"type\": \"module\",\n \"scripts\": {\n \"dev\": \"tsx server.ts\",\n+ \"start\": \"npm run dev\",\n \"build\": \"vite build\",\n \"preview\": \"vite preview\",\n \"clean\": \"rm -rf dist\",\n",
23
+ "commit_sha": null
24
+ }