Saved in:
Bibliographic Details
Main Authors: Guo, Lianghong, Wang, Yanlin, Li, Caihua, Tao, Wei, Yang, Pengyu, Chen, Jiachi, Song, Haoyu, Tang, Duyu, Zheng, Zibin
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2506.10954
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866911351500177408
author Guo, Lianghong
Wang, Yanlin
Li, Caihua
Tao, Wei
Yang, Pengyu
Chen, Jiachi
Song, Haoyu
Tang, Duyu
Zheng, Zibin
author_facet Guo, Lianghong
Wang, Yanlin
Li, Caihua
Tao, Wei
Yang, Pengyu
Chen, Jiachi
Song, Haoyu
Tang, Duyu
Zheng, Zibin
contents Constructing large-scale datasets for the GitHub issue resolution task is crucial for both training and evaluating the software engineering capabilities of Large Language Models (LLMs). However, the existing GitHub issue resolution data construction pipeline is challenging and labor-intensive. We identify three key limitations in existing pipelines: (1) test patches collected often omit binary file changes; (2) the manual construction of evaluation environments is labor-intensive; and (3) the fail2pass validation phase requires manual inspection of test logs and writing custom parsing code to extract test status from logs. In this paper, we propose SWE-Factory, a fully automated issue resolution data construction pipeline, to resolve these limitations. First, our pipeline automatically recovers missing binary test files and ensures the correctness of test patches. Second, we introduce SWE-Builder, a LLM-based multi-agent system that automates evaluation environment construction. Third, we introduce a standardized, exit-code-based log parsing method to automatically extract test status, enabling a fully automated fail2pass validation. Experiments on 671 real-world GitHub issues across four programming languages show that our method can effectively construct valid evaluation environments for GitHub issues at a reasonable cost. For example, with GPT-4.1 mini, our SWE-Builder constructs 337 valid task instances out of 671 issues, at $0.047 per instance. Our ablation study further shows the effectiveness of different components of SWE-Builder. We also demonstrate through manual inspection that our exit-code-based fail2pass validation method is highly accurate, achieving an F1 score of 0.99. Additionally, we conduct an exploratory experiment to investigate whether we can use SWE-Factory to enhance models' software engineering ability.
format Preprint
id arxiv_https___arxiv_org_abs_2506_10954
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle SWE-Factory: Your Automated Factory for Issue Resolution Training Data and Evaluation Benchmarks
Guo, Lianghong
Wang, Yanlin
Li, Caihua
Tao, Wei
Yang, Pengyu
Chen, Jiachi
Song, Haoyu
Tang, Duyu
Zheng, Zibin
Software Engineering
Artificial Intelligence
Constructing large-scale datasets for the GitHub issue resolution task is crucial for both training and evaluating the software engineering capabilities of Large Language Models (LLMs). However, the existing GitHub issue resolution data construction pipeline is challenging and labor-intensive. We identify three key limitations in existing pipelines: (1) test patches collected often omit binary file changes; (2) the manual construction of evaluation environments is labor-intensive; and (3) the fail2pass validation phase requires manual inspection of test logs and writing custom parsing code to extract test status from logs. In this paper, we propose SWE-Factory, a fully automated issue resolution data construction pipeline, to resolve these limitations. First, our pipeline automatically recovers missing binary test files and ensures the correctness of test patches. Second, we introduce SWE-Builder, a LLM-based multi-agent system that automates evaluation environment construction. Third, we introduce a standardized, exit-code-based log parsing method to automatically extract test status, enabling a fully automated fail2pass validation. Experiments on 671 real-world GitHub issues across four programming languages show that our method can effectively construct valid evaluation environments for GitHub issues at a reasonable cost. For example, with GPT-4.1 mini, our SWE-Builder constructs 337 valid task instances out of 671 issues, at $0.047 per instance. Our ablation study further shows the effectiveness of different components of SWE-Builder. We also demonstrate through manual inspection that our exit-code-based fail2pass validation method is highly accurate, achieving an F1 score of 0.99. Additionally, we conduct an exploratory experiment to investigate whether we can use SWE-Factory to enhance models' software engineering ability.
title SWE-Factory: Your Automated Factory for Issue Resolution Training Data and Evaluation Benchmarks
topic Software Engineering
Artificial Intelligence
url https://arxiv.org/abs/2506.10954