어떤 Pull Request 가 승인되는지 그 이유: 인기 있는 NPM 패키지에 대한 연구
Which Pull Requests Get Accepted and Why? A study of popular NPM Packages
Which Pull Requests Get Accepted and Why? A study of popular NPM Packages
@misc{dey2020which,
title = {Which Pull Requests Get Accepted and Why? A study of popular NPM Packages},
author = {Tapajit Dey and Audris Mockus},
year = {2020},
eprint = {2003.01153},
archivePrefix = {arXiv},
primaryClass = {cs.SE},
url = {https://arxiv.org/abs/2003.01153}
}
Dey, T., & Mockus, A. (2020). Which Pull Requests Get Accepted and Why? A study of popular NPM Packages [Preprint]. arXiv. https://doi.org/10.48550/arXiv.2003.01153
DEY T, MOCKUS A. Which Pull Requests Get Accepted and Why? A study of popular NPM Packages[EB/OL]. (2020-03-02)[2026-11-29]. https://arxiv.org/abs/2003.01153.
초록
배경: 풀 리퀘스트 (PR) 통합자는 여러 동시 PR 을 처리하는 데 어려움을 겪으며, 어떤 PR 이 승인될지 예측할 수 있는 능력은 업무 균형을 맞추는 데 도움이 될 수 있다. PR 작성자는 자신의 PR 의 특정 특성이 승인 확률을 높일 수 있는지 알면 도움이 될 것이다. 목표: 우리는 PR 작성 후 한 달 내 승인될 확률을 예측하기 위해 50 개의 예측 변수 (작가, PR, 제출된 프로젝트의 특성) 를 활용한 랜덤 포레스트 모델을 구축했다. 방법: 4,218 개 인기 있는 NPM 패키지의 483,988 개 PR 을 분석하여 튜닝된 랜덤 포레스트 모델이 높은 정확도를 달성하기 위해 필요한 14 개의 예측 변수를 선택했다. 결과: PR 승인 예측에 대한 AUC-ROC 값은 0.95 로 달성되었다. 제출 후 변경되는 PR 속성을 제외하고 모델링한 경우 AUC-ROC 값은 0.89 였다. 우리는 NPM 패키지 bootstrap 의 역사적 데이터를 사용하여 모델을 훈련시키고 미래에 제출될 PR 이 승인될지 예측함으로써 모델의 실용성을 실제 시나리오에서 테스트했다. 모든 14 개의 예측 변수를 사용할 때 AUC-ROC 값은 0.94, PR 생성 후 변경되는 속성을 제외할 때는 0.77 이었다. 결론: PR 통합자는 우리의 모델을 사용하여 오픈 PR 의 품질을 매우 정확하게 평가할 수 있으며, PR 작성자는 통합자의 관점에서 바람직하지 않은 PR 특성을 이해함으로써 모델의 혜택을 누릴 수 있다. 우리는 이 모델을 도구로 구현할 계획으로 향후 작업으로 포함한다.
Background: Pull Request (PR) Integrators often face challenges in terms of multiple concurrent PRs, so the ability to gauge which of the PRs will get accepted can help them balance their workload. PR creators would benefit from knowing if certain characteristics of their PRs may increase the chances of acceptance. Aim: We modeled the probability that a PR will be accepted within a month after creation using a Random Forest model utilizing 50 predictors representing properties of the author, PR, and the project to which PR is submitted. Method: 483,988 PRs from 4218 popular NPM packages were analysed and we selected a subset of 14 predictors sufficient for a tuned Random Forest model to reach high accuracy. Result: An AUC-ROC value of 0.95 was achieved predicting PR acceptance. The model excluding PR properties that change after submission gave an AUC-ROC value of 0.89. We tested the utility of our model in practical scenarios by training it with historical data for the NPM package bootstrap and predicting if the PRs submitted in future will be accepted. This gave us an AUC-ROC value of 0.94 with all 14 predictors, and 0.77 excluding PR properties that change after its creation. Conclusion: PR integrators can use our model for a highly accurate assessment of the quality of the open PRs and PR creators may benefit from the model by understanding which characteristics of their PRs may be undesirable from the integrators' perspective. The model can be implemented as a tool, which we plan to do as a future work.